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                   = "ABI47_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                 = "Facebook, Inc. and its affiliates"
25  s.platforms              = { :ios => "12.4", :tvos => "12.4" }
26  s.source                 = { :path => "." }
27  s.source_files           = "*.{cpp,h}"
28  s.exclude_files          = "ABI47_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\"" }
31  s.header_dir             = "ABI47_0_0cxxreact"
32
33  s.dependency "boost", "1.76.0"
34  s.dependency "DoubleConversion"
35  s.dependency "RCT-Folly", folly_version
36  s.dependency "glog"
37  s.dependency "ABI47_0_0React-jsinspector", version
38  s.dependency "ABI47_0_0React-callinvoker", version
39  s.dependency "ABI47_0_0React-runtimeexecutor", version
40  s.dependency "ABI47_0_0React-perflogger", version
41  s.dependency "ABI47_0_0React-jsi", version
42  s.dependency "ABI47_0_0React-logger", version
43end
44