2018-07-26 20:36:28 +00:00
|
|
|
# This file is part of Telegram Desktop,
|
|
|
|
# the official desktop application for the Telegram messaging service.
|
|
|
|
#
|
|
|
|
# For license and copyright information please follow this link:
|
|
|
|
# https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|
|
|
|
|
|
|
{
|
|
|
|
'includes': [
|
|
|
|
'common.gypi',
|
|
|
|
],
|
|
|
|
'targets': [{
|
|
|
|
'target_name': 'lib_storage',
|
|
|
|
'type': 'static_library',
|
|
|
|
'includes': [
|
|
|
|
'common.gypi',
|
2018-09-04 12:13:28 +00:00
|
|
|
'openssl.gypi',
|
2018-07-26 20:36:28 +00:00
|
|
|
'qt.gypi',
|
|
|
|
'telegram_linux.gypi',
|
|
|
|
'pch.gypi',
|
|
|
|
],
|
|
|
|
'variables': {
|
|
|
|
'src_loc': '../SourceFiles',
|
|
|
|
'res_loc': '../Resources',
|
|
|
|
'libs_loc': '../../../Libraries',
|
|
|
|
'official_build_target%': '',
|
|
|
|
'submodules_loc': '../ThirdParty',
|
|
|
|
'pch_source': '<(src_loc)/storage/storage_pch.cpp',
|
|
|
|
'pch_header': '<(src_loc)/storage/storage_pch.h',
|
|
|
|
},
|
|
|
|
'defines': [
|
2018-07-28 21:08:29 +00:00
|
|
|
'XXH_INLINE_ALL',
|
2018-07-26 20:36:28 +00:00
|
|
|
],
|
|
|
|
'dependencies': [
|
|
|
|
'crl.gyp:crl',
|
2018-08-09 20:39:22 +00:00
|
|
|
'lib_base.gyp:lib_base',
|
|
|
|
],
|
|
|
|
'export_dependent_settings': [
|
|
|
|
'crl.gyp:crl',
|
|
|
|
'lib_base.gyp:lib_base',
|
2018-07-26 20:36:28 +00:00
|
|
|
],
|
|
|
|
'include_dirs': [
|
|
|
|
'<(src_loc)',
|
|
|
|
'<(SHARED_INTERMEDIATE_DIR)',
|
|
|
|
'<(libs_loc)/range-v3/include',
|
|
|
|
'<(submodules_loc)/GSL/include',
|
|
|
|
'<(submodules_loc)/variant/include',
|
|
|
|
'<(submodules_loc)/crl/src',
|
2018-07-28 21:08:29 +00:00
|
|
|
'<(submodules_loc)/xxHash',
|
2018-07-26 20:36:28 +00:00
|
|
|
],
|
|
|
|
'sources': [
|
2018-09-04 12:13:28 +00:00
|
|
|
'<(src_loc)/storage/storage_clear_legacy.cpp',
|
|
|
|
'<(src_loc)/storage/storage_clear_legacy_posix.cpp',
|
|
|
|
'<(src_loc)/storage/storage_clear_legacy_win.cpp',
|
|
|
|
'<(src_loc)/storage/storage_clear_legacy.h',
|
2018-08-29 13:23:16 +00:00
|
|
|
'<(src_loc)/storage/storage_databases.cpp',
|
|
|
|
'<(src_loc)/storage/storage_databases.h',
|
2018-07-26 20:36:28 +00:00
|
|
|
'<(src_loc)/storage/storage_encryption.cpp',
|
|
|
|
'<(src_loc)/storage/storage_encryption.h',
|
|
|
|
'<(src_loc)/storage/storage_encrypted_file.cpp',
|
|
|
|
'<(src_loc)/storage/storage_encrypted_file.h',
|
|
|
|
'<(src_loc)/storage/storage_file_lock_posix.cpp',
|
|
|
|
'<(src_loc)/storage/storage_file_lock_win.cpp',
|
|
|
|
'<(src_loc)/storage/storage_file_lock.h',
|
2018-08-21 18:53:04 +00:00
|
|
|
'<(src_loc)/storage/cache/storage_cache_binlog_reader.cpp',
|
|
|
|
'<(src_loc)/storage/cache/storage_cache_binlog_reader.h',
|
2018-07-30 20:34:23 +00:00
|
|
|
'<(src_loc)/storage/cache/storage_cache_cleaner.cpp',
|
|
|
|
'<(src_loc)/storage/cache/storage_cache_cleaner.h',
|
2018-08-19 20:06:49 +00:00
|
|
|
'<(src_loc)/storage/cache/storage_cache_compactor.cpp',
|
|
|
|
'<(src_loc)/storage/cache/storage_cache_compactor.h',
|
2018-07-26 20:36:28 +00:00
|
|
|
'<(src_loc)/storage/cache/storage_cache_database.cpp',
|
|
|
|
'<(src_loc)/storage/cache/storage_cache_database.h',
|
2018-08-19 20:06:49 +00:00
|
|
|
'<(src_loc)/storage/cache/storage_cache_database_object.cpp',
|
|
|
|
'<(src_loc)/storage/cache/storage_cache_database_object.h',
|
2018-07-30 20:34:23 +00:00
|
|
|
'<(src_loc)/storage/cache/storage_cache_types.cpp',
|
|
|
|
'<(src_loc)/storage/cache/storage_cache_types.h',
|
2018-07-26 20:36:28 +00:00
|
|
|
],
|
|
|
|
'conditions': [[ 'build_macold', {
|
|
|
|
'xcode_settings': {
|
|
|
|
'OTHER_CPLUSPLUSFLAGS': [ '-nostdinc++' ],
|
|
|
|
},
|
|
|
|
'include_dirs': [
|
|
|
|
'/usr/local/macold/include/c++/v1',
|
|
|
|
],
|
|
|
|
}], [ 'build_win', {
|
2018-09-04 12:13:28 +00:00
|
|
|
'sources!': [
|
|
|
|
'<(src_loc)/storage/storage_clear_legacy_posix.cpp',
|
2018-07-26 20:36:28 +00:00
|
|
|
'<(src_loc)/storage/storage_file_lock_posix.cpp',
|
2018-09-04 12:13:28 +00:00
|
|
|
],
|
|
|
|
}, {
|
|
|
|
'sources!': [
|
|
|
|
'<(src_loc)/storage/storage_clear_legacy_win.cpp',
|
2018-07-26 20:36:28 +00:00
|
|
|
'<(src_loc)/storage/storage_file_lock_win.cpp',
|
2018-09-04 12:13:28 +00:00
|
|
|
],
|
|
|
|
}]],
|
2018-07-26 20:36:28 +00:00
|
|
|
}],
|
|
|
|
}
|