forked from realm/realm-swift
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Realm.podspec
45 lines (38 loc) · 2.71 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
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 & OSX.'
s.description = <<-DESC
Realm is a modern data framework & database for iOS & OSX. You can use it purely in memory — or persist to disk with extraordinary performance.
Realm’s data structures look like NSObjects and NSArrays, but provide additional features such as: querying, relationships & graphs, thread safety, and more.
Realm is not built on SQLite. Instead, a custom C++ core is used to provide memory-efficient access to your data by using Realm objects, which usually consume less RAM than native objects. The core also provides an optional persistence layer that can automatically save and retrieve your objects from disk.
Realm offers extraordinary performance compared to SQLite and other persistence solutions. It has been in development since 2011 and powers an app with over 1 million
daily active users at a major mobile game company.
DESC
s.homepage = "http://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 = "http://realm.io/docs/cocoa/#{s.version}"
s.license = { :type => 'Apache 2.0', :file => 'LICENSE' }
s.compiler_flags = "-DTIGHTDB_HAVE_CONFIG -DREALM_SWIFT=0 -DREALM_VERSION='@\"#{s.version}\"'"
s.prepare_command = 'sh build.sh cocoapods-setup'
s.private_header_files = 'include-ios/**/*.hpp', 'include-osx/**/*.hpp', '**/*_Private.h'
s.source_files = 'Realm/*.{m,mm}', 'core/**/*.{h,hpp}'
s.xcconfig = { 'CLANG_CXX_LANGUAGE_STANDARD' => 'compiler-default',
'OTHER_CPLUSPLUSFLAGS' => '-std=c++1y $(inherited)' }
s.ios.deployment_target = '6.0'
s.ios.vendored_library = 'core/libtightdb-ios.a'
s.ios.header_mappings_dir = 'include-ios'
s.ios.source_files = 'include-ios/**/*.hpp'
s.osx.deployment_target = '10.8'
s.osx.vendored_library = 'core/libtightdb.a'
s.osx.header_mappings_dir = 'include-osx'
s.osx.source_files = 'include-osx/**/*.hpp'
s.subspec 'Headers' do |s|
s.ios.source_files = 'include-ios/**/*.h'
s.osx.source_files = 'include-osx/**/*.h'
end
end