forked from Tencent/Hippy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hippy.podspec
106 lines (99 loc) · 4.4 KB
/
hippy.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
#
# Be sure to run `pod lib lint hippy.podspec --verbose --use-libraries' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#
Pod::Spec.new do |s|
s.name = 'hippy'
s.version = '2.0.0'
s.summary = 'Hippy Cross Platform Framework'
s.description = <<-DESC
Hippy is designed for developers to easily build cross-platform and high-performance awesome apps.
DESC
s.homepage = 'https://hippyjs.org'
s.license = { :type => 'Apache2', :file => 'LICENSE' }
s.author = 'OpenHippy Team'
s.source = {:git => 'https://github.com/Tencent/Hippy.git', :tag => s.version}
s.platform = :ios
s.ios.deployment_target = '11.0'
s.requires_arc = true
s.default_subspec = 'iOSSDK'
s.pod_target_xcconfig = {
'CLANG_CXX_LANGUAGE_STANDARD' => 'c++17',
'GCC_ENABLE_CPP_EXCEPTIONS' => false,
'GCC_ENABLE_CPP_RTTI' => false,
'GCC_PREPROCESSOR_DEFINITIONS[config=Release]' => '${inherited} NDEBUG=1',
}
s.subspec 'core' do |ss|
ss.libraries = 'c++'
ss.framework = 'JavaScriptCore'
ss.dependency 'hippy/coreThirdParty'
ss.source_files = ['core/include/**/*.{h,cc}',
'core/src/**/*.{h,cc}']
ss.public_header_files = 'core/include/**/*.h'
ss.project_header_files = 'core/include/**/*.h'
ss.exclude_files = ['core/include/core/napi/v8',
'core/include/core/vm/v8',
'core/include/core/inspector',
'core/src/napi/v8',
'core/src/inspector',
'core/src/vm/v8',
'core/third_party/base/src/platform/adr']
ss.pod_target_xcconfig = {
'HEADER_SEARCH_PATHS' => '$(PODS_TARGET_SRCROOT)/core/include/',
}
end
s.subspec 'coreThirdParty' do |ss|
ss.libraries = 'c++'
ss.framework = 'JavaScriptCore'
ss.public_header_files = 'core/third_party/**/*.h'
ss.project_header_files = 'core/third_party/**/*.h'
ss.source_files = 'core/third_party/**/*.{h,cc}'
ss.exclude_files = ['core/third_party/base/src/platform/adr']
ss.pod_target_xcconfig = {
'HEADER_SEARCH_PATHS' => '$(PODS_TARGET_SRCROOT)/core/third_party/base/include/',
}
end
s.subspec 'MTTLayout' do |ss|
ss.libraries = 'c++'
ss.frameworks = 'UIKit', 'Foundation'
ss.source_files = 'ios/sdk/layout/**/*.{h,m,c,mm,s,cpp,cc}'
ss.public_header_files = 'ios/sdk/layout/**/MTTFlex.h'
end
s.subspec 'HPOP' do |ss|
ss.libraries = 'c++'
ss.frameworks = 'UIKit', 'Foundation', 'QuartzCore', 'CoreGraphics'
ss.source_files = 'ios/sdk/module/animation2/pop/**/*.{h,m,c,mm,s,cpp,cc}'
ss.public_header_files = [
'ios/sdk/module/animation2/pop/HPOP.h',
'ios/sdk/module/animation2/pop/HPOPDefines.h',
'ios/sdk/module/animation2/pop/HPOPAnimatableProperty.h',
'ios/sdk/module/animation2/pop/HPOPAnimatablePropertyTypes.h',
'ios/sdk/module/animation2/pop/HPOPAnimation.h',
'ios/sdk/module/animation2/pop/HPOPAnimationEvent.h',
'ios/sdk/module/animation2/pop/HPOPAnimationExtras.h',
'ios/sdk/module/animation2/pop/HPOPAnimationTracer.h',
'ios/sdk/module/animation2/pop/HPOPAnimator.h',
'ios/sdk/module/animation2/pop/HPOPBasicAnimation.h',
'ios/sdk/module/animation2/pop/HPOPCustomAnimation.h',
'ios/sdk/module/animation2/pop/HPOPDecayAnimation.h',
'ios/sdk/module/animation2/pop/HPOPGeometry.h',
'ios/sdk/module/animation2/pop/HPOPLayerExtras.h',
'ios/sdk/module/animation2/pop/HPOPPropertyAnimation.h',
'ios/sdk/module/animation2/pop/HPOPSpringAnimation.h']
end
s.subspec 'iOSSDK' do |ss|
ss.dependency 'hippy/core'
ss.dependency 'hippy/coreThirdParty'
ss.dependency 'hippy/MTTLayout'
ss.dependency 'hippy/HPOP'
ss.frameworks = 'UIKit', 'Foundation', 'QuartzCore', 'CFNetwork', 'CoreGraphics', 'CoreTelephony',
'ImageIO', 'WebKit', 'SystemConfiguration', 'Security', 'CoreServices', 'Accelerate'
ss.public_header_files = 'ios/sdk/**/*.h'
ss.project_header_files = ['ios/sdk/**/HippyJSEnginesMapper.h', ]
ss.source_files = 'ios/sdk/**/*.{h,m,c,mm,s,cpp,cc}'
ss.exclude_files = ['ios/sdk/layout/**/*.{h,m,c,mm,s,cpp,cc}', 'ios/sdk/module/animation2/pop/**/*.{h,m,c,mm,s,cpp,cc}']
end
end