-
Notifications
You must be signed in to change notification settings - Fork 0
/
j2objc_pod.podspec
executable file
·50 lines (39 loc) · 1.79 KB
/
j2objc_pod.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
Pod::Spec.new do |s|
s.name = 'j2objc_pod'
s.version = '0.9.2'
s.summary = "J2ObjC's JRE emulation library, emulates a subset of the Java runtime library."
s.homepage = 'http://j2objc.org'
s.author = 'Pod by Justin Ganzer, J2OBJC by Google Inc'
s.license = { :type => 'Apache-2.0', :file => 'LICENSE' }
s.platform = :ios
s.source = { :git => 'https://github.com/JustinGanzer/j2objc_pod.git', :tag => s.version.to_s }
s.ios.deployment_target = '12.0'
s.static_framework = true
s.requires_arc = false
s.preserve_paths = 'dist'
#s.public_header_files = 'dist/include/**/*.h'
#s.source_files = 'dist/include/**/*.h'
#s.header_mappings_dir = 'dist/include'
#s.vendored_frameworks = 'dist/frameworks/**/*'
#s.vendored_libraries = 'dist/lib/*.a'
s.user_target_xcconfig = {
'LIBRARY_SEARCH_PATHS' => '${PODS_ROOT}/j2objc_pod/dist/lib',
'FRAMEWORK_SEARCH_PATHS' => '${PODS_ROOT}/j2objc_pod/dist/frameworks',
'USER_HEADER_SEARCH_PATHS' => '${PODS_ROOT}/j2objc_pod/dist/include',
'OTHER_LDFLAGS' => ['-liconv','-lz','-lc++','-ljre_emul','-lprotobuf_runtime','-ljson']
}
s.prepare_command = 'scripts/download.sh'
end
=begin
If one of your pods contains files converted by j2objc, define the following settings in its podspec file:
// Your pod must declare its dependency on j2objc_pod
s.dependency 'j2objc_pod', '~> 2.0'
// These settings are just an example, but with them you can set up the target build settings
// to include the necessary "Search Paths" and "Linker Flags"
s.pod_target_xcconfig = {
'OTHER_LDFLAGS' => ['-liconv','-lz','-lc++'],
'LIBRARY_SEARCH_PATHS' => '${PODS_ROOT}/j2objc_pod/dist/lib',
'FRAMEWORK_SEARCH_PATHS' => '${PODS_ROOT}/j2objc_pod/dist/frameworks',
'USER_HEADER_SEARCH_PATHS' => '${PODS_ROOT}/j2objc_pod/dist/include'
}
=end