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': [
|
2019-09-18 06:56:01 +00:00
|
|
|
'helpers/common/common.gypi',
|
2018-07-26 20:36:28 +00:00
|
|
|
],
|
|
|
|
'targets': [{
|
|
|
|
'target_name': 'lib_storage',
|
|
|
|
'includes': [
|
2019-09-18 06:56:01 +00:00
|
|
|
'helpers/common/library.gypi',
|
|
|
|
'helpers/modules/openssl.gypi',
|
|
|
|
'helpers/modules/qt.gypi',
|
|
|
|
'helpers/modules/pch.gypi',
|
2018-07-26 20:36:28 +00:00
|
|
|
],
|
|
|
|
'variables': {
|
|
|
|
'src_loc': '../SourceFiles',
|
|
|
|
'res_loc': '../Resources',
|
|
|
|
'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': [
|
2019-09-18 06:56:01 +00:00
|
|
|
'<(submodules_loc)/lib_base/lib_base.gyp:lib_base',
|
2018-08-09 20:39:22 +00:00
|
|
|
],
|
|
|
|
'export_dependent_settings': [
|
2019-09-18 06:56:01 +00:00
|
|
|
'<(submodules_loc)/lib_base/lib_base.gyp:lib_base',
|
2018-07-26 20:36:28 +00:00
|
|
|
],
|
|
|
|
'include_dirs': [
|
|
|
|
'<(src_loc)',
|
2019-09-18 06:56:01 +00:00
|
|
|
'<(third_party_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
|
|
|
],
|
2019-11-05 11:27:21 +00:00
|
|
|
'conditions': [[ '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
|
|
|
}],
|
|
|
|
}
|