blob: d2a5d3664aa3174f867013ead517fe80a7ca9c91 [file] [log] [blame]
mtklein25c81d42016-07-27 13:55:26 -07001# 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() {
Mike Kleine459afd2017-03-03 09:21:30 -05007 skia_use_system_expat = is_official_build
mtklein25c81d42016-07-27 13:55:26 -07008}
9
10import("../third_party.gni")
11
Mike Klein10d665d2016-11-01 11:46:10 -040012if (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" ]
mtklein25c81d42016-07-27 13:55:26 -070020
Mike Klein10d665d2016-11-01 11:46:10 -040021 defines = [ "HAVE_MEMMOVE" ]
mtklein25c81d42016-07-27 13:55:26 -070022
Mike Klein10d665d2016-11-01 11:46:10 -040023 sources = [
24 "../externals/expat/lib/xmlparse.c",
25 "../externals/expat/lib/xmlrole.c",
26 "../externals/expat/lib/xmltok.c",
27 ]
28 }
mtklein25c81d42016-07-27 13:55:26 -070029}