summaryrefslogtreecommitdiffstats
path: root/third_party/expat
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-29 19:12:06 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-29 19:12:06 +0000
commitff0811a8763c69ee59e3e6d0421f2f43ced7d41a (patch)
tree86026be150c06873cd65fbebdf4d7461f89d42d5 /third_party/expat
parent4e70205cdc77d0837e7f17605e84b2870426ba4b (diff)
downloadchromium_src-ff0811a8763c69ee59e3e6d0421f2f43ced7d41a.zip
chromium_src-ff0811a8763c69ee59e3e6d0421f2f43ced7d41a.tar.gz
chromium_src-ff0811a8763c69ee59e3e6d0421f2f43ced7d41a.tar.bz2
GN build improvements.
Fixes a TODO about private symbols on GCC. Moves many third party BUILD.gn files from the secondary tree to the main one. Fixes the dependencies on Linux so "gn check" passes again. BUG=367595 R=scottmg@chromium.org Review URL: https://codereview.chromium.org/256153003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@266932 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party/expat')
-rw-r--r--third_party/expat/BUILD.gn37
1 files changed, 37 insertions, 0 deletions
diff --git a/third_party/expat/BUILD.gn b/third_party/expat/BUILD.gn
new file mode 100644
index 0000000..c58b92e
--- /dev/null
+++ b/third_party/expat/BUILD.gn
@@ -0,0 +1,37 @@
+# Copyright (c) 2013 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+if (is_linux) {
+ config("expat_config") {
+ libs = [ "expat" ]
+ }
+
+ group("expat") {
+ direct_dependent_configs = [ ":expat_config" ]
+ }
+
+ # TODO(GYP) Android needs direct dependent includes of
+ # <android_src>/external/expat/lib
+} else {
+ config("expat_config") {
+ include_dirs = [ "files/lib" ]
+ defines = [ "XML_STATIC" ]
+ }
+
+ static_library("expat") {
+ sources = [
+ "files/lib/expat.h",
+ "files/lib/xmlparse.c",
+ "files/lib/xmlrole.c",
+ "files/lib/xmltok.c",
+ ]
+
+ defines = [ "_LIB" ]
+ if (is_win) {
+ defines += [ "COMPILED_FROM_DSP" ]
+ } else {
+ defines += [ "HAVE_EXPAT_CONFIG_H" ]
+ }
+ }
+}