1# coding: utf-8 2# Copyright (c) Meta Platforms, Inc. and affiliates. 3# 4# This source code is licensed under the MIT license found in the 5# LICENSE file in the root directory of this source tree. 6 7require "json" 8 9package = JSON.parse(File.read(File.join(__dir__, "..", "..", "package.json"))) 10version = package['version'] 11 12 13 14folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32' 15folly_version = '2021.07.22.00' 16boost_compiler_flags = '-Wno-documentation' 17 18Pod::Spec.new do |s| 19 s.name = "ABI49_0_0React-cxxreact" 20 s.version = version 21 s.summary = "-" # TODO 22 s.homepage = "https://reactnative.dev/" 23 s.license = package["license"] 24 s.author = "Meta Platforms, Inc. and its affiliates" 25 s.platforms = { :ios => "12.4" } 26 s.source = { :path => "." } 27 s.source_files = "*.{cpp,h}" 28 s.exclude_files = "ABI49_0_0SampleCxxModule.*" 29 s.compiler_flags = folly_compiler_flags + ' ' + boost_compiler_flags 30 s.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\" \"$(PODS_ROOT)/RCT-Folly\" \"$(PODS_ROOT)/DoubleConversion\" \"${PODS_CONFIGURATION_BUILD_DIR}/React-runtimeexecutor/React_runtimeexecutor.framework/Headers\" \"$(PODS_CONFIGURATION_BUILD_DIR)/React-debug/React_debug.framework/Headers\"", 31 "CLANG_CXX_LANGUAGE_STANDARD" => "c++17" } 32 s.header_dir = "ABI49_0_0cxxreact" 33 34 s.dependency "boost", "1.76.0" 35 s.dependency "DoubleConversion" 36 s.dependency "RCT-Folly", folly_version 37 s.dependency "glog" 38 s.dependency "ABI49_0_0React-jsinspector", version 39 s.dependency "ABI49_0_0React-callinvoker", version 40 s.dependency "ABI49_0_0React-runtimeexecutor", version 41 s.dependency "ABI49_0_0React-perflogger", version 42 s.dependency "ABI49_0_0React-jsi", version 43 s.dependency "ABI49_0_0React-logger", version 44 s.dependency "ABI49_0_0React-debug", version 45 46 if ENV['USE_HERMES'] == nil || ENV['USE_HERMES'] == "1" 47 s.dependency 'ABI49_0_0hermes-engine' 48 end 49end 50