forked from google/leveldb
-
Notifications
You must be signed in to change notification settings - Fork 11
/
leveldb-library.podspec
67 lines (54 loc) · 1.9 KB
/
leveldb-library.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
Pod::Spec.new do |s|
s.name = 'leveldb-library'
s.version = '1.22.6'
s.license = 'New BSD'
s.summary = 'A fast key-value storage library '
s.description = 'LevelDB is a fast key-value storage library written at Google that provides ' +
'an ordered mapping from string keys to string values.'
s.homepage = 'https://github.com/google/leveldb'
s.authors = 'The LevelDB Authors'
s.cocoapods_version = '>= 1.12.0'
s.ios.deployment_target = '11.0'
s.osx.deployment_target = '10.13'
s.tvos.deployment_target = '11.0'
s.watchos.deployment_target = '6.0'
s.source = {
:git => 'https://github.com/firebase/leveldb.git',
:tag => 'CocoaPods-' + s.version.to_s
}
s.requires_arc = false
s.pod_target_xcconfig = {
'GCC_PREPROCESSOR_DEFINITIONS' => 'LEVELDB_IS_BIG_ENDIAN=0 ' +
'LEVELDB_PLATFORM_POSIX ' +
'HAVE_FULLFSYNC=1',
'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}"',
# Disable warnings introduced by Xcode 8.3 and Xcode 9
# The deprecated-declarations is for OSMemoryBarrier on tvOS
'WARNING_CFLAGS' => '-Wno-shorten-64-to-32 -Wno-comma -Wno-unreachable-code ' +
'-Wno-conditional-uninitialized -Wno-deprecated-declarations',
# Prevent naming conflicts between leveldb headers and system headers
'USE_HEADERMAP' => 'No',
}
s.header_dir = "leveldb"
s.source_files = [
"db/*.{cc,h}",
"port/*.{cc,h}",
"table/*.{cc,h}",
"util/*.{cc,h}",
"include/leveldb/*.h"
]
s.public_header_files = [
"include/leveldb/*.h"
]
s.exclude_files = [
"**/*_test.cc",
"**/*_bench.cc",
"db/leveldbutil.cc",
"util/env_windows.cc",
"util/testutil.cc"
]
s.resource_bundle = {
"#{s.module_name}_Privacy" => 'Resources/PrivacyInfo.xcprivacy'
}
s.library = 'c++'
end