UNPKG

1.54 kBPlain TextView Raw
1# Copyright (c) Facebook, Inc. and its affiliates.
2#
3# This source code is licensed under the MIT license found in the
4# LICENSE file in the root directory of this source tree.
5
6Pod::Spec.new do |spec|
7 spec.name = 'glog'
8 spec.version = '0.3.5'
9 spec.license = { :type => 'Google', :file => 'COPYING' }
10 spec.homepage = 'https://github.com/google/glog'
11 spec.summary = 'Google logging module'
12 spec.authors = 'Google'
13
14 spec.prepare_command = File.read("../scripts/ios-configure-glog.sh")
15 spec.source = { :git => 'https://github.com/google/glog.git',
16 :tag => "v#{spec.version}" }
17 spec.module_name = 'glog'
18 spec.header_dir = 'glog'
19 spec.source_files = 'src/glog/*.h',
20 'src/demangle.cc',
21 'src/logging.cc',
22 'src/raw_logging.cc',
23 'src/signalhandler.cc',
24 'src/symbolize.cc',
25 'src/utilities.cc',
26 'src/vlog_is_on.cc'
27 # workaround for https://github.com/facebook/react-native/issues/14326
28 spec.preserve_paths = 'src/*.h',
29 'src/base/*.h'
30 spec.exclude_files = "src/windows/**/*"
31 spec.libraries = "stdc++"
32 spec.compiler_flags = '-Wno-shorten-64-to-32'
33 spec.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
34 "HEADER_SEARCH_PATHS" => "$(PODS_TARGET_SRCROOT)/src" }
35
36 # Pinning to the same version as React.podspec.
37 spec.platforms = { :ios => "9.0", :tvos => "9.2" }
38
39end