summaryrefslogtreecommitdiffstats
path: root/third_party/libpng/libpng.gyp
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/libpng/libpng.gyp')
-rw-r--r--third_party/libpng/libpng.gyp13
1 files changed, 12 insertions, 1 deletions
diff --git a/third_party/libpng/libpng.gyp b/third_party/libpng/libpng.gyp
index dbb8866..f565795 100644
--- a/third_party/libpng/libpng.gyp
+++ b/third_party/libpng/libpng.gyp
@@ -18,7 +18,7 @@
'targets': [
{
'target_name': 'libpng',
- 'type': '<(library)',
+ 'type': '<(component)',
'dependencies': [
'../zlib/zlib.gyp:zlib',
],
@@ -63,6 +63,17 @@
],
'conditions': [
['OS!="win"', {'product_name': 'png'}],
+ ['OS=="win" and component=="shared_library"', {
+ 'defines': [
+ 'PNG_BUILD_DLL',
+ 'PNG_NO_MODULEDEF',
+ ],
+ 'direct_dependent_settings': {
+ 'defines': [
+ 'PNG_USE_DLL',
+ ],
+ },
+ }],
],
},
]