tdesktop/Telegram/gyp/lib_storage.gyp

78 lines
2.8 KiB
Plaintext
Raw Normal View History

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': [
'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',
],
'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': [
'<(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',
'<(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',
'<(src_loc)/storage/cache/storage_cache_cleaner.cpp',
'<(src_loc)/storage/cache/storage_cache_cleaner.h',
'<(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',
'<(src_loc)/storage/cache/storage_cache_database_object.cpp',
'<(src_loc)/storage/cache/storage_cache_database_object.h',
'<(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_win', {
'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',
],
}, {
'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-07-26 20:36:28 +00:00
}],
}