2017-05-03 21:31:35 +00:00
|
|
|
Pod::Spec.new do |spec|
|
|
|
|
spec.name = 'Folly'
|
|
|
|
spec.version = '2016.09.26.00'
|
|
|
|
spec.license = { :type => 'Apache License, Version 2.0' }
|
|
|
|
spec.homepage = 'https://github.com/facebook/folly'
|
|
|
|
spec.summary = 'An open-source C++ library developed and used at Facebook.'
|
|
|
|
spec.authors = 'Facebook'
|
|
|
|
spec.source = { :git => 'https://github.com/facebook/folly.git',
|
|
|
|
:tag => "v#{spec.version}" }
|
|
|
|
spec.module_name = 'folly'
|
|
|
|
spec.dependency 'boost'
|
|
|
|
spec.dependency 'DoubleConversion'
|
|
|
|
spec.dependency 'GLog'
|
|
|
|
spec.compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1'
|
2017-06-15 19:47:42 +00:00
|
|
|
spec.source_files = 'folly/Bits.cpp',
|
2017-05-03 21:31:35 +00:00
|
|
|
'folly/Conv.cpp',
|
|
|
|
'folly/Demangle.cpp',
|
|
|
|
'folly/StringBase.cpp',
|
|
|
|
'folly/Unicode.cpp',
|
|
|
|
'folly/dynamic.cpp',
|
2017-07-07 00:33:30 +00:00
|
|
|
'folly/json.cpp',
|
|
|
|
'folly/portability/BitsFunctexcept.cpp',
|
|
|
|
'folly/detail/MallocImpl.cpp'
|
2017-06-15 19:47:42 +00:00
|
|
|
# workaround for https://github.com/facebook/react-native/issues/14326
|
2017-07-07 00:33:30 +00:00
|
|
|
spec.preserve_paths = 'folly/*.h',
|
|
|
|
'folly/detail/*.h',
|
|
|
|
'folly/portability/*.h'
|
2017-05-30 18:10:20 +00:00
|
|
|
spec.libraries = "stdc++"
|
2017-05-03 21:31:35 +00:00
|
|
|
spec.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
2017-05-30 18:10:20 +00:00
|
|
|
"CLANG_CXX_LANGUAGE_STANDARD" => "c++14",
|
2017-05-03 21:31:35 +00:00
|
|
|
"HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)\" \"$(PODS_ROOT)/boost\" \"$(PODS_ROOT)/DoubleConversion\"" }
|
|
|
|
|
|
|
|
# Pinning to the same version as React.podspec.
|
2017-07-18 22:03:37 +00:00
|
|
|
spec.platforms = { :ios => "8.0", :tvos => "9.2" }
|
2017-05-03 21:31:35 +00:00
|
|
|
end
|