2016-07-27 20:55:26 +00:00
|
|
|
# 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() {
|
2017-03-03 14:21:30 +00:00
|
|
|
skia_use_system_expat = is_official_build
|
2016-07-27 20:55:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
import("../third_party.gni")
|
|
|
|
|
2016-11-01 15:46:10 +00:00
|
|
|
if (skia_use_system_expat) {
|
|
|
|
system("expat") {
|
|
|
|
libs = [ "expat" ]
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
third_party("expat") {
|
|
|
|
public_defines = [ "XML_STATIC" ]
|
|
|
|
public_include_dirs = [ "../externals/expat/lib" ]
|
2016-07-27 20:55:26 +00:00
|
|
|
|
2016-11-01 15:46:10 +00:00
|
|
|
defines = [ "HAVE_MEMMOVE" ]
|
2016-07-27 20:55:26 +00:00
|
|
|
|
2016-11-01 15:46:10 +00:00
|
|
|
sources = [
|
|
|
|
"../externals/expat/lib/xmlparse.c",
|
|
|
|
"../externals/expat/lib/xmlrole.c",
|
|
|
|
"../externals/expat/lib/xmltok.c",
|
|
|
|
]
|
|
|
|
}
|
2016-07-27 20:55:26 +00:00
|
|
|
}
|