glog.podspec 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. Pod::Spec.new do |spec|
  6. spec.name = 'glog'
  7. spec.version = '0.3.5'
  8. spec.license = { :type => 'Google', :file => 'COPYING' }
  9. spec.homepage = 'https://github.com/google/glog'
  10. spec.summary = 'Google logging module'
  11. spec.authors = 'Google'
  12. spec.prepare_command = File.read("../scripts/ios-configure-glog.sh")
  13. spec.source = { :git => 'https://github.com/google/glog.git',
  14. :tag => "v#{spec.version}" }
  15. spec.module_name = 'glog'
  16. spec.header_dir = 'glog'
  17. spec.source_files = 'src/glog/*.h',
  18. 'src/demangle.cc',
  19. 'src/logging.cc',
  20. 'src/raw_logging.cc',
  21. 'src/signalhandler.cc',
  22. 'src/symbolize.cc',
  23. 'src/utilities.cc',
  24. 'src/vlog_is_on.cc'
  25. # workaround for https://github.com/facebook/react-native/issues/14326
  26. spec.preserve_paths = 'src/*.h',
  27. 'src/base/*.h'
  28. spec.exclude_files = "src/windows/**/*"
  29. spec.libraries = "stdc++"
  30. spec.compiler_flags = '-Wno-shorten-64-to-32'
  31. spec.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
  32. "HEADER_SEARCH_PATHS" => "$(PODS_TARGET_SRCROOT)/src" }
  33. # Pinning to the same version as React.podspec.
  34. spec.platforms = { :ios => "10.0", :tvos => "10.0" }
  35. end