mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00

git-subtree-dir: submodules/Postbox git-subtree-mainline: 373769682ef152a8d5ef41ccb064a8387b2ca6f0 git-subtree-split: 534443c710e63ff4ea595b5dc7be94550c467734
45 lines
1.1 KiB
Python
45 lines
1.1 KiB
Python
load('//tools:buck_utils.bzl', 'config_with_updated_linker_flags', 'configs_with_config', 'combined_config')
|
|
load('//tools:buck_defs.bzl', 'SHARED_CONFIGS', 'EXTENSION_LIB_SPECIFIC_CONFIG')
|
|
|
|
apple_library(
|
|
name = 'sqlcipher',
|
|
srcs = glob([
|
|
'Postbox/**/*.m',
|
|
'Postbox/**/*.c',
|
|
]),
|
|
headers = glob([
|
|
'Postbox/**/*.h',
|
|
]),
|
|
header_namespace = 'sqlcipher',
|
|
exported_headers = glob([
|
|
'Postbox/**/*.h',
|
|
], exclude = ['Postbox/Postbox.h']),
|
|
compiler_flags = [
|
|
'-DNDEBUG',
|
|
'-DSQLCIPHER_CRYPTO_CC=1',
|
|
'-DSQLITE_ENABLE_FTS5',
|
|
'-DSQLITE_DEFAULT_MEMSTATUS=0',
|
|
'-DSQLITE_MAX_MMAP_SIZE=0',
|
|
'-DSQLITE_HAS_CODEC',
|
|
],
|
|
modular = True,
|
|
visibility = ['//submodules/Postbox:Postbox'],
|
|
)
|
|
|
|
apple_library(
|
|
name = 'Postbox',
|
|
srcs = glob([
|
|
'Postbox/**/*.swift'
|
|
]),
|
|
configs = configs_with_config(combined_config([SHARED_CONFIGS, EXTENSION_LIB_SPECIFIC_CONFIG])),
|
|
swift_compiler_flags = [
|
|
'-suppress-warnings',
|
|
'-application-extension',
|
|
],
|
|
visibility = ['PUBLIC'],
|
|
deps = [
|
|
':sqlcipher',
|
|
'//submodules/SSignalKit:SwiftSignalKit'
|
|
],
|
|
)
|