forked from realm/realm-swift
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Realm.podspec
71 lines (64 loc) · 3.84 KB
/
Realm.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
67
68
69
70
71
Pod::Spec.new do |s|
s.name = 'Realm'
s.version = `sh build.sh get-version`
s.summary = 'Realm is a modern data framework & database for iOS & OS X.'
s.description = <<-DESC
The Realm database, for Objective-C. (If you want to use Realm from Swift, see the “RealmSwift” pod.)
Realm is a mobile database: a replacement for Core Data & SQLite. You can use it on iOS & OS X. Realm is not an ORM on top SQLite: instead it uses its own persistence engine, built for simplicity (& speed). Learn more and get help at https://realm.io
DESC
s.homepage = "https://realm.io"
s.source = { :git => 'https://github.com/realm/realm-cocoa.git', :tag => "v#{s.version}" }
s.author = { 'Realm' => '[email protected]' }
s.library = 'c++'
s.requires_arc = true
s.social_media_url = 'https://twitter.com/realm'
s.documentation_url = "https://realm.io/docs/objc/#{s.version}"
s.license = { :type => 'Apache 2.0', :file => 'LICENSE' }
public_header_files = 'include/Realm/RLMArray.h',
'include/Realm/RLMCollection.h',
'include/Realm/RLMConstants.h',
'include/Realm/RLMDefines.h',
'include/Realm/RLMListBase.h',
'include/Realm/RLMMigration.h',
'include/Realm/RLMObject.h',
'include/Realm/RLMObjectBase.h',
'include/Realm/RLMObjectSchema.h',
'include/Realm/RLMOptionalBase.h',
'include/Realm/RLMPlatform.h',
'include/Realm/RLMProperty.h',
'include/Realm/RLMRealm.h',
'include/Realm/RLMRealmConfiguration.h',
'include/Realm/RLMResults.h',
'include/Realm/RLMSchema.h',
'include/Realm/Realm.h',
'include/Realm/RLMRealm_Dynamic.h',
'include/Realm/RLMObjectBase_Dynamic.h'
s.module_map = 'Realm/module.modulemap'
s.compiler_flags = "-DREALM_HAVE_CONFIG -DREALM_COCOA_VERSION='@\"#{s.version}\"' -D__ASSERTMACROS__"
s.prepare_command = 'sh build.sh cocoapods-setup'
s.source_files = 'Realm/*.{m,mm}',
'Realm/ObjectStore/*.cpp',
'Realm/ObjectStore/impl/*.cpp',
'Realm/ObjectStore/impl/apple/*.cpp'
s.header_mappings_dir = 'include'
s.pod_target_xcconfig = { 'CLANG_CXX_LANGUAGE_STANDARD' => 'compiler-default',
'OTHER_CPLUSPLUSFLAGS' => '-std=c++1y $(inherited)',
'APPLICATION_EXTENSION_API_ONLY' => 'YES' }
s.preserve_paths = %w(build.sh)
s.ios.deployment_target = '7.0'
s.ios.vendored_library = 'core/librealm-ios.a'
s.osx.deployment_target = '10.9'
s.osx.vendored_library = 'core/librealm-osx.a'
if s.respond_to?(:watchos)
s.watchos.deployment_target = '2.0'
s.watchos.vendored_library = 'core/librealm-watchos.a'
end
s.subspec 'Headers' do |s|
s.source_files = 'include/**/*.{h,hpp}'
s.public_header_files = public_header_files
s.private_header_files = 'include/Realm/*{Accessor,RealmUtil,ListBase,ObjectStore,Private}.h',
'include/Realm/ObjectStore/*.hpp',
'include/Realm/ObjectStore/impl/*.hpp',
'include/Realm/ObjectStore/impl/apple/*.hpp'
end
end