summaryrefslogtreecommitdiffstats
path: root/third_party/expat/expat.gyp
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/expat/expat.gyp')
-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',
+ ],
+ }],
+ ],
},
],
}