diff options
author | victorw@chromium.org <victorw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-22 17:47:38 +0000 |
---|---|---|
committer | victorw@chromium.org <victorw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-22 17:47:38 +0000 |
commit | 47a7f2fe0e1492f850495761de05aa961656eb01 (patch) | |
tree | 897252162f7572edddca2ce444325ccae2082944 /third_party/libpng/libpng.gyp | |
parent | 305ddf7c77a2f082499c584ef00b25cad63654cb (diff) | |
download | chromium_src-47a7f2fe0e1492f850495761de05aa961656eb01.zip chromium_src-47a7f2fe0e1492f850495761de05aa961656eb01.tar.gz chromium_src-47a7f2fe0e1492f850495761de05aa961656eb01.tar.bz2 |
Build libpng.dll for chromium multi dll version.
R=darin
TEST=none
BUG=none
Review URL: http://codereview.chromium.org/3053011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53354 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party/libpng/libpng.gyp')
-rw-r--r-- | third_party/libpng/libpng.gyp | 13 |
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', + ], + }, + }], ], }, ] |