BUILD.gn 620 B

1234567891011121314151617181920212223242526272829
  1. # Copyright 2016 Google Inc.
  2. #
  3. # Use of this source code is governed by a BSD-style license that can be
  4. # found in the LICENSE file.
  5. declare_args() {
  6. skia_use_system_expat = is_official_build
  7. }
  8. import("../third_party.gni")
  9. if (skia_use_system_expat) {
  10. system("expat") {
  11. libs = [ "expat" ]
  12. }
  13. } else {
  14. third_party("expat") {
  15. public_defines = [ "XML_STATIC" ]
  16. public_include_dirs = [ "../externals/expat/lib" ]
  17. defines = [ "HAVE_MEMMOVE" ]
  18. sources = [
  19. "../externals/expat/lib/xmlparse.c",
  20. "../externals/expat/lib/xmlrole.c",
  21. "../externals/expat/lib/xmltok.c",
  22. ]
  23. }
  24. }