summaryrefslogtreecommitdiffstats
path: root/third_party
diff options
context:
space:
mode:
authorwtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-27 22:56:57 +0000
committerwtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-27 22:56:57 +0000
commitc0cecd53b78a6292b5125c0c19e257415100214d (patch)
tree71c6f4a3973af35360a1f9e1aa393421c8d71aee /third_party
parente1f44a476fbea342821e6aeb734231c606fe49d4 (diff)
downloadchromium_src-c0cecd53b78a6292b5125c0c19e257415100214d.zip
chromium_src-c0cecd53b78a6292b5125c0c19e257415100214d.tar.gz
chromium_src-c0cecd53b78a6292b5125c0c19e257415100214d.tar.bz2
Revert the changes to libxml.gyp in r52725.
Both libxml and its direct dependencies need to define LIBXML_STATIC when libxml is a static library. Right now it is necessary to define this macro only on Windows, but the macro is intended to be cross-platform. R=evan BUG=50048 TEST=Windows build log should not contain "locally defined symbol XXX imported" linker warings such as: libxslt.lib(numbers.obj) : warning LNK4049: locally defined symbol _xmlFree imported Review URL: http://codereview.chromium.org/3063009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53861 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party')
-rw-r--r--third_party/libxml/libxml.gyp15
1 files changed, 10 insertions, 5 deletions
diff --git a/third_party/libxml/libxml.gyp b/third_party/libxml/libxml.gyp
index 0311df1..63304de 100644
--- a/third_party/libxml/libxml.gyp
+++ b/third_party/libxml/libxml.gyp
@@ -148,6 +148,13 @@
'xpath.c',
'xpointer.c',
],
+ 'defines': [
+ # Define LIBXML_STATIC as nothing to match how libxml.h
+ # (an internal header) defines LIBXML_STATIC, otherwise
+ # we get the macro redefined warning from GCC. (-DFOO
+ # defines the macro FOO as 1.)
+ 'LIBXML_STATIC=',
+ ],
'include_dirs': [
'<(os_include)',
'<(os_include)/include',
@@ -161,6 +168,9 @@
'../icu/icu.gyp:icuuc',
],
'direct_dependent_settings': {
+ 'defines': [
+ 'LIBXML_STATIC',
+ ],
'include_dirs': [
'<(os_include)/include',
'include',
@@ -178,11 +188,6 @@
['OS=="mac"', {'defines': ['_REENTRANT']}],
['OS=="win"', {
'product_name': 'libxml2',
- 'defines': [
- # This symbol prevents libxml from marking its functions with
- # __declspec(dllexport).
- 'LIBXML_STATIC',
- ],
}, { # else: OS!="win"
'product_name': 'xml2',
}],