-
Notifications
You must be signed in to change notification settings - Fork 0
/
ObjectiveRocksFramework.podspec
30 lines (27 loc) · 1.61 KB
/
ObjectiveRocksFramework.podspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Pod::Spec.new do |s|
s.name = 'ObjectiveRocksFramework'
s.version = '0.9.0.5'
s.summary = 'An Objective-C wrapper for RocksDB - A Persistent Key-Value Store for Flash and RAM Storage.'
s.homepage = 'https://github.com/KeepSafe/ObjectiveRocks/tree/frameworks'
s.author = 'iabudiab'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.source = { :http => "https://github.com/KeepSafe/ObjectiveRocksFramework/releases/download/v#{s.version.to_s}/ObjectiveRocks.zip" }
s.requires_arc = true
s.ios.deployment_target = '9.0'
s.ios.vendored_frameworks = 'iOS/ObjectiveRocks.xcframework'
#### CONFIGS
shared_xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => 'NDEBUG=1 OS_MACOSX=1 ROCKSDB_PLATFORM_POSIX=1 ROCKSDB_LIB_IO_POSIX=1' }
framework_shared_xconfig = {
'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}/rocksdb_src/rocksdb" "${PODS_TARGET_SRCROOT}/rocksdb_src/rocksdb/include"',
'LIBRARY_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}/rocksdb_src/rocksdb"',
'GCC_INPUT_FILETYPE' => 'sourcecode.cpp.objcpp',
'GCC_C_LANGUAGE_STANDARD' => 'gnu99',
'CLANG_CXX_LANGUAGE_STANDARD' => 'gnu++11',
'VALID_ARCHS' => 'arm64 x86_64'
}
s.pod_target_xcconfig = shared_xcconfig.merge(framework_shared_xconfig)
s.user_target_xcconfig = shared_xcconfig
shared_ios_xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => 'ROCKSDB_LITE=1 IOS_CROSS_COMPILE=1 NROCKSDB_THREAD_STATUS=1' }
s.ios.pod_target_xcconfig = shared_ios_xcconfig
s.ios.user_target_xcconfig = shared_ios_xcconfig
end