forked from google/j2objc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJ2ObjC.podspec
48 lines (41 loc) · 1.57 KB
/
J2ObjC.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
Pod::Spec.new do |s|
s.name = "J2ObjC"
s.version = "0.9.2"
s.license = { :type => 'Apache License, Version 2.0', :file => 'LICENSE' }
s.summary = "J2ObjC's JRE emulation library, emulates a subset of the Java runtime library."
s.homepage = "https://github.com/google/j2objc"
s.author = "Google Inc."
s.source = { :git => "https://github.com/goodow/j2objc.git", :tag => "v#{s.version}-lib" }
s.ios.deployment_target = '5.0'
s.osx.deployment_target = '10.7'
s.requires_arc = false
s.default_subspec = 'lib/jre'
# Top level attributes can't be specified by subspecs.
s.header_mappings_dir = 'dist/include'
s.prepare_command = <<-CMD
scripts/download_distribution.sh
CMD
s.subspec 'lib' do |lib|
lib.frameworks = 'Security'
lib.osx.frameworks = 'ExceptionHandling'
lib.xcconfig = { 'LIBRARY_SEARCH_PATHS' => '"$(PODS_ROOT)/J2ObjC/dist/lib"', \
'HEADER_SEARCH_PATHS' => '"${PODS_ROOT}/J2ObjC/dist/include"' }
lib.subspec 'jre' do |jre|
jre.preserve_paths = 'dist'
jre.libraries = 'jre_emul', 'z'
jre.xcconfig = { 'OTHER_LDFLAGS' => '-force_load ${PODS_ROOT}/J2ObjC/dist/lib/libjre_emul.a' }
end
lib.subspec 'jsr305' do |jsr305|
jsr305.dependency 'J2ObjC/lib/jre'
jsr305.libraries = 'jsr305'
end
lib.subspec 'junit' do |junit|
junit.dependency 'J2ObjC/lib/jre'
junit.libraries = 'j2objc_main', 'junit', 'mockito'
end
lib.subspec 'guava' do |guava|
guava.dependency 'J2ObjC/lib/jre'
guava.libraries = 'guava'
end
end
end