BUILD.gn 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # Copyright 2017 Google Inc. All Rights Reserved.
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. #==============================================================================
  15. config("s2_config") {
  16. include_dirs = [ "src" ]
  17. }
  18. static_library("s2cellid") {
  19. sources = [
  20. "src/s2/_fpcontractoff.h",
  21. "src/s2/r2.h",
  22. "src/s2/r2rect.cc",
  23. "src/s2/r2rect.h",
  24. "src/s2/s1angle.cc",
  25. "src/s2/s1angle.h",
  26. "src/s2/s2cellid.cc",
  27. "src/s2/s2cellid.h",
  28. "src/s2/s2coords-internal.h",
  29. "src/s2/s2coords.cc",
  30. "src/s2/s2coords.h",
  31. "src/s2/s2latlng.cc",
  32. "src/s2/s2latlng.h",
  33. "src/s2/s2point.h",
  34. ]
  35. configs -= [ "//build/config/compiler:chromium_code" ]
  36. configs += [ "//build/config/compiler:no_chromium_code" ]
  37. public_configs = [ ":s2_config" ]
  38. deps = [ "//base" ]
  39. }