• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
6declare_args() {
7  skia_use_system_expat = is_official_build
8}
9
10import("../third_party.gni")
11
12if (skia_use_system_expat) {
13  system("expat") {
14    libs = [ "expat" ]
15  }
16} else {
17  third_party("expat") {
18    public_defines = [ "XML_STATIC" ]
19    public_include_dirs = [ "../externals/expat/lib" ]
20
21    defines = [ "HAVE_MEMMOVE" ]
22
23    sources = [
24      "../externals/expat/lib/xmlparse.c",
25      "../externals/expat/lib/xmlrole.c",
26      "../externals/expat/lib/xmltok.c",
27    ]
28  }
29}
30