forked from Shopify/react-native-skia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreact-native-skia.podspec
59 lines (49 loc) · 1.71 KB
/
react-native-skia.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
# @shopify/react-native-skia.podspec
require "json"
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
Pod::Spec.new do |s|
s.name = "react-native-skia"
s.version = package["version"]
s.summary = package["description"]
s.description = <<-DESC
@shopify/react-native-skia
DESC
s.homepage = "https://github.com/shopify/react-native-skia"
# brief license entry:
s.license = "MIT"
# optional - use expanded license entry instead:
# s.license = { :type => "MIT", :file => "LICENSE" }
s.authors = { "Your Name" => "[email protected]" }
s.platforms = { :ios => "13.0" }
s.source = { :git => "https://github.com/shopify/react-native-skia/react-native-skia.git", :tag => "#{s.version}" }
s.requires_arc = true
s.pod_target_xcconfig = {
'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) SK_METAL=1 SK_GANESH=1',
'CLANG_CXX_LANGUAGE_STANDARD' => 'c++17',
'DEFINES_MODULE' => 'YES',
"HEADER_SEARCH_PATHS" => '"$(PODS_TARGET_SRCROOT)/cpp/"/**'
}
s.frameworks = 'MetalKit'
s.ios.vendored_frameworks = [
'libs/ios/libskia.xcframework',
'libs/ios/libsvg.xcframework',
'libs/ios/libskshaper.xcframework',
'libs/ios/libskparagraph.xcframework',
'libs/ios/libskunicode.xcframework',
]
# All iOS cpp/h files
s.source_files = [
"ios/**/*.{h,c,cc,cpp,m,mm,swift}",
"cpp/**/*.{h,cpp}"
]
if defined?(install_modules_dependencies()) != nil
install_modules_dependencies(s)
s.dependency "React"
s.dependency "React-callinvoker"
s.dependency "React-Core"
else
s.dependency "React"
s.dependency "React-callinvoker"
s.dependency "React-Core"
end
end