leveldb-library.podspec 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. # Temporary podspec for Firebase tvOS porting. This should be merged to
  2. # https://github.com/firebase/leveldb-library-podspec before Firebase tvOS
  3. # goes live.
  4. Pod::Spec.new do |s|
  5. s.name = 'leveldb-library'
  6. s.version = '1.20'
  7. s.license = 'New BSD'
  8. s.summary = 'A fast key-value storage library '
  9. s.description = 'LevelDB is a fast key-value storage library written at Google that provides ' +
  10. 'an ordered mapping from string keys to string values.'
  11. s.homepage = 'https://github.com/google/leveldb'
  12. s.authors = 'The LevelDB Authors'
  13. s.ios.deployment_target = '5.0'
  14. s.osx.deployment_target = '10.7'
  15. s.tvos.deployment_target = '10.0'
  16. s.source = {
  17. :git => 'https://github.com/google/leveldb.git',
  18. :tag => 'v' + s.version.to_s
  19. }
  20. s.requires_arc = false
  21. s.compiler_flags = '-DOS_MACOSX', '-DLEVELDB_PLATFORM_POSIX'
  22. s.xcconfig = {
  23. 'HEADER_SEARCH_PATHS' => '"${PODS_ROOT}/leveldb-library" ' +
  24. '"${PODS_ROOT}/leveldb-library/include"',
  25. # Disable warnings introduced by Xcode 8.3 and Xcode 9
  26. 'WARNING_CFLAGS' => '-Wno-shorten-64-to-32 -Wno-comma -Wno-unreachable-code ' +
  27. '-Wno-conditional-uninitialized',
  28. # Prevent naming conflicts between leveldb headers and system headers
  29. 'USE_HEADERMAP' => 'No',
  30. }
  31. s.header_dir = "leveldb"
  32. s.source_files = [
  33. "db/*.{cc,h}",
  34. "port/*.{cc,h}",
  35. "table/*.{cc,h}",
  36. "util/*.{cc,h}",
  37. "include/leveldb/*.h"
  38. ]
  39. s.public_header_files = [
  40. "include/leveldb/*.h"
  41. ]
  42. s.exclude_files = [
  43. "**/*_test.cc",
  44. "**/*_bench.cc",
  45. "db/leveldbutil.cc",
  46. "port/win"
  47. ]
  48. s.library = 'c++'
  49. end