summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzork@chromium.org <zork@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-18 17:37:55 +0000
committerzork@chromium.org <zork@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-18 17:37:55 +0000
commit01d8849d2f2abe4d9c4d0931af76ee40b8d20e7f (patch)
tree711ff229e629a85cde1347d0708c94d2fffc652f
parent11246b5a8d079c1a1983b9c455a4b4d3107d3c80 (diff)
downloadchromium_src-01d8849d2f2abe4d9c4d0931af76ee40b8d20e7f.zip
chromium_src-01d8849d2f2abe4d9c4d0931af76ee40b8d20e7f.tar.gz
chromium_src-01d8849d2f2abe4d9c4d0931af76ee40b8d20e7f.tar.bz2
Fix expat.gyp to build on Linux
Review URL: http://codereview.chromium.org/212017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26585 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--third_party/expat/expat.gyp15
1 files changed, 13 insertions, 2 deletions
diff --git a/third_party/expat/expat.gyp b/third_party/expat/expat.gyp
index 31457f3..001fd5b 100644
--- a/third_party/expat/expat.gyp
+++ b/third_party/expat/expat.gyp
@@ -9,7 +9,6 @@
'target_defaults': {
'defines': [
'_LIB',
- 'COMPILED_FROM_DSP',
'XML_STATIC', # Compile for static linkage.
],
'include_dirs': [
@@ -40,7 +39,19 @@
'defines': [
'XML_STATIC', # Tell dependants to expect static linkage.
],
- }
+ },
+ 'conditions': [
+ ['OS=="win"', {
+ 'defines': [
+ 'COMPILED_FROM_DSP',
+ ],
+ }],
+ ['OS=="linux"', {
+ 'defines': [
+ 'HAVE_EXPAT_CONFIG_H',
+ ],
+ }],
+ ],
},
],
}