Build Postbox, SyncCore, TelegramCore

This commit is contained in:
Ali 2020-02-20 04:15:02 +04:00
parent a7ff727533
commit a75bd17b6c
83 changed files with 474 additions and 397 deletions

View file

@ -12,18 +12,12 @@ static_library(
srcs = glob([
"Sources/*.c",
]),
headers = [
"Sources/sqlcipher_config.h",
"Sources/sqlite3.h",
"Sources/sqlite3ext.h",
],
exported_headers = [
"Sources/sqlcipher_config.h",
"Sources/sqlite3.h",
"Sources/sqlite3ext.h",
],
deps = [
],
headers = glob([
"Sources/*.h",
]),
exported_headers = glob([
"PublicHeaders/**/*.h",
]),
frameworks = [
"$SDKROOT/System/Library/Frameworks/Foundation.framework",
],

32
submodules/sqlcipher/BUILD vendored Normal file
View file

@ -0,0 +1,32 @@
public_headers = glob([
"PublicHeaders/**/*.h",
])
objc_library(
name = "sqlcipher",
enable_modules = True,
module_name = "sqlcipher",
srcs = glob([
"Sources/*.c",
"Sources/*.h",
], exclude = public_headers),
hdrs = public_headers,
includes = [
"PublicHeaders",
],
copts = [
"-DDSQLITE_HAS_CODEC=1",
"-DSQLCIPHER_CRYPTO_CC=1",
"-DSQLITE_ENABLE_FTS5",
"-DSQLITE_DEFAULT_MEMSTATUS=0",
"-DNDEBUG",
],
sdk_frameworks = [
"Foundation",
"Security",
],
visibility = [
"//visibility:public",
],
)

View file

@ -1,22 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
</dict>
</plist>