forked from microsoft/react-native-macos
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathReact-TurboModuleCxx-WinRTPort.podspec
More file actions
47 lines (40 loc) · 1.84 KB
/
React-TurboModuleCxx-WinRTPort.podspec
File metadata and controls
47 lines (40 loc) · 1.84 KB
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
require "json"
package = JSON.parse(File.read(File.join(__dir__, "..", "package.json")))
version = package['version']
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
folly_version = '2021.06.28.00-v2'
source = { :git => 'https://github.com/microsoft/react-native-macos.git' }
if version == '1000.0.0'
# This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.
source[:commit] = `git rev-parse HEAD`.strip
else
source[:tag] = "v#{version}"
end
Pod::Spec.new do |s|
s.name = "React-TurboModuleCxx-WinRTPort"
s.version = version
s.summary = "C++ supporting for Turbo Module."
s.homepage = "https://github.com/microsoft/react-native-macos"
s.license = package["license"]
s.author = "Microsoft Corporation"
s.platforms = { :ios => "11.0", :osx => "10.15" }
s.compiler_flags = folly_compiler_flags
s.source = source
s.subspec 'Shared' do |ss|
ss.source_files = "Shared/*.{h,cpp,mm}"
ss.library = "stdc++"
ss.pod_target_xcconfig = { "USE_HEADERMAP" => "YES",
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17" }
end
s.subspec 'WinRT' do |ss|
ss.source_files = "WinRT/*.{h,cpp,mm}"
ss.library = "stdc++"
ss.pod_target_xcconfig = { "USE_HEADERMAP" => "YES",
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17" }
ss.header_dir = "winrt"
ss.dependency "RCT-Folly", folly_version
ss.dependency "React-callinvoker", version
ss.dependency "React-TurboModuleCxx-WinRTPort/Shared", version
end
end