From 1c3f1ab55aa8541bde2adbc4c4f25914a5731021 Mon Sep 17 00:00:00 2001 From: Mark Aron Szulyovszky Date: Sun, 15 Oct 2017 21:50:54 +0100 Subject: [PATCH 1/2] Added boost.podspec --- scripts/process-podspecs.sh | 1 + third-party-podspecs/boost.podspec | 96 ++++++++++++++++++++++++++++++ 2 files changed, 97 insertions(+) create mode 100644 third-party-podspecs/boost.podspec diff --git a/scripts/process-podspecs.sh b/scripts/process-podspecs.sh index 6f9f8c894bc88a..2938ec1f496dd5 100755 --- a/scripts/process-podspecs.sh +++ b/scripts/process-podspecs.sh @@ -66,6 +66,7 @@ cd "$ROOT/third-party-podspecs" push Folly.podspec push DoubleConversion.podspec push GLog.podspec +push boost.podspec process "$ROOT/ReactCommon/yoga" process "$ROOT" _ignore_me_subspec_for_linting_ diff --git a/third-party-podspecs/boost.podspec b/third-party-podspecs/boost.podspec new file mode 100644 index 00000000000000..5ebc6c4086b6f9 --- /dev/null +++ b/third-party-podspecs/boost.podspec @@ -0,0 +1,96 @@ + +Pod::Spec.new do |spec| + spec.name = 'boost' + spec.version = '1.63.0' + spec.license = { :type => 'Boost Software License', :file => "LICENSE_1_0.txt" } + spec.homepage = 'http://www.boost.org' + spec.summary = 'Boost provides free peer-reviewed portable C++ source libraries.' + spec.authors = 'Rene Rivera' + spec.source = { :http => 'https://github.com/react-native-community/boost-for-react-native/releases/download/v1.63.0-0/boost_1_63_0.tar.gz' } + + # Pinning to the same version as React.podspec. + spec.platforms = { :ios => "8.0", :tvos => "9.2" } + spec.requires_arc = false + spec.xcconfig = { + :HEADER_SEARCH_PATHS => "\"${PODS_ROOT}/boost\"" + } + + spec.subspec 'string_algorithms-includes' do |cs| + cs.preserve_paths = [ + "boost/*.h", + "boost/predef/**/*.h", + "boost/*.hpp", + "boost/algorithm/*.hpp", + "boost/algorithm/**/*.hpp", + "boost/config/**/*.hpp", + "boost/core/*.hpp", + "boost/range/**/*.hpp", + "boost/bind/**/*.hpp", + "boost/detail/**/*.hpp", + "boost/exception/**/*.hpp", + "boost/function/**/*.hpp", + "boost/concept/**/*hpp", + "boost/utility/**/*.hpp", + "boost/type_traits/**/*.hpp", + "boost/mpl/**/*.hpp", + "boost/preprocessor/**/*.hpp", + "boost/iterator/**/*.hpp" + ] + end + + spec.subspec 'shared_ptr-includes' do |cs| + cs.preserve_paths = [ + "boost/*.h", + "boost/predef/**/*.h", + "boost/*.hpp", + "boost/config/**/*.hpp", + "boost/core/*.hpp", + "boost/exception/detail/attribute_noreturn.hpp", + "boost/exception/exception.hpp", + "boost/detail/*.hpp", + "boost/smart_ptr/*.hpp", + "boost/smart_ptr/**/*.hpp" + ] + end + + spec.subspec 'pointer_cast-includes' do |cs| + cs.preserve_paths = 'boost/pointer_cast.hpp' + end + + spec.subspec 'numeric-includes' do |cs| + cs.preserve_paths = 'boost/numeric/**/*.hpp' + end + + spec.subspec 'preprocessor-includes' do |cs| + cs.preserve_paths = 'boost/preprocessor/**/*.hpp' + end + + spec.subspec 'math-includes' do |cs| + cs.preserve_paths = [ + "boost/*.h", + "boost/predef/**/*.h", + "boost/*.hpp", + "boost/math/**/*.hpp", + "boost/config/**/*.hpp", + "boost/detail/*.hpp", + "boost/utility/*.hpp", + "boost/mpl/**/*.hpp", + "boost/type_traits/**/*.hpp", + "boost/accumulators/**/*.hpp" + ] + end + + spec.subspec 'graph-includes' do |cs| + cs.preserve_paths = [ + "boost/*.h", + "boost/predef/**/*.h", + "boost/*.hpp", + "boost/{algorithm,accumulators,circular_buffer,archive,bimap,bind,chrono,concept,config,container,date_time,detail,dynamic_bitset,exception,filesystem,format,function,functional,fusion,graph,integer,intrusive,io,iterator,math,move,mpi,mpl,multi_index,numeric,optional,parameter,pending,preprocessor,property_map,property_tree,proto,python,random,range,ratio,regex,serialization,smart_ptr,spirit,system,test,thread,tr1,tuple,type_traits,typeof,units,unordered,utility,variant,xpressive}/**/*.hpp", + "boost/xpressive/**/*.ipp" + ] + end + + +end + + \ No newline at end of file From a7e9e7e1dc6299bee72e5cbfa73dd702a4c1f1e8 Mon Sep 17 00:00:00 2001 From: fishmwei Date: Wed, 8 Nov 2017 10:23:46 +0800 Subject: [PATCH 2/2] Update boost.podspec Fix 'boost/type_index/stl_type_index.hpp' file not found --- third-party-podspecs/boost.podspec | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/third-party-podspecs/boost.podspec b/third-party-podspecs/boost.podspec index 5ebc6c4086b6f9..233466905440ca 100644 --- a/third-party-podspecs/boost.podspec +++ b/third-party-podspecs/boost.podspec @@ -89,8 +89,10 @@ Pod::Spec.new do |spec| "boost/xpressive/**/*.ipp" ] end - + spec.subspec 'type_index-includes' do |cs| + cs.preserve_paths = 'boost/type_index/**/*.hpp' + end end - \ No newline at end of file +