aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/expat/BUILD.gn
blob: d2a5d3664aa3174f867013ead517fe80a7ca9c91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Copyright 2016 Google Inc.
#
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

declare_args() {
  skia_use_system_expat = is_official_build
}

import("../third_party.gni")

if (skia_use_system_expat) {
  system("expat") {
    libs = [ "expat" ]
  }
} else {
  third_party("expat") {
    public_defines = [ "XML_STATIC" ]
    public_include_dirs = [ "../externals/expat/lib" ]

    defines = [ "HAVE_MEMMOVE" ]

    sources = [
      "../externals/expat/lib/xmlparse.c",
      "../externals/expat/lib/xmlrole.c",
      "../externals/expat/lib/xmltok.c",
    ]
  }
}