mirror of
https://github.com/react/react-native.git
synced 2026-09-28 13:23:09 +08:00
C++ 20 all the things (#39454)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/39454 1. Build with C++ 20 everywhere. 2. Update folly in OSS build to avoid a warning, and let us opt out of heavy bits required for supporting coroutines (we are still more than a year behind). 3. Update the folly podspec for the new version of folly 4. Update the many, many, copy/pasted header search paths for folly dependencies to be able to resolve fmt, now exposed to folly headers 4. Replaces a deprecated atomic usage with equivalent. 5. Fixes a deprecated implicit capturing `this` by value in lambda (same behavior, added a TODO because it seems sus) Changelog: [Internal] Reviewed By: sammy-SC Differential Revision: D49271685 fbshipit-source-id: 16610f7bcd1032d5796cc11f1cfa92a33d8c2593
This commit is contained in:
committed by
Facebook GitHub Bot
parent
e513a50fe1
commit
17154a661f
@@ -95,8 +95,8 @@ references:
|
||||
rntester_podfile_lock_cache_key: &rntester_podfile_lock_cache_key v6-podfilelock-{{ .Environment.CIRCLE_JOB }}-{{ checksum "packages/rn-tester/Podfile" }}-{{ checksum "/tmp/week_year" }}-{{ checksum "/tmp/hermes/hermesversion" }}
|
||||
|
||||
# Cocoapods - Template
|
||||
template_cocoapods_cache_key: &template_cocoapods_cache_key v2-cocoapods-{{ .Environment.CIRCLE_JOB }}-{{ checksum "/tmp/iOSTemplateProject/ios/Podfile.lock" }}-{{ checksum "/tmp/iOSTemplateProject/ios/Podfile" }}-{{ checksum "/tmp/hermes/hermesversion" }}
|
||||
template_podfile_lock_cache_key: &template_podfile_lock_cache_key v2-podfilelock-{{ .Environment.CIRCLE_JOB }}-{{ checksum "/tmp/iOSTemplateProject/ios/Podfile" }}-{{ checksum "/tmp/week_year" }}-{{ checksum "/tmp/hermes/hermesversion" }}
|
||||
template_cocoapods_cache_key: &template_cocoapods_cache_key v3-cocoapods-{{ .Environment.CIRCLE_JOB }}-{{ checksum "/tmp/iOSTemplateProject/ios/Podfile.lock" }}-{{ checksum "/tmp/iOSTemplateProject/ios/Podfile" }}-{{ checksum "/tmp/hermes/hermesversion" }}
|
||||
template_podfile_lock_cache_key: &template_podfile_lock_cache_key v3-podfilelock-{{ .Environment.CIRCLE_JOB }}-{{ checksum "/tmp/iOSTemplateProject/ios/Podfile" }}-{{ checksum "/tmp/week_year" }}-{{ checksum "/tmp/hermes/hermesversion" }}
|
||||
|
||||
# Windows
|
||||
windows_yarn_cache_key: &windows_yarn_cache_key v1-win-yarn-cache-{{ arch }}-{{ checksum "yarn.lock" }}
|
||||
|
||||
@@ -109,7 +109,7 @@ target_compile_options(
|
||||
-DLOG_TAG=\\"ReactNative\\"
|
||||
-fexceptions
|
||||
-frtti
|
||||
-std=c++17
|
||||
-std=c++20
|
||||
-Wall
|
||||
)
|
||||
`;
|
||||
|
||||
+8
-8
@@ -79,7 +79,7 @@ target_compile_options(
|
||||
-DLOG_TAG=\\\\\\"ReactNative\\\\\\"
|
||||
-fexceptions
|
||||
-frtti
|
||||
-std=c++17
|
||||
-std=c++20
|
||||
-Wall
|
||||
)
|
||||
",
|
||||
@@ -165,7 +165,7 @@ target_compile_options(
|
||||
-DLOG_TAG=\\\\\\"ReactNative\\\\\\"
|
||||
-fexceptions
|
||||
-frtti
|
||||
-std=c++17
|
||||
-std=c++20
|
||||
-Wall
|
||||
)
|
||||
",
|
||||
@@ -244,7 +244,7 @@ target_compile_options(
|
||||
-DLOG_TAG=\\\\\\"ReactNative\\\\\\"
|
||||
-fexceptions
|
||||
-frtti
|
||||
-std=c++17
|
||||
-std=c++20
|
||||
-Wall
|
||||
)
|
||||
",
|
||||
@@ -330,7 +330,7 @@ target_compile_options(
|
||||
-DLOG_TAG=\\\\\\"ReactNative\\\\\\"
|
||||
-fexceptions
|
||||
-frtti
|
||||
-std=c++17
|
||||
-std=c++20
|
||||
-Wall
|
||||
)
|
||||
",
|
||||
@@ -416,7 +416,7 @@ target_compile_options(
|
||||
-DLOG_TAG=\\\\\\"ReactNative\\\\\\"
|
||||
-fexceptions
|
||||
-frtti
|
||||
-std=c++17
|
||||
-std=c++20
|
||||
-Wall
|
||||
)
|
||||
",
|
||||
@@ -510,7 +510,7 @@ target_compile_options(
|
||||
-DLOG_TAG=\\\\\\"ReactNative\\\\\\"
|
||||
-fexceptions
|
||||
-frtti
|
||||
-std=c++17
|
||||
-std=c++20
|
||||
-Wall
|
||||
)
|
||||
",
|
||||
@@ -596,7 +596,7 @@ target_compile_options(
|
||||
-DLOG_TAG=\\\\\\"ReactNative\\\\\\"
|
||||
-fexceptions
|
||||
-frtti
|
||||
-std=c++17
|
||||
-std=c++20
|
||||
-Wall
|
||||
)
|
||||
",
|
||||
@@ -690,7 +690,7 @@ target_compile_options(
|
||||
-DLOG_TAG=\\\\\\"ReactNative\\\\\\"
|
||||
-fexceptions
|
||||
-frtti
|
||||
-std=c++17
|
||||
-std=c++20
|
||||
-Wall
|
||||
)
|
||||
",
|
||||
|
||||
@@ -16,7 +16,7 @@ else
|
||||
source[:tag] = "v#{version}"
|
||||
end
|
||||
|
||||
folly_flags = ' -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1'
|
||||
folly_flags = ' -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_CFG_NO_COROUTINES=1'
|
||||
folly_compiler_flags = folly_flags + ' ' + '-Wno-comma -Wno-shorten-64-to-32'
|
||||
|
||||
is_new_arch_enabled = ENV["RCT_NEW_ARCH_ENABLED"] == "1"
|
||||
@@ -34,6 +34,7 @@ header_search_paths = [
|
||||
"$(PODS_ROOT)/Headers/Private/React-Core",
|
||||
"$(PODS_ROOT)/boost",
|
||||
"$(PODS_ROOT)/DoubleConversion",
|
||||
"$(PODS_ROOT)/fmt/include",
|
||||
"$(PODS_ROOT)/RCT-Folly",
|
||||
"${PODS_ROOT}/Headers/Public/FlipperKit",
|
||||
"$(PODS_ROOT)/Headers/Public/ReactCommon",
|
||||
@@ -75,7 +76,7 @@ Pod::Spec.new do |s|
|
||||
s.pod_target_xcconfig = {
|
||||
"HEADER_SEARCH_PATHS" => header_search_paths,
|
||||
"OTHER_CPLUSPLUSFLAGS" => other_cflags,
|
||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17",
|
||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++20",
|
||||
"DEFINES_MODULE" => "YES"
|
||||
}
|
||||
s.user_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/Headers/Private/React-Core\""}
|
||||
|
||||
@@ -16,8 +16,8 @@ else
|
||||
source[:tag] = "v#{version}"
|
||||
end
|
||||
|
||||
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
|
||||
folly_version = '2021.07.22.00'
|
||||
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_CFG_NO_COROUTINES=1 -Wno-comma -Wno-shorten-64-to-32'
|
||||
folly_version = '2022.05.16.00'
|
||||
|
||||
header_search_paths = [
|
||||
"\"$(PODS_ROOT)/RCT-Folly\"",
|
||||
@@ -47,7 +47,7 @@ Pod::Spec.new do |s|
|
||||
s.header_dir = "RCTBlob"
|
||||
s.pod_target_xcconfig = {
|
||||
"USE_HEADERMAP" => "YES",
|
||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17",
|
||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++20",
|
||||
"HEADER_SEARCH_PATHS" => header_search_paths.join(' ')
|
||||
}
|
||||
|
||||
|
||||
@@ -16,8 +16,8 @@ else
|
||||
source[:tag] = "v#{version}"
|
||||
end
|
||||
|
||||
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
|
||||
folly_version = '2021.07.22.00'
|
||||
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_CFG_NO_COROUTINES=1 -Wno-comma -Wno-shorten-64-to-32'
|
||||
folly_version = '2022.05.16.00'
|
||||
|
||||
header_search_paths = [
|
||||
"\"$(PODS_ROOT)/RCT-Folly\"",
|
||||
@@ -48,7 +48,7 @@ Pod::Spec.new do |s|
|
||||
s.header_dir = "RCTImage"
|
||||
s.pod_target_xcconfig = {
|
||||
"USE_HEADERMAP" => "YES",
|
||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17",
|
||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++20",
|
||||
"HEADER_SEARCH_PATHS" => header_search_paths.join(' ')
|
||||
}
|
||||
s.framework = ["Accelerate", "UIKit"]
|
||||
|
||||
@@ -16,8 +16,8 @@ else
|
||||
source[:tag] = "v#{version}"
|
||||
end
|
||||
|
||||
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
|
||||
folly_version = '2021.07.22.00'
|
||||
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_CFG_NO_COROUTINES=1 -Wno-comma -Wno-shorten-64-to-32'
|
||||
folly_version = '2022.05.16.00'
|
||||
|
||||
header_search_paths = [
|
||||
"\"$(PODS_ROOT)/RCT-Folly\"",
|
||||
@@ -51,7 +51,7 @@ Pod::Spec.new do |s|
|
||||
s.header_dir = "RCTLinking"
|
||||
s.pod_target_xcconfig = {
|
||||
"USE_HEADERMAP" => "YES",
|
||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17",
|
||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++20",
|
||||
"HEADER_SEARCH_PATHS" => header_search_paths.join(' ')
|
||||
}
|
||||
|
||||
|
||||
@@ -16,8 +16,8 @@ else
|
||||
source[:tag] = "v#{version}"
|
||||
end
|
||||
|
||||
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
|
||||
folly_version = '2021.07.22.00'
|
||||
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_CFG_NO_COROUTINES=1 -Wno-comma -Wno-shorten-64-to-32'
|
||||
folly_version = '2022.05.16.00'
|
||||
|
||||
header_search_paths = [
|
||||
"\"$(PODS_ROOT)/RCT-Folly\"",
|
||||
@@ -47,7 +47,7 @@ Pod::Spec.new do |s|
|
||||
s.header_dir = "RCTAnimation"
|
||||
s.pod_target_xcconfig = {
|
||||
"USE_HEADERMAP" => "YES",
|
||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17",
|
||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++20",
|
||||
"HEADER_SEARCH_PATHS" => header_search_paths.join(" ")
|
||||
}
|
||||
|
||||
|
||||
@@ -16,8 +16,8 @@ else
|
||||
source[:tag] = "v#{version}"
|
||||
end
|
||||
|
||||
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
|
||||
folly_version = '2021.07.22.00'
|
||||
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_CFG_NO_COROUTINES=1 -Wno-comma -Wno-shorten-64-to-32'
|
||||
folly_version = '2022.05.16.00'
|
||||
|
||||
header_search_paths = [
|
||||
"\"$(PODS_ROOT)/RCT-Folly\"",
|
||||
@@ -51,7 +51,7 @@ Pod::Spec.new do |s|
|
||||
s.header_dir = "RCTNetwork"
|
||||
s.pod_target_xcconfig = {
|
||||
"USE_HEADERMAP" => "YES",
|
||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17",
|
||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++20",
|
||||
"HEADER_SEARCH_PATHS" => header_search_paths.join(' ')
|
||||
}
|
||||
s.frameworks = "MobileCoreServices"
|
||||
|
||||
+3
-3
@@ -16,8 +16,8 @@ else
|
||||
source[:tag] = "v#{version}"
|
||||
end
|
||||
|
||||
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
|
||||
folly_version = '2021.07.22.00'
|
||||
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_CFG_NO_COROUTINES=1 -Wno-comma -Wno-shorten-64-to-32'
|
||||
folly_version = '2022.05.16.00'
|
||||
|
||||
header_search_paths = [
|
||||
"\"$(PODS_ROOT)/RCT-Folly\"",
|
||||
@@ -48,7 +48,7 @@ Pod::Spec.new do |s|
|
||||
s.header_dir = "RCTPushNotification"
|
||||
s.pod_target_xcconfig = {
|
||||
"USE_HEADERMAP" => "YES",
|
||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17",
|
||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++20",
|
||||
"HEADER_SEARCH_PATHS" => header_search_paths.join(' ')
|
||||
}
|
||||
s.framework = "UserNotifications"
|
||||
|
||||
@@ -16,8 +16,8 @@ else
|
||||
source[:tag] = "v#{version}"
|
||||
end
|
||||
|
||||
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
|
||||
folly_version = '2021.07.22.00'
|
||||
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_CFG_NO_COROUTINES=1 -Wno-comma -Wno-shorten-64-to-32'
|
||||
folly_version = '2022.05.16.00'
|
||||
|
||||
header_search_paths = [
|
||||
"\"$(PODS_ROOT)/RCT-Folly\"",
|
||||
@@ -51,7 +51,7 @@ Pod::Spec.new do |s|
|
||||
s.header_dir = "RCTSettings"
|
||||
s.pod_target_xcconfig = {
|
||||
"USE_HEADERMAP" => "YES",
|
||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17",
|
||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++20",
|
||||
"HEADER_SEARCH_PATHS" => header_search_paths.join(' ')
|
||||
}
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ Pod::Spec.new do |s|
|
||||
s.header_dir = "RCTTypeSafety"
|
||||
s.pod_target_xcconfig = {
|
||||
"USE_HEADERMAP" => "YES",
|
||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17",
|
||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++20",
|
||||
"HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)/Libraries/TypeSafety\""
|
||||
}
|
||||
|
||||
|
||||
@@ -16,8 +16,8 @@ else
|
||||
source[:tag] = "v#{version}"
|
||||
end
|
||||
|
||||
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
|
||||
folly_version = '2021.07.22.00'
|
||||
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_CFG_NO_COROUTINES=1 -Wno-comma -Wno-shorten-64-to-32'
|
||||
folly_version = '2022.05.16.00'
|
||||
|
||||
header_search_paths = [
|
||||
"\"$(PODS_ROOT)/RCT-Folly\"",
|
||||
@@ -50,7 +50,7 @@ Pod::Spec.new do |s|
|
||||
s.header_dir = "RCTVibration"
|
||||
s.pod_target_xcconfig = {
|
||||
"USE_HEADERMAP" => "YES",
|
||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17",
|
||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++20",
|
||||
"HEADER_SEARCH_PATHS" => header_search_paths.join(' ')
|
||||
}
|
||||
s.frameworks = "AudioToolbox"
|
||||
|
||||
@@ -16,8 +16,8 @@ else
|
||||
source[:tag] = "v#{version}"
|
||||
end
|
||||
|
||||
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
|
||||
folly_version = '2021.07.22.00'
|
||||
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_CFG_NO_COROUTINES=1 -Wno-comma -Wno-shorten-64-to-32'
|
||||
folly_version = '2022.05.16.00'
|
||||
socket_rocket_version = '0.6.0'
|
||||
boost_compiler_flags = '-Wno-documentation'
|
||||
|
||||
@@ -47,6 +47,7 @@ header_search_paths = [
|
||||
"$(PODS_TARGET_SRCROOT)/ReactCommon",
|
||||
"$(PODS_ROOT)/boost",
|
||||
"$(PODS_ROOT)/DoubleConversion",
|
||||
"$(PODS_ROOT)/fmt/include",
|
||||
"$(PODS_ROOT)/RCT-Folly",
|
||||
"${PODS_ROOT}/Headers/Public/FlipperKit",
|
||||
"$(PODS_ROOT)/Headers/Public/ReactCommon",
|
||||
@@ -77,7 +78,7 @@ Pod::Spec.new do |s|
|
||||
"HEADER_SEARCH_PATHS" => header_search_paths,
|
||||
"DEFINES_MODULE" => "YES",
|
||||
"GCC_PREPROCESSOR_DEFINITIONS" => "RCT_METRO_PORT=${RCT_METRO_PORT}",
|
||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17",
|
||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++20",
|
||||
"FRAMEWORK_SEARCH_PATHS" => frameworks_search_paths.join(" ")
|
||||
}
|
||||
s.user_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/Headers/Private/React-Core\""}
|
||||
|
||||
@@ -16,8 +16,8 @@ else
|
||||
source[:tag] = "v#{version}"
|
||||
end
|
||||
|
||||
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
|
||||
folly_version = '2021.07.22.00'
|
||||
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_CFG_NO_COROUTINES=1 -Wno-comma -Wno-shorten-64-to-32'
|
||||
folly_version = '2022.05.16.00'
|
||||
socket_rocket_version = '0.6.0'
|
||||
|
||||
header_search_paths = [
|
||||
@@ -46,7 +46,7 @@ Pod::Spec.new do |s|
|
||||
s.header_dir = "CoreModules"
|
||||
s.pod_target_xcconfig = {
|
||||
"USE_HEADERMAP" => "YES",
|
||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17",
|
||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++20",
|
||||
"HEADER_SEARCH_PATHS" => header_search_paths.join(" ")
|
||||
}
|
||||
s.framework = "UIKit"
|
||||
|
||||
@@ -19,8 +19,8 @@ else
|
||||
source[:tag] = "v#{version}"
|
||||
end
|
||||
|
||||
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
|
||||
folly_version = '2021.07.22.00'
|
||||
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_CFG_NO_COROUTINES=1 -Wno-comma -Wno-shorten-64-to-32'
|
||||
folly_version = '2022.05.16.00'
|
||||
|
||||
Pod::Spec.new do |s|
|
||||
s.name = "FBReactNativeSpec"
|
||||
@@ -38,7 +38,7 @@ Pod::Spec.new do |s|
|
||||
|
||||
s.pod_target_xcconfig = {
|
||||
"USE_HEADERMAP" => "YES",
|
||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17",
|
||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++20",
|
||||
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/RCT-Folly\""
|
||||
}
|
||||
|
||||
|
||||
@@ -16,15 +16,16 @@ else
|
||||
source[:tag] = "v#{version}"
|
||||
end
|
||||
|
||||
folly_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1'
|
||||
folly_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_CFG_NO_COROUTINES=1'
|
||||
folly_compiler_flags = folly_flags + ' ' + '-Wno-comma -Wno-shorten-64-to-32'
|
||||
folly_version = '2021.07.22.00'
|
||||
folly_version = '2022.05.16.00'
|
||||
boost_compiler_flags = '-Wno-documentation'
|
||||
|
||||
header_search_paths = [
|
||||
"\"$(PODS_TARGET_SRCROOT)/ReactCommon\"",
|
||||
"\"$(PODS_ROOT)/boost\"",
|
||||
"\"$(PODS_ROOT)/DoubleConversion\"",
|
||||
"\"$(PODS_ROOT)/fmt/include\"",
|
||||
"\"$(PODS_ROOT)/RCT-Folly\"",
|
||||
"\"$(PODS_ROOT)/Headers/Private/React-Core\"",
|
||||
"\"$(PODS_ROOT)/Headers/Private/Yoga\"",
|
||||
@@ -69,7 +70,7 @@ Pod::Spec.new do |s|
|
||||
s.pod_target_xcconfig = {
|
||||
"HEADER_SEARCH_PATHS" => header_search_paths,
|
||||
"OTHER_CFLAGS" => "$(inherited) -DRN_FABRIC_ENABLED" + " " + folly_flags,
|
||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
|
||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++20"
|
||||
}.merge!(ENV['USE_FRAMEWORKS'] != nil ? {
|
||||
"PUBLIC_HEADERS_FOLDER_PATH" => "$(CONTENTS_FOLDER_PATH)/Headers/React"
|
||||
}: {})
|
||||
|
||||
@@ -8,5 +8,5 @@
|
||||
// LICENSE file in the root directory of this source tree.
|
||||
//
|
||||
|
||||
HEADER_SEARCH_PATHS = $(SRCROOT)/../third-party/boost_1_76_0 $(SRCROOT)/../third-party/folly-2021.07.22.00 $(SRCROOT)/../third-party/glog-0.3.5/src
|
||||
OTHER_CFLAGS = -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1
|
||||
HEADER_SEARCH_PATHS = $(SRCROOT)/../third-party/boost_1_76_0 $(SRCROOT)/../third-party/folly-2022.05.16.00 $(SRCROOT)/../third-party/glog-0.3.5/src
|
||||
OTHER_CFLAGS = -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_CFG_NO_COROUTINES=1
|
||||
|
||||
@@ -162,6 +162,7 @@ final def preparePrefab = tasks.register("preparePrefab", PreparePrefabHeadersTa
|
||||
new PrefabPreprocessingEntry(
|
||||
"folly_runtime",
|
||||
[
|
||||
new Pair(new File(buildDir, "third-party-ndk/fmt/include/").absolutePath, ""),
|
||||
new Pair(new File(buildDir, "third-party-ndk/folly/").absolutePath, ""),
|
||||
new Pair(new File(buildDir, "third-party-ndk/boost/boost_1_76_0/").absolutePath, ""),
|
||||
new Pair(new File(buildDir, "third-party-ndk/double-conversion/").absolutePath, ""),
|
||||
@@ -172,6 +173,7 @@ final def preparePrefab = tasks.register("preparePrefab", PreparePrefabHeadersTa
|
||||
[
|
||||
new Pair(new File(buildDir, "third-party-ndk/boost/boost_1_76_0/").absolutePath, ""),
|
||||
new Pair(new File(buildDir, "third-party-ndk/double-conversion/").absolutePath, ""),
|
||||
new Pair(new File(buildDir, "third-party-ndk/fmt/include/").absolutePath, ""),
|
||||
new Pair(new File(buildDir, "third-party-ndk/folly/").absolutePath, ""),
|
||||
new Pair(new File(buildDir, "third-party-ndk/glog/exported/").absolutePath, ""),
|
||||
new Pair("../ReactCommon/butter/", "butter/"),
|
||||
|
||||
@@ -54,10 +54,10 @@ target_compile_options(${CMAKE_PROJECT_NAME}
|
||||
# due to use migrating away from
|
||||
# #include <react/renderer/graphics/conversions.h>
|
||||
# This can be removed for React Native 0.73
|
||||
-Wno-error=cpp
|
||||
-Wno-error=cpp
|
||||
-fexceptions
|
||||
-frtti
|
||||
-std=c++17
|
||||
-std=c++20
|
||||
-DWITH_INSPECTOR=1
|
||||
-DLOG_TAG=\"ReactNative\")
|
||||
|
||||
|
||||
@@ -12,11 +12,11 @@ set(CMAKE_VERBOSE_MAKEFILE on)
|
||||
SET(folly_FLAGS
|
||||
-DFOLLY_NO_CONFIG=1
|
||||
-DFOLLY_HAVE_CLOCK_GETTIME=1
|
||||
-DFOLLY_USE_LIBCPP=1
|
||||
-DFOLLY_USE_LIBCPP=1 -DFOLLY_CFG_NO_COROUTINES=1
|
||||
-DFOLLY_MOBILE=1
|
||||
-DFOLLY_HAVE_RECVMMSG=1
|
||||
-DFOLLY_HAVE_PTHREAD=1
|
||||
# Once we target android-23 above, we can comment
|
||||
# the following line. NDK uses GNU style stderror_r() after API 23.
|
||||
-DFOLLY_HAVE_XSI_STRERROR_R=1
|
||||
)
|
||||
)
|
||||
|
||||
@@ -22,7 +22,7 @@ endif(CCACHE_FOUND)
|
||||
|
||||
# Make sure every shared lib includes a .note.gnu.build-id header
|
||||
add_link_options(-Wl,--build-id)
|
||||
add_compile_options(-Wall -Werror -std=c++17)
|
||||
add_compile_options(-Wall -Werror -std=c++20)
|
||||
|
||||
function(add_react_android_subdir relative_path)
|
||||
add_subdirectory(${REACT_ANDROID_DIR}/${relative_path} ReactAndroid/${relative_path})
|
||||
@@ -188,7 +188,7 @@ add_executable(reactnative_unittest
|
||||
-Werror
|
||||
-fexceptions
|
||||
-frtti
|
||||
-std=c++17
|
||||
-std=c++20
|
||||
-DHERMES_ENABLE_DEBUGGER)
|
||||
|
||||
target_link_libraries(reactnative_unittest
|
||||
|
||||
@@ -64,6 +64,6 @@ target_compile_options(
|
||||
-DLOG_TAG=\"Fabric\"
|
||||
-fexceptions
|
||||
-frtti
|
||||
-std=c++17
|
||||
-std=c++20
|
||||
-Wall
|
||||
)
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@ target_compile_options(
|
||||
hermes_executor
|
||||
PRIVATE
|
||||
$<$<CONFIG:Debug>:-DHERMES_ENABLE_DEBUGGER=1>
|
||||
-std=c++17
|
||||
-std=c++20
|
||||
-fexceptions
|
||||
)
|
||||
target_include_directories(hermes_executor PRIVATE .)
|
||||
|
||||
@@ -11,7 +11,7 @@ file(GLOB reactnativejni_SRC CONFIGURE_DEPENDS *.cpp)
|
||||
add_compile_options(
|
||||
-fexceptions
|
||||
-Wno-unused-lambda-capture
|
||||
-std=c++17
|
||||
-std=c++20
|
||||
-DWITH_INSPECTOR=1)
|
||||
|
||||
######################
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
cmake_minimum_required(VERSION 3.13)
|
||||
set(CMAKE_VERBOSE_MAKEFILE on)
|
||||
|
||||
add_compile_options(-fexceptions -frtti -std=c++17 -Wall -DLOG_TAG=\"Fabric\")
|
||||
add_compile_options(-fexceptions -frtti -std=c++20 -Wall -DLOG_TAG=\"Fabric\")
|
||||
|
||||
file(GLOB mapbuffer_SRC CONFIGURE_DEPENDS
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/react/common/mapbuffer/*.cpp)
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@
|
||||
cmake_minimum_required(VERSION 3.13)
|
||||
set(CMAKE_VERBOSE_MAKEFILE on)
|
||||
|
||||
add_compile_options(-fexceptions -frtti -std=c++17 -Wall -DLOG_TAG=\"ReactNative\")
|
||||
add_compile_options(-fexceptions -frtti -std=c++20 -Wall -DLOG_TAG=\"ReactNative\")
|
||||
|
||||
file(GLOB react_newarchdefaults_SRC CONFIGURE_DEPENDS *.cpp)
|
||||
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@
|
||||
cmake_minimum_required(VERSION 3.13)
|
||||
set(CMAKE_VERBOSE_MAKEFILE on)
|
||||
|
||||
add_compile_options(-fexceptions -frtti -std=c++17 -Wall)
|
||||
add_compile_options(-fexceptions -frtti -std=c++20 -Wall)
|
||||
|
||||
add_library(reactperfloggerjni SHARED reactperflogger/OnLoad.cpp)
|
||||
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@ target_compile_options(
|
||||
hermesinstancejni
|
||||
PRIVATE
|
||||
$<$<CONFIG:Debug>:-DHERMES_ENABLE_DEBUGGER=1>
|
||||
-std=c++17
|
||||
-std=c++20
|
||||
-fexceptions
|
||||
)
|
||||
target_include_directories(hermesinstancejni PRIVATE .)
|
||||
|
||||
@@ -16,7 +16,7 @@ target_compile_options(
|
||||
rninstance
|
||||
PRIVATE
|
||||
$<$<CONFIG:Debug>:-DHERMES_ENABLE_DEBUGGER=1>
|
||||
-std=c++17
|
||||
-std=c++20
|
||||
-fexceptions
|
||||
)
|
||||
target_include_directories(rninstance PUBLIC .)
|
||||
|
||||
@@ -10,7 +10,7 @@ add_compile_options(
|
||||
-fexceptions
|
||||
-frtti
|
||||
-Wno-unused-lambda-capture
|
||||
-std=c++17)
|
||||
-std=c++20)
|
||||
|
||||
#########################
|
||||
### callinvokerholder ###
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
cmake_minimum_required(VERSION 3.13)
|
||||
set(CMAKE_VERBOSE_MAKEFILE on)
|
||||
|
||||
add_compile_options(-fexceptions -frtti -std=c++17 -Wall -DLOG_TAG=\"ReactNative\")
|
||||
add_compile_options(-fexceptions -frtti -std=c++20 -Wall -DLOG_TAG=\"ReactNative\")
|
||||
|
||||
file(GLOB uimanagerjni_SRC CONFIGURE_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
add_library(uimanagerjni SHARED ${uimanagerjni_SRC})
|
||||
|
||||
+3
-8
@@ -10,6 +10,7 @@ SET(folly_FLAGS
|
||||
-DFOLLY_NO_CONFIG=1
|
||||
-DFOLLY_HAVE_CLOCK_GETTIME=1
|
||||
-DFOLLY_USE_LIBCPP=1
|
||||
-DFOLLY_CFG_NO_COROUTINES=1
|
||||
-DFOLLY_MOBILE=1
|
||||
-DFOLLY_HAVE_RECVMMSG=1
|
||||
-DFOLLY_HAVE_PTHREAD=1
|
||||
@@ -49,10 +50,6 @@ SET(folly_runtime_SRC
|
||||
folly/ScopeGuard.cpp
|
||||
folly/portability/SysUio.cpp)
|
||||
|
||||
IF (CMAKE_BUILD_TYPE MATCHES Debug)
|
||||
list(APPEND folly_runtime_SRC folly/lang/Assume.cpp)
|
||||
ENDIF ()
|
||||
|
||||
add_library(folly_runtime SHARED ${folly_runtime_SRC})
|
||||
|
||||
target_compile_options(folly_runtime
|
||||
@@ -80,10 +77,7 @@ add_library(folly_futures STATIC
|
||||
folly/Try.cpp
|
||||
folly/concurrency/CacheLocality.cpp
|
||||
folly/detail/AsyncTrace.cpp
|
||||
folly/detail/AtFork.cpp
|
||||
folly/detail/MemoryIdler.cpp
|
||||
folly/detail/SingletonStackTrace.cpp
|
||||
folly/detail/StaticSingletonManager.cpp
|
||||
folly/detail/ThreadLocalDetail.cpp
|
||||
folly/fibers/Baton.cpp
|
||||
folly/fibers/FiberManager.cpp
|
||||
@@ -108,10 +102,11 @@ add_library(folly_futures STATIC
|
||||
folly/lang/Exception.cpp
|
||||
folly/memory/MallctlHelper.cpp
|
||||
folly/portability/SysMembarrier.cpp
|
||||
folly/synchronization/AsymmetricMemoryBarrier.cpp
|
||||
folly/synchronization/AsymmetricThreadFence.cpp
|
||||
folly/synchronization/Hazptr.cpp
|
||||
folly/synchronization/WaitOptions.cpp
|
||||
folly/synchronization/detail/Sleeper.cpp
|
||||
folly/system/AtFork.cpp
|
||||
folly/system/Pid.cpp)
|
||||
|
||||
target_compile_options(folly_futures
|
||||
|
||||
@@ -16,8 +16,8 @@ else
|
||||
source[:tag] = "v#{version}"
|
||||
end
|
||||
|
||||
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32 -Wno-gnu-zero-variadic-macro-arguments'
|
||||
folly_version = '2021.07.22.00'
|
||||
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_CFG_NO_COROUTINES=1 -Wno-comma -Wno-shorten-64-to-32 -Wno-gnu-zero-variadic-macro-arguments'
|
||||
folly_version = '2022.05.16.00'
|
||||
folly_dep_name = 'RCT-Folly/Fabric'
|
||||
boost_compiler_flags = '-Wno-documentation'
|
||||
react_native_path = ".."
|
||||
@@ -33,7 +33,7 @@ Pod::Spec.new do |s|
|
||||
s.source = source
|
||||
s.source_files = "dummyFile.cpp"
|
||||
s.pod_target_xcconfig = { "USE_HEADERMAP" => "YES",
|
||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17",
|
||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++20",
|
||||
"DEFINES_MODULE" => "YES" }
|
||||
|
||||
if ENV['USE_FRAMEWORKS']
|
||||
@@ -51,6 +51,7 @@ Pod::Spec.new do |s|
|
||||
s.dependency "React-logger"
|
||||
s.dependency "glog"
|
||||
s.dependency "DoubleConversion"
|
||||
s.dependency 'fmt' , '~> 6.2.1'
|
||||
s.dependency "React-Core"
|
||||
s.dependency "React-debug"
|
||||
s.dependency "React-utils"
|
||||
@@ -100,6 +101,7 @@ Pod::Spec.new do |s|
|
||||
if ENV['USE_FRAMEWORKS']
|
||||
header_search_path = header_search_path + [
|
||||
"\"$(PODS_ROOT)/DoubleConversion\"",
|
||||
"\"$(PODS_ROOT)/fmt/include\"",
|
||||
"\"$(PODS_CONFIGURATION_BUILD_DIR)/React-Codegen/React_Codegen.framework/Headers\"",
|
||||
"\"$(PODS_CONFIGURATION_BUILD_DIR)/React-graphics/React_graphics.framework/Headers/react/renderer/graphics/platform/ios\"",
|
||||
"\"$(PODS_CONFIGURATION_BUILD_DIR)/React-rendererdebug/React_rendererdebug.framework/Headers/\"",
|
||||
|
||||
@@ -16,8 +16,8 @@ else
|
||||
source[:tag] = "v#{version}"
|
||||
end
|
||||
|
||||
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32 -Wno-gnu-zero-variadic-macro-arguments'
|
||||
folly_version = '2021.07.22.00'
|
||||
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_CFG_NO_COROUTINES=1 -Wno-comma -Wno-shorten-64-to-32 -Wno-gnu-zero-variadic-macro-arguments'
|
||||
folly_version = '2022.05.16.00'
|
||||
folly_dep_name = 'RCT-Folly/Fabric'
|
||||
boost_compiler_flags = '-Wno-documentation'
|
||||
react_native_path = ".."
|
||||
@@ -33,6 +33,7 @@ if ENV['USE_FRAMEWORKS']
|
||||
header_search_path = header_search_path + [
|
||||
"\"$(PODS_TARGET_SRCROOT)\"",
|
||||
"\"$(PODS_ROOT)/DoubleConversion\"",
|
||||
"\"$(PODS_ROOT)/fmt/include\"",
|
||||
"\"$(PODS_CONFIGURATION_BUILD_DIR)/React-Codegen/React_Codegen.framework/Headers\"",
|
||||
"\"$(PODS_CONFIGURATION_BUILD_DIR)/React-graphics/React_graphics.framework/Headers/react/renderer/graphics/platform/ios\"",
|
||||
"\"${PODS_CONFIGURATION_BUILD_DIR}/React-Fabric/React_Fabric.framework/Headers/react/renderer/imagemanager/platform/ios\"",
|
||||
@@ -58,7 +59,7 @@ Pod::Spec.new do |s|
|
||||
s.header_dir = "react/renderer/components/image"
|
||||
s.compiler_flags = folly_compiler_flags
|
||||
s.pod_target_xcconfig = { "USE_HEADERMAP" => "YES",
|
||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17",
|
||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++20",
|
||||
"HEADER_SEARCH_PATHS" => header_search_path.join(" ")
|
||||
}
|
||||
|
||||
@@ -77,6 +78,7 @@ Pod::Spec.new do |s|
|
||||
s.dependency "React-logger"
|
||||
s.dependency "glog"
|
||||
s.dependency "DoubleConversion"
|
||||
s.dependency 'fmt' , '~> 6.2.1'
|
||||
s.dependency "React-ImageManager"
|
||||
s.dependency "React-Fabric"
|
||||
s.dependency "React-utils"
|
||||
|
||||
@@ -30,7 +30,7 @@ Pod::Spec.new do |s|
|
||||
s.public_header_files = 'react/renderer/mapbuffer/*.h'
|
||||
s.header_dir = "react/renderer/mapbuffer"
|
||||
s.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)\" \"$(PODS_CONFIGURATION_BUILD_DIR)/React-debug/React_debug.framework/Headers\"", "USE_HEADERMAP" => "YES",
|
||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17" }
|
||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++20" }
|
||||
|
||||
if ENV['USE_FRAMEWORKS']
|
||||
s.header_mappings_dir = './'
|
||||
|
||||
@@ -49,7 +49,7 @@ Pod::Spec.new do |s|
|
||||
s.source_files = "dummyFile.cpp"
|
||||
s.pod_target_xcconfig = { "USE_HEADERMAP" => "YES",
|
||||
"HEADER_SEARCH_PATHS" => header_search_paths.join(' '),
|
||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17" }
|
||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++20" }
|
||||
|
||||
|
||||
use_react_native_codegen!(s, {
|
||||
|
||||
@@ -16,8 +16,8 @@ else
|
||||
source[:tag] = "v#{version}"
|
||||
end
|
||||
|
||||
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32 -Wno-gnu-zero-variadic-macro-arguments'
|
||||
folly_version = '2021.07.22.00'
|
||||
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_CFG_NO_COROUTINES=1 -Wno-comma -Wno-shorten-64-to-32 -Wno-gnu-zero-variadic-macro-arguments'
|
||||
folly_version = '2022.05.16.00'
|
||||
boost_compiler_flags = '-Wno-documentation'
|
||||
using_hermes = ENV['USE_HERMES'] == nil || ENV['USE_HERMES'] == "1"
|
||||
Pod::Spec.new do |s|
|
||||
@@ -32,9 +32,9 @@ Pod::Spec.new do |s|
|
||||
s.source = source
|
||||
s.header_dir = "ReactCommon" # Use global header_dir for all subspecs for use_frameworks! compatibility
|
||||
s.compiler_flags = folly_compiler_flags + ' ' + boost_compiler_flags
|
||||
s.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\" \"$(PODS_ROOT)/RCT-Folly\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/Headers/Private/React-Core\"",
|
||||
s.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\" \"$(PODS_ROOT)/RCT-Folly\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/fmt/include\" \"$(PODS_ROOT)/Headers/Private/React-Core\"",
|
||||
"USE_HEADERMAP" => "YES",
|
||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17",
|
||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++20",
|
||||
"GCC_WARN_PEDANTIC" => "YES" }
|
||||
if ENV['USE_FRAMEWORKS']
|
||||
s.header_mappings_dir = './'
|
||||
@@ -50,6 +50,7 @@ Pod::Spec.new do |s|
|
||||
ss.dependency "RCT-Folly", folly_version
|
||||
s.dependency "React-logger", version
|
||||
ss.dependency "DoubleConversion"
|
||||
ss.dependency 'fmt' , '~> 6.2.1'
|
||||
ss.dependency "glog"
|
||||
if using_hermes
|
||||
ss.dependency "hermes-engine"
|
||||
|
||||
@@ -10,7 +10,7 @@ add_compile_options(
|
||||
-DLOG_TAG=\"Butter\"
|
||||
-fexceptions
|
||||
-frtti
|
||||
-std=c++17
|
||||
-std=c++20
|
||||
-Wall
|
||||
-Wpedantic
|
||||
-Wno-gnu-zero-variadic-macro-arguments)
|
||||
|
||||
@@ -23,7 +23,7 @@ namespace butter {
|
||||
*
|
||||
* Target C++ Version
|
||||
* ------------------
|
||||
* Currently, Butter targets C++17.
|
||||
* Currently, Butter targets c++20.
|
||||
*
|
||||
* The Scope
|
||||
* ---------
|
||||
|
||||
@@ -9,7 +9,7 @@ set(CMAKE_VERBOSE_MAKEFILE on)
|
||||
add_compile_options(
|
||||
-fexceptions
|
||||
-frtti
|
||||
-std=c++17
|
||||
-std=c++20
|
||||
-Wall
|
||||
-Wpedantic
|
||||
-Wno-gnu-zero-variadic-macro-arguments)
|
||||
|
||||
@@ -16,8 +16,8 @@ else
|
||||
source[:tag] = "v#{version}"
|
||||
end
|
||||
|
||||
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
|
||||
folly_version = '2021.07.22.00'
|
||||
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_CFG_NO_COROUTINES=1 -Wno-comma -Wno-shorten-64-to-32'
|
||||
folly_version = '2022.05.16.00'
|
||||
boost_compiler_flags = '-Wno-documentation'
|
||||
|
||||
Pod::Spec.new do |s|
|
||||
|
||||
@@ -9,7 +9,7 @@ set(CMAKE_VERBOSE_MAKEFILE on)
|
||||
add_compile_options(
|
||||
-fexceptions
|
||||
-frtti
|
||||
-std=c++17
|
||||
-std=c++20
|
||||
-Wno-unused-lambda-capture
|
||||
-DLOG_TAG=\"ReactNative\")
|
||||
|
||||
|
||||
@@ -127,7 +127,7 @@ class NativeToJsBridge {
|
||||
bool m_applicationScriptHasFailure = false;
|
||||
|
||||
#ifdef WITH_FBSYSTRACE
|
||||
std::atomic_uint_least32_t m_systraceCookie = ATOMIC_VAR_INIT(0);
|
||||
std::atomic<uint_least32_t> m_systraceCookie{0};
|
||||
#endif
|
||||
};
|
||||
|
||||
|
||||
@@ -17,8 +17,8 @@ else
|
||||
source[:tag] = "v#{version}"
|
||||
end
|
||||
|
||||
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
|
||||
folly_version = '2021.07.22.00'
|
||||
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_CFG_NO_COROUTINES=1 -Wno-comma -Wno-shorten-64-to-32'
|
||||
folly_version = '2022.05.16.00'
|
||||
boost_compiler_flags = '-Wno-documentation'
|
||||
|
||||
Pod::Spec.new do |s|
|
||||
@@ -34,13 +34,14 @@ Pod::Spec.new do |s|
|
||||
s.exclude_files = "SampleCxxModule.*"
|
||||
s.compiler_flags = folly_compiler_flags + ' ' + boost_compiler_flags
|
||||
s.pod_target_xcconfig = {
|
||||
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\" \"$(PODS_ROOT)/RCT-Folly\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_CONFIGURATION_BUILD_DIR)/React-debug/React_debug.framework/Headers\" \"${PODS_CONFIGURATION_BUILD_DIR}/React-runtimeexecutor/React_runtimeexecutor.framework/Headers\"",
|
||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
|
||||
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\" \"$(PODS_ROOT)/RCT-Folly\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/fmt/include\" \"$(PODS_CONFIGURATION_BUILD_DIR)/React-debug/React_debug.framework/Headers\" \"${PODS_CONFIGURATION_BUILD_DIR}/React-runtimeexecutor/React_runtimeexecutor.framework/Headers\"",
|
||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++20"
|
||||
}
|
||||
s.header_dir = "cxxreact"
|
||||
|
||||
s.dependency "boost", "1.76.0"
|
||||
s.dependency "DoubleConversion"
|
||||
s.dependency 'fmt' , '~> 6.2.1'
|
||||
s.dependency "RCT-Folly", folly_version
|
||||
s.dependency "glog"
|
||||
s.dependency "React-jsinspector", version
|
||||
|
||||
@@ -17,8 +17,8 @@ else
|
||||
source[:tag] = "v#{version}"
|
||||
end
|
||||
|
||||
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_CLOCK_GETTIME=1 -Wno-comma -Wno-shorten-64-to-32'
|
||||
folly_version = '2021.07.22.00'
|
||||
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_CFG_NO_COROUTINES=1 -DFOLLY_HAVE_CLOCK_GETTIME=1 -Wno-comma -Wno-shorten-64-to-32'
|
||||
folly_version = '2022.05.16.00'
|
||||
boost_compiler_flags = '-Wno-documentation'
|
||||
|
||||
Pod::Spec.new do |s|
|
||||
@@ -37,8 +37,8 @@ Pod::Spec.new do |s|
|
||||
s.public_header_files = "executor/HermesExecutorFactory.h"
|
||||
s.compiler_flags = folly_compiler_flags + ' ' + boost_compiler_flags
|
||||
s.pod_target_xcconfig = {
|
||||
"HEADER_SEARCH_PATHS" => "\"${PODS_ROOT}/hermes-engine/destroot/include\" \"$(PODS_TARGET_SRCROOT)/..\" \"$(PODS_ROOT)/boost\" \"$(PODS_ROOT)/RCT-Folly\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/libevent/include\"",
|
||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
|
||||
"HEADER_SEARCH_PATHS" => "\"${PODS_ROOT}/hermes-engine/destroot/include\" \"$(PODS_TARGET_SRCROOT)/..\" \"$(PODS_ROOT)/boost\" \"$(PODS_ROOT)/RCT-Folly\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/fmt/include\" \"$(PODS_ROOT)/libevent/include\"",
|
||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++20"
|
||||
}
|
||||
s.header_dir = "reacthermes"
|
||||
s.dependency "React-cxxreact", version
|
||||
@@ -47,6 +47,7 @@ Pod::Spec.new do |s|
|
||||
s.dependency "React-perflogger", version
|
||||
s.dependency "RCT-Folly", folly_version
|
||||
s.dependency "DoubleConversion"
|
||||
s.dependency 'fmt' , '~> 6.2.1'
|
||||
s.dependency "glog"
|
||||
s.dependency "RCT-Folly/Futures", folly_version
|
||||
s.dependency "hermes-engine"
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
cmake_minimum_required(VERSION 3.13)
|
||||
set(CMAKE_VERBOSE_MAKEFILE on)
|
||||
|
||||
add_compile_options(-std=c++17)
|
||||
add_compile_options(-std=c++20)
|
||||
|
||||
file(GLOB_RECURSE hermes_executor_SRC CONFIGURE_DEPENDS *.cpp)
|
||||
add_library(
|
||||
|
||||
@@ -29,7 +29,7 @@ Pod::Spec.new do |s|
|
||||
s.header_dir = "."
|
||||
s.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"${PODS_TARGET_SRCROOT}/../..\"",
|
||||
"USE_HEADERMAP" => "YES",
|
||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17",
|
||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++20",
|
||||
"GCC_WARN_PEDANTIC" => "YES" }
|
||||
|
||||
if ENV['USE_FRAMEWORKS']
|
||||
|
||||
@@ -16,7 +16,7 @@ target_compile_options(
|
||||
hermes_inspector_modern
|
||||
PRIVATE
|
||||
-DHERMES_INSPECTOR_FOLLY_KLUDGE=1
|
||||
-std=c++17
|
||||
-std=c++20
|
||||
-fexceptions
|
||||
)
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
cmake_minimum_required(VERSION 3.13)
|
||||
set(CMAKE_VERBOSE_MAKEFILE on)
|
||||
|
||||
add_compile_options(-std=c++17)
|
||||
add_compile_options(-std=c++20)
|
||||
|
||||
file(GLOB_RECURSE js_error_handler_SRC CONFIGURE_DEPENDS *.cpp)
|
||||
add_library(
|
||||
|
||||
@@ -16,8 +16,8 @@ else
|
||||
source[:tag] = "v#{version}"
|
||||
end
|
||||
|
||||
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32 -Wno-gnu-zero-variadic-macro-arguments'
|
||||
folly_version = '2021.07.22.00'
|
||||
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_CFG_NO_COROUTINES=1 -Wno-comma -Wno-shorten-64-to-32 -Wno-gnu-zero-variadic-macro-arguments'
|
||||
folly_version = '2022.05.16.00'
|
||||
folly_dep_name = 'RCT-Folly/Fabric'
|
||||
boost_compiler_flags = '-Wno-documentation'
|
||||
react_native_path = ".."
|
||||
@@ -34,7 +34,7 @@ Pod::Spec.new do |s|
|
||||
s.header_dir = "jserrorhandler"
|
||||
s.source_files = "JsErrorHandler.{cpp,h}"
|
||||
s.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"${PODS_CONFIGURATION_BUILD_DIR}/React-Mapbuffer/React_Mapbuffer.framework/Headers\" \"$(PODS_CONFIGURATION_BUILD_DIR)/React-debug/React_debug.framework/Headers\"", "USE_HEADERMAP" => "YES",
|
||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17" }
|
||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++20" }
|
||||
s.compiler_flags = folly_compiler_flags + ' ' + boost_compiler_flags
|
||||
|
||||
if ENV['USE_FRAMEWORKS']
|
||||
|
||||
@@ -20,8 +20,8 @@ else
|
||||
source[:tag] = "v#{version}"
|
||||
end
|
||||
|
||||
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
|
||||
folly_version = '2021.07.22.00'
|
||||
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_CFG_NO_COROUTINES=1 -Wno-comma -Wno-shorten-64-to-32'
|
||||
folly_version = '2022.05.16.00'
|
||||
boost_compiler_flags = '-Wno-documentation'
|
||||
|
||||
Pod::Spec.new do |s|
|
||||
@@ -36,11 +36,12 @@ Pod::Spec.new do |s|
|
||||
|
||||
s.header_dir = "jsi"
|
||||
s.compiler_flags = folly_compiler_flags + ' ' + boost_compiler_flags
|
||||
s.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\" \"$(PODS_ROOT)/RCT-Folly\" \"$(PODS_ROOT)/DoubleConversion\"",
|
||||
s.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\" \"$(PODS_ROOT)/RCT-Folly\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/fmt/include\"",
|
||||
"DEFINES_MODULE" => "YES" }
|
||||
|
||||
s.dependency "boost", "1.76.0"
|
||||
s.dependency "DoubleConversion"
|
||||
s.dependency 'fmt' , '~> 6.2.1'
|
||||
s.dependency "RCT-Folly", folly_version
|
||||
s.dependency "glog"
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ set(CMAKE_VERBOSE_MAKEFILE on)
|
||||
add_compile_options(
|
||||
-fexceptions
|
||||
-frtti
|
||||
-std=c++17
|
||||
-std=c++20
|
||||
-O3)
|
||||
|
||||
add_library(jsireact
|
||||
|
||||
@@ -16,8 +16,8 @@ else
|
||||
source[:tag] = "v#{version}"
|
||||
end
|
||||
|
||||
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
|
||||
folly_version = '2021.07.22.00'
|
||||
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_CFG_NO_COROUTINES=1 -Wno-comma -Wno-shorten-64-to-32'
|
||||
folly_version = '2022.05.16.00'
|
||||
boost_compiler_flags = '-Wno-documentation'
|
||||
|
||||
Pod::Spec.new do |s|
|
||||
@@ -31,8 +31,8 @@ Pod::Spec.new do |s|
|
||||
s.source = source
|
||||
s.source_files = "jsireact/*.{cpp,h}"
|
||||
s.compiler_flags = folly_compiler_flags + ' ' + boost_compiler_flags
|
||||
s.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\" \"$(PODS_ROOT)/RCT-Folly\" \"$(PODS_ROOT)/DoubleConversion\"",
|
||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17" }
|
||||
s.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\" \"$(PODS_ROOT)/RCT-Folly\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/fmt/include\"",
|
||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++20" }
|
||||
s.header_dir = "jsireact"
|
||||
|
||||
s.dependency "React-cxxreact", version
|
||||
@@ -40,6 +40,7 @@ Pod::Spec.new do |s|
|
||||
s.dependency "React-perflogger", version
|
||||
s.dependency "RCT-Folly", folly_version
|
||||
s.dependency "DoubleConversion"
|
||||
s.dependency 'fmt' , '~> 6.2.1'
|
||||
s.dependency "glog"
|
||||
|
||||
if ENV['USE_HERMES'] == nil || ENV['USE_HERMES'] == "1"
|
||||
|
||||
@@ -8,7 +8,7 @@ set(CMAKE_VERBOSE_MAKEFILE on)
|
||||
|
||||
add_compile_options(
|
||||
-fexceptions
|
||||
-std=c++17)
|
||||
-std=c++20)
|
||||
|
||||
file(GLOB jsinspector_SRC CONFIGURE_DEPENDS *.cpp)
|
||||
add_library(jsinspector SHARED ${jsinspector_SRC})
|
||||
|
||||
@@ -27,5 +27,5 @@ Pod::Spec.new do |s|
|
||||
s.source = source
|
||||
s.source_files = "*.{cpp,h}"
|
||||
s.header_dir = 'jsinspector'
|
||||
s.pod_target_xcconfig = { "CLANG_CXX_LANGUAGE_STANDARD" => "c++17" }
|
||||
s.pod_target_xcconfig = { "CLANG_CXX_LANGUAGE_STANDARD" => "c++20" }
|
||||
end
|
||||
|
||||
@@ -17,8 +17,8 @@ else
|
||||
source[:tag] = "v#{version}"
|
||||
end
|
||||
|
||||
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
|
||||
folly_version = '2021.07.22.00'
|
||||
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_CFG_NO_COROUTINES=1 -Wno-comma -Wno-shorten-64-to-32'
|
||||
folly_version = '2022.05.16.00'
|
||||
boost_compiler_flags = '-Wno-documentation'
|
||||
|
||||
Pod::Spec.new do |s|
|
||||
|
||||
@@ -9,7 +9,7 @@ set(CMAKE_VERBOSE_MAKEFILE on)
|
||||
add_compile_options(
|
||||
-fexceptions
|
||||
-frtti
|
||||
-std=c++17
|
||||
-std=c++20
|
||||
-Wall
|
||||
-Wpedantic
|
||||
-Wno-gnu-zero-variadic-macro-arguments
|
||||
|
||||
@@ -9,7 +9,7 @@ set(CMAKE_VERBOSE_MAKEFILE on)
|
||||
add_compile_options(
|
||||
-fexceptions
|
||||
-frtti
|
||||
-std=c++17
|
||||
-std=c++20
|
||||
-Wall
|
||||
-Wpedantic
|
||||
-Wno-gnu-zero-variadic-macro-arguments
|
||||
|
||||
@@ -9,7 +9,7 @@ set(CMAKE_VERBOSE_MAKEFILE on)
|
||||
add_compile_options(
|
||||
-fexceptions
|
||||
-frtti
|
||||
-std=c++17
|
||||
-std=c++20
|
||||
-Wall
|
||||
-Wpedantic
|
||||
-Wno-gnu-zero-variadic-macro-arguments
|
||||
|
||||
@@ -27,7 +27,7 @@ Pod::Spec.new do |s|
|
||||
s.source = source
|
||||
s.source_files = "**/*.{cpp,h}"
|
||||
s.header_dir = "react/debug"
|
||||
s.pod_target_xcconfig = { "CLANG_CXX_LANGUAGE_STANDARD" => "c++17",
|
||||
s.pod_target_xcconfig = { "CLANG_CXX_LANGUAGE_STANDARD" => "c++20",
|
||||
"DEFINES_MODULE" => "YES" }
|
||||
|
||||
if ENV['USE_FRAMEWORKS']
|
||||
|
||||
@@ -9,7 +9,7 @@ set(CMAKE_VERBOSE_MAKEFILE on)
|
||||
add_compile_options(
|
||||
-fexceptions
|
||||
-frtti
|
||||
-std=c++17
|
||||
-std=c++20
|
||||
-Wall
|
||||
-Wpedantic
|
||||
-Wno-gnu-zero-variadic-macro-arguments
|
||||
|
||||
+4
-4
@@ -16,8 +16,8 @@ else
|
||||
source[:tag] = "v#{version}"
|
||||
end
|
||||
|
||||
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32 -Wno-gnu-zero-variadic-macro-arguments'
|
||||
folly_version = '2021.07.22.00'
|
||||
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_CFG_NO_COROUTINES=1 -Wno-comma -Wno-shorten-64-to-32 -Wno-gnu-zero-variadic-macro-arguments'
|
||||
folly_version = '2022.05.16.00'
|
||||
boost_compiler_flags = '-Wno-documentation'
|
||||
using_hermes = ENV['USE_HERMES'] == nil || ENV['USE_HERMES'] == "1"
|
||||
Pod::Spec.new do |s|
|
||||
@@ -32,9 +32,9 @@ Pod::Spec.new do |s|
|
||||
s.platforms = min_supported_versions
|
||||
s.source = source
|
||||
s.compiler_flags = folly_compiler_flags + ' ' + boost_compiler_flags
|
||||
s.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\" \"$(PODS_ROOT)/RCT-Folly\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/Headers/Private/React-Core\"",
|
||||
s.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\" \"$(PODS_ROOT)/RCT-Folly\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/fmt/include\" \"$(PODS_ROOT)/Headers/Private/React-Core\"",
|
||||
"USE_HEADERMAP" => "YES",
|
||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17",
|
||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++20",
|
||||
"GCC_WARN_PEDANTIC" => "YES" }
|
||||
if ENV['USE_FRAMEWORKS']
|
||||
s.header_mappings_dir = './'
|
||||
|
||||
+5
-4
@@ -16,8 +16,8 @@ else
|
||||
source[:tag] = "v#{version}"
|
||||
end
|
||||
|
||||
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32 -Wno-gnu-zero-variadic-macro-arguments'
|
||||
folly_version = '2021.07.22.00'
|
||||
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_CFG_NO_COROUTINES=1 -Wno-comma -Wno-shorten-64-to-32 -Wno-gnu-zero-variadic-macro-arguments'
|
||||
folly_version = '2022.05.16.00'
|
||||
boost_compiler_flags = '-Wno-documentation'
|
||||
using_hermes = ENV['USE_HERMES'] == nil || ENV['USE_HERMES'] == "1"
|
||||
Pod::Spec.new do |s|
|
||||
@@ -32,9 +32,9 @@ Pod::Spec.new do |s|
|
||||
s.platforms = min_supported_versions
|
||||
s.source = source
|
||||
s.compiler_flags = folly_compiler_flags + ' ' + boost_compiler_flags
|
||||
s.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\" \"$(PODS_ROOT)/RCT-Folly\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/Headers/Private/React-Core\" \"${PODS_CONFIGURATION_BUILD_DIR}/ReactCommon-Samples/ReactCommon_Samples.framework/Headers\"",
|
||||
s.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\" \"$(PODS_ROOT)/RCT-Folly\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/fmt/include\" \"$(PODS_ROOT)/Headers/Private/React-Core\" \"${PODS_CONFIGURATION_BUILD_DIR}/ReactCommon-Samples/ReactCommon_Samples.framework/Headers\"",
|
||||
"USE_HEADERMAP" => "YES",
|
||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17",
|
||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++20",
|
||||
"GCC_WARN_PEDANTIC" => "YES" }
|
||||
if ENV['USE_FRAMEWORKS']
|
||||
s.header_mappings_dir = './'
|
||||
@@ -47,6 +47,7 @@ Pod::Spec.new do |s|
|
||||
|
||||
s.dependency "RCT-Folly"
|
||||
s.dependency "DoubleConversion"
|
||||
s.dependency 'fmt' , '~> 6.2.1'
|
||||
s.dependency "ReactCommon/turbomodule/core"
|
||||
s.dependency "React-NativeModulesApple"
|
||||
s.dependency "React-Core"
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ set(CMAKE_VERBOSE_MAKEFILE on)
|
||||
add_compile_options(
|
||||
-fexceptions
|
||||
-frtti
|
||||
-std=c++17
|
||||
-std=c++20
|
||||
-Wall
|
||||
-Wpedantic
|
||||
-Wno-gnu-zero-variadic-macro-arguments
|
||||
|
||||
@@ -9,7 +9,7 @@ set(CMAKE_VERBOSE_MAKEFILE on)
|
||||
add_compile_options(
|
||||
-fexceptions
|
||||
-frtti
|
||||
-std=c++17
|
||||
-std=c++20
|
||||
-Wall
|
||||
-Wpedantic
|
||||
-Wno-gnu-zero-variadic-macro-arguments
|
||||
|
||||
@@ -9,7 +9,7 @@ set(CMAKE_VERBOSE_MAKEFILE on)
|
||||
add_compile_options(
|
||||
-fexceptions
|
||||
-frtti
|
||||
-std=c++17
|
||||
-std=c++20
|
||||
-Wall
|
||||
-Wpedantic
|
||||
-Wno-gnu-zero-variadic-macro-arguments
|
||||
|
||||
@@ -9,7 +9,7 @@ set(CMAKE_VERBOSE_MAKEFILE on)
|
||||
add_compile_options(
|
||||
-fexceptions
|
||||
-frtti
|
||||
-std=c++17
|
||||
-std=c++20
|
||||
-Wall
|
||||
-Wpedantic
|
||||
-Wno-gnu-zero-variadic-macro-arguments
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ set(CMAKE_VERBOSE_MAKEFILE on)
|
||||
add_compile_options(
|
||||
-fexceptions
|
||||
-frtti
|
||||
-std=c++17
|
||||
-std=c++20
|
||||
-Wall
|
||||
-Wpedantic
|
||||
-Wno-gnu-zero-variadic-macro-arguments
|
||||
|
||||
@@ -9,7 +9,7 @@ set(CMAKE_VERBOSE_MAKEFILE on)
|
||||
add_compile_options(
|
||||
-fexceptions
|
||||
-frtti
|
||||
-std=c++17
|
||||
-std=c++20
|
||||
-Wall
|
||||
-Wpedantic
|
||||
-Wno-gnu-zero-variadic-macro-arguments
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ set(CMAKE_VERBOSE_MAKEFILE on)
|
||||
add_compile_options(
|
||||
-fexceptions
|
||||
-frtti
|
||||
-std=c++17
|
||||
-std=c++20
|
||||
-Wall
|
||||
-Wpedantic
|
||||
-Wno-gnu-zero-variadic-macro-arguments
|
||||
|
||||
@@ -9,7 +9,7 @@ set(CMAKE_VERBOSE_MAKEFILE on)
|
||||
add_compile_options(
|
||||
-fexceptions
|
||||
-frtti
|
||||
-std=c++17
|
||||
-std=c++20
|
||||
-Wall
|
||||
-Wpedantic
|
||||
-Wno-gnu-zero-variadic-macro-arguments
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ set(CMAKE_VERBOSE_MAKEFILE on)
|
||||
add_compile_options(
|
||||
-fexceptions
|
||||
-frtti
|
||||
-std=c++17
|
||||
-std=c++20
|
||||
-Wall
|
||||
-Wpedantic
|
||||
-Wno-gnu-zero-variadic-macro-arguments
|
||||
|
||||
@@ -9,7 +9,7 @@ set(CMAKE_VERBOSE_MAKEFILE on)
|
||||
add_compile_options(
|
||||
-fexceptions
|
||||
-frtti
|
||||
-std=c++17
|
||||
-std=c++20
|
||||
-Wall
|
||||
-Wpedantic
|
||||
-Wno-gnu-zero-variadic-macro-arguments
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ set(CMAKE_VERBOSE_MAKEFILE on)
|
||||
add_compile_options(
|
||||
-fexceptions
|
||||
-frtti
|
||||
-std=c++17
|
||||
-std=c++20
|
||||
-Wall
|
||||
-Wpedantic
|
||||
-Wno-gnu-zero-variadic-macro-arguments
|
||||
|
||||
@@ -39,7 +39,7 @@ target_compile_options(
|
||||
-DLOG_TAG=\"Fabric\"
|
||||
-fexceptions
|
||||
-frtti
|
||||
-std=c++17
|
||||
-std=c++20
|
||||
-Wall
|
||||
-Wpedantic
|
||||
-Wno-gnu-zero-variadic-macro-arguments
|
||||
|
||||
@@ -9,7 +9,7 @@ set(CMAKE_VERBOSE_MAKEFILE on)
|
||||
add_compile_options(
|
||||
-fexceptions
|
||||
-frtti
|
||||
-std=c++17
|
||||
-std=c++20
|
||||
-Wall
|
||||
-Wpedantic
|
||||
-Wno-gnu-zero-variadic-macro-arguments
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ set(CMAKE_VERBOSE_MAKEFILE on)
|
||||
add_compile_options(
|
||||
-fexceptions
|
||||
-frtti
|
||||
-std=c++17
|
||||
-std=c++20
|
||||
-Wall
|
||||
-Wpedantic
|
||||
-Wno-gnu-zero-variadic-macro-arguments
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ set(CMAKE_VERBOSE_MAKEFILE on)
|
||||
add_compile_options(
|
||||
-fexceptions
|
||||
-frtti
|
||||
-std=c++17
|
||||
-std=c++20
|
||||
-Wall
|
||||
-Wpedantic
|
||||
-Wno-gnu-zero-variadic-macro-arguments
|
||||
|
||||
@@ -9,7 +9,7 @@ set(CMAKE_VERBOSE_MAKEFILE on)
|
||||
add_compile_options(
|
||||
-fexceptions
|
||||
-frtti
|
||||
-std=c++17
|
||||
-std=c++20
|
||||
-Wall
|
||||
-Wpedantic
|
||||
-Wno-gnu-zero-variadic-macro-arguments
|
||||
|
||||
@@ -9,7 +9,7 @@ set(CMAKE_VERBOSE_MAKEFILE on)
|
||||
add_compile_options(
|
||||
-fexceptions
|
||||
-frtti
|
||||
-std=c++17
|
||||
-std=c++20
|
||||
-Wall
|
||||
-Wpedantic
|
||||
-Wno-gnu-zero-variadic-macro-arguments
|
||||
|
||||
@@ -9,7 +9,7 @@ set(CMAKE_VERBOSE_MAKEFILE on)
|
||||
add_compile_options(
|
||||
-fexceptions
|
||||
-frtti
|
||||
-std=c++17
|
||||
-std=c++20
|
||||
-Wall
|
||||
-Wpedantic
|
||||
-Wno-gnu-zero-variadic-macro-arguments
|
||||
|
||||
@@ -16,13 +16,14 @@ else
|
||||
source[:tag] = "v#{version}"
|
||||
end
|
||||
|
||||
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
|
||||
folly_version = '2021.07.22.00'
|
||||
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_CFG_NO_COROUTINES=1 -Wno-comma -Wno-shorten-64-to-32'
|
||||
folly_version = '2022.05.16.00'
|
||||
|
||||
header_search_paths = [
|
||||
"\"$(PODS_ROOT)/RCT-Folly\"",
|
||||
"\"$(PODS_ROOT)/boost\" \"$(PODS_ROOT)/RCT-Folly\"",
|
||||
"\"$(PODS_ROOT)/DoubleConversion\""
|
||||
"\"$(PODS_ROOT)/DoubleConversion\"",
|
||||
"\"$(PODS_ROOT)/fmt/include\""
|
||||
]
|
||||
|
||||
if ENV['USE_FRAMEWORKS']
|
||||
@@ -44,7 +45,7 @@ Pod::Spec.new do |s|
|
||||
s.header_dir = "react/renderer/debug"
|
||||
s.exclude_files = "tests"
|
||||
s.pod_target_xcconfig = {
|
||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17",
|
||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++20",
|
||||
"HEADER_SEARCH_PATHS" => header_search_paths.join(' '),
|
||||
"DEFINES_MODULE" => "YES"
|
||||
}
|
||||
@@ -57,4 +58,5 @@ Pod::Spec.new do |s|
|
||||
s.dependency "React-debug"
|
||||
s.dependency "RCT-Folly", folly_version
|
||||
s.dependency "DoubleConversion"
|
||||
s.dependency 'fmt' , '~> 6.2.1'
|
||||
end
|
||||
|
||||
@@ -9,7 +9,7 @@ set(CMAKE_VERBOSE_MAKEFILE on)
|
||||
add_compile_options(
|
||||
-fexceptions
|
||||
-frtti
|
||||
-std=c++17
|
||||
-std=c++20
|
||||
-Wall
|
||||
-Wpedantic
|
||||
-Wno-gnu-zero-variadic-macro-arguments
|
||||
@@ -26,4 +26,3 @@ target_link_libraries(react_render_element
|
||||
react_render_core
|
||||
react_render_componentregistry
|
||||
)
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ set(CMAKE_VERBOSE_MAKEFILE on)
|
||||
add_compile_options(
|
||||
-fexceptions
|
||||
-frtti
|
||||
-std=c++17
|
||||
-std=c++20
|
||||
-Wall
|
||||
-Wpedantic
|
||||
-Wno-gnu-zero-variadic-macro-arguments
|
||||
@@ -25,4 +25,3 @@ target_include_directories(react_render_graphics
|
||||
)
|
||||
|
||||
target_link_libraries(react_render_graphics glog fb fbjni folly_runtime react_debug)
|
||||
|
||||
|
||||
@@ -16,8 +16,8 @@ else
|
||||
source[:tag] = "v#{version}"
|
||||
end
|
||||
|
||||
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
|
||||
folly_version = '2021.07.22.00'
|
||||
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_CFG_NO_COROUTINES=1 -Wno-comma -Wno-shorten-64-to-32'
|
||||
folly_version = '2022.05.16.00'
|
||||
boost_compiler_flags = '-Wno-documentation'
|
||||
|
||||
Pod::Spec.new do |s|
|
||||
|
||||
@@ -9,7 +9,7 @@ set(CMAKE_VERBOSE_MAKEFILE on)
|
||||
add_compile_options(
|
||||
-fexceptions
|
||||
-frtti
|
||||
-std=c++17
|
||||
-std=c++20
|
||||
-Wall
|
||||
-Wpedantic
|
||||
-Wno-gnu-zero-variadic-macro-arguments
|
||||
|
||||
+3
-2
@@ -16,7 +16,7 @@ else
|
||||
source[:tag] = "v#{version}"
|
||||
end
|
||||
|
||||
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
|
||||
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_CFG_NO_COROUTINES=1 -Wno-comma -Wno-shorten-64-to-32'
|
||||
boost_compiler_flags = '-Wno-documentation'
|
||||
|
||||
Pod::Spec.new do |s|
|
||||
@@ -46,6 +46,7 @@ Pod::Spec.new do |s|
|
||||
header_search_paths = header_search_paths + [
|
||||
"\"${PODS_CONFIGURATION_BUILD_DIR}/React-Fabric/React_Fabric.framework/Headers\"",
|
||||
"\"$(PODS_ROOT)/DoubleConversion\"",
|
||||
"\"$(PODS_ROOT)/fmt/include\"",
|
||||
"\"${PODS_CONFIGURATION_BUILD_DIR}/React-graphics/React_graphics.framework/Headers\"",
|
||||
"\"${PODS_CONFIGURATION_BUILD_DIR}/React-graphics/React_graphics.framework/Headers/react/renderer/graphics/platform/ios\"",
|
||||
"\"${PODS_CONFIGURATION_BUILD_DIR}/React-debug/React_debug.framework/Headers\"",
|
||||
@@ -57,7 +58,7 @@ Pod::Spec.new do |s|
|
||||
s.pod_target_xcconfig = {
|
||||
"USE_HEADERMAP" => "NO",
|
||||
"HEADER_SEARCH_PATHS" => header_search_paths.join(" "),
|
||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17",
|
||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++20",
|
||||
"DEFINES_MODULE" => "YES",
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ set(CMAKE_VERBOSE_MAKEFILE on)
|
||||
add_compile_options(
|
||||
-fexceptions
|
||||
-frtti
|
||||
-std=c++17
|
||||
-std=c++20
|
||||
-Wall
|
||||
-Wpedantic
|
||||
-Wno-gnu-zero-variadic-macro-arguments
|
||||
|
||||
@@ -9,7 +9,7 @@ set(CMAKE_VERBOSE_MAKEFILE on)
|
||||
add_compile_options(
|
||||
-fexceptions
|
||||
-frtti
|
||||
-std=c++17
|
||||
-std=c++20
|
||||
-Wall
|
||||
-Wpedantic
|
||||
-Wno-gnu-zero-variadic-macro-arguments
|
||||
|
||||
@@ -9,7 +9,7 @@ set(CMAKE_VERBOSE_MAKEFILE on)
|
||||
add_compile_options(
|
||||
-fexceptions
|
||||
-frtti
|
||||
-std=c++17
|
||||
-std=c++20
|
||||
-Wall
|
||||
-Wpedantic
|
||||
-Wno-gnu-zero-variadic-macro-arguments
|
||||
|
||||
@@ -9,7 +9,7 @@ set(CMAKE_VERBOSE_MAKEFILE on)
|
||||
add_compile_options(
|
||||
-fexceptions
|
||||
-frtti
|
||||
-std=c++17
|
||||
-std=c++20
|
||||
-Wall
|
||||
-Wpedantic
|
||||
-Wno-gnu-zero-variadic-macro-arguments
|
||||
|
||||
+3
-3
@@ -16,8 +16,8 @@ else
|
||||
source[:tag] = "v#{version}"
|
||||
end
|
||||
|
||||
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
|
||||
folly_version = '2021.07.22.00'
|
||||
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_CFG_NO_COROUTINES=1 -Wno-comma -Wno-shorten-64-to-32'
|
||||
folly_version = '2022.05.16.00'
|
||||
|
||||
header_search_paths = [
|
||||
"\"$(PODS_ROOT)/RCT-Folly\"",
|
||||
@@ -43,7 +43,7 @@ Pod::Spec.new do |s|
|
||||
s.header_dir = "react/renderer/runtimescheduler"
|
||||
s.exclude_files = "tests"
|
||||
s.pod_target_xcconfig = {
|
||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17",
|
||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++20",
|
||||
"HEADER_SEARCH_PATHS" => header_search_paths.join(' ')}
|
||||
|
||||
if ENV['USE_FRAMEWORKS']
|
||||
|
||||
@@ -9,7 +9,7 @@ set(CMAKE_VERBOSE_MAKEFILE on)
|
||||
add_compile_options(
|
||||
-fexceptions
|
||||
-frtti
|
||||
-std=c++17
|
||||
-std=c++20
|
||||
-Wall
|
||||
-Wpedantic
|
||||
-Wno-gnu-zero-variadic-macro-arguments
|
||||
|
||||
@@ -9,7 +9,7 @@ set(CMAKE_VERBOSE_MAKEFILE on)
|
||||
add_compile_options(
|
||||
-fexceptions
|
||||
-frtti
|
||||
-std=c++17
|
||||
-std=c++20
|
||||
-Wall
|
||||
-Wpedantic
|
||||
-Wno-gnu-zero-variadic-macro-arguments
|
||||
|
||||
@@ -9,7 +9,7 @@ set(CMAKE_VERBOSE_MAKEFILE on)
|
||||
add_compile_options(
|
||||
-fexceptions
|
||||
-frtti
|
||||
-std=c++17
|
||||
-std=c++20
|
||||
-Wall
|
||||
-Wpedantic
|
||||
-Wno-gnu-zero-variadic-macro-arguments
|
||||
|
||||
@@ -9,7 +9,7 @@ set(CMAKE_VERBOSE_MAKEFILE on)
|
||||
add_compile_options(
|
||||
-fexceptions
|
||||
-frtti
|
||||
-std=c++17
|
||||
-std=c++20
|
||||
-Wall
|
||||
-Wpedantic
|
||||
-Wno-gnu-zero-variadic-macro-arguments
|
||||
|
||||
@@ -9,7 +9,7 @@ set(CMAKE_VERBOSE_MAKEFILE on)
|
||||
add_compile_options(
|
||||
-fexceptions
|
||||
-frtti
|
||||
-std=c++17
|
||||
-std=c++20
|
||||
-Wall
|
||||
-Wpedantic
|
||||
-Wno-gnu-zero-variadic-macro-arguments
|
||||
|
||||
@@ -16,7 +16,7 @@ target_compile_options(
|
||||
bridgeless
|
||||
PRIVATE
|
||||
$<$<CONFIG:Debug>:-DHERMES_ENABLE_DEBUGGER=1>
|
||||
-std=c++17
|
||||
-std=c++20
|
||||
-fexceptions
|
||||
)
|
||||
target_include_directories(bridgeless PUBLIC .)
|
||||
|
||||
@@ -16,8 +16,8 @@ else
|
||||
source[:tag] = "v#{version}"
|
||||
end
|
||||
|
||||
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32 -Wno-gnu-zero-variadic-macro-arguments'
|
||||
folly_version = '2021.07.22.00'
|
||||
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_CFG_NO_COROUTINES=1 -Wno-comma -Wno-shorten-64-to-32 -Wno-gnu-zero-variadic-macro-arguments'
|
||||
folly_version = '2022.05.16.00'
|
||||
folly_dep_name = 'RCT-Folly/Fabric'
|
||||
boost_compiler_flags = '-Wno-documentation'
|
||||
|
||||
@@ -35,7 +35,7 @@ Pod::Spec.new do |s|
|
||||
s.header_dir = "react/runtime"
|
||||
s.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\" \"$(PODS_ROOT)/Headers/Private/React-Core\" \"${PODS_TARGET_SRCROOT}/../..\"",
|
||||
"USE_HEADERMAP" => "YES",
|
||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17",
|
||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++20",
|
||||
"GCC_WARN_PEDANTIC" => "YES" }
|
||||
s.compiler_flags = folly_compiler_flags + ' ' + boost_compiler_flags
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user