2017-05-03 21:31:35 +00:00
|
|
|
Pod::Spec.new do |spec|
|
2018-01-29 06:12:19 +00:00
|
|
|
spec.name = 'glog'
|
2017-05-03 21:31:35 +00:00
|
|
|
spec.version = '0.3.4'
|
|
|
|
spec.license = { :type => 'Google', :file => 'COPYING' }
|
|
|
|
spec.homepage = 'https://github.com/google/glog'
|
|
|
|
spec.summary = 'Google logging module'
|
|
|
|
spec.authors = 'Google'
|
|
|
|
|
2017-05-30 18:10:20 +00:00
|
|
|
spec.prepare_command = File.read("../scripts/ios-configure-glog.sh")
|
2017-05-03 21:31:35 +00:00
|
|
|
spec.source = { :git => 'https://github.com/google/glog.git',
|
|
|
|
:tag => "v#{spec.version}" }
|
|
|
|
spec.module_name = 'glog'
|
2018-01-18 03:11:48 +00:00
|
|
|
spec.header_dir = 'glog'
|
2017-06-15 19:47:42 +00:00
|
|
|
spec.source_files = 'src/glog/*.h',
|
2017-05-03 21:31:35 +00:00
|
|
|
'src/demangle.cc',
|
|
|
|
'src/logging.cc',
|
|
|
|
'src/raw_logging.cc',
|
|
|
|
'src/signalhandler.cc',
|
|
|
|
'src/symbolize.cc',
|
|
|
|
'src/utilities.cc',
|
|
|
|
'src/vlog_is_on.cc'
|
2017-06-15 19:47:42 +00:00
|
|
|
# workaround for https://github.com/facebook/react-native/issues/14326
|
|
|
|
spec.preserve_paths = 'src/*.h',
|
|
|
|
'src/base/*.h'
|
2017-05-30 18:10:20 +00:00
|
|
|
spec.exclude_files = "src/windows/**/*"
|
|
|
|
spec.libraries = "stdc++"
|
2017-05-03 21:31:35 +00:00
|
|
|
spec.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
|
|
"HEADER_SEARCH_PATHS" => "$(PODS_TARGET_SRCROOT)/src" }
|
|
|
|
|
|
|
|
# Pinning to the same version as React.podspec.
|
2018-05-23 06:23:05 +00:00
|
|
|
spec.platforms = { :ios => "9.0", :tvos => "9.2" }
|
2017-05-03 21:31:35 +00:00
|
|
|
|
|
|
|
end
|