Chromium Code Reviews| Index: third_party/bzip2/bzip2.gyp |
| diff --git a/third_party/bzip2/bzip2.gyp b/third_party/bzip2/bzip2.gyp |
| index c9f59de90d3b310e25c5b331f26980b6488eaa58..27a2baa458411c29aad4b0ffee22fc407b6119b4 100644 |
| --- a/third_party/bzip2/bzip2.gyp |
| +++ b/third_party/bzip2/bzip2.gyp |
| @@ -6,35 +6,60 @@ |
| 'includes': [ |
| '../../build/common.gypi', |
| ], |
| - 'targets': [ |
| - { |
| - 'target_name': 'bzip2', |
| - 'type': '<(library)', |
| - 'defines': ['BZ_NO_STDIO'], |
| - 'msvs_guid': '2A70CBF0-847E-4E3A-B926-542A656DC7FE', |
| - 'sources': [ |
| - 'blocksort.c', |
| - 'bzlib.c', |
| - 'bzlib.h', |
| - 'bzlib_private.h', |
| - 'compress.c', |
| - 'crctable.c', |
| - 'decompress.c', |
| - 'huffman.c', |
| - 'randtable.c', |
| + 'variables': { |
| + 'use_system_bzip2%': 0, |
| + }, |
| + 'conditions': [ |
| + ['use_system_bzip2==0', { |
| + 'targets': [ |
| + { |
| + 'target_name': 'bzip2', |
| + 'type': '<(library)', |
| + 'defines': ['BZ_NO_STDIO'], |
| + 'msvs_guid': '2A70CBF0-847E-4E3A-B926-542A656DC7FE', |
| + 'sources': [ |
| + 'blocksort.c', |
| + 'bzlib.c', |
| + 'bzlib.h', |
| + 'bzlib_private.h', |
| + 'compress.c', |
| + 'crctable.c', |
| + 'decompress.c', |
| + 'huffman.c', |
| + 'randtable.c', |
| + ], |
| + 'direct_dependent_settings': { |
| + 'include_dirs': [ |
| + '.', |
| + ], |
| + }, |
| + 'conditions': [ |
| + ['OS=="win"', { |
| + 'product_name': 'libbzip2', |
| + }, { # else: OS!="win" |
| + 'product_name': 'bz2', |
| + }], |
| + ], |
| + }, |
| ], |
| - 'direct_dependent_settings': { |
| - 'include_dirs': [ |
| - '.', |
| - ], |
| - }, |
| - 'conditions': [ |
| - ['OS=="win"', { |
| - 'product_name': 'libbzip2', |
| - }, { # else: OS!="win" |
| - 'product_name': 'bz2', |
| - }], |
| - ], |
| - }, |
| + }, { |
| + 'targets': [ |
| + { |
| + 'target_name': 'bzip2', |
| + 'type': '<(library)', |
|
Evan Martin
2009/08/05 22:54:49
This might need to be type "none", so that depende
|
| + |
| + 'defines': [ |
| + 'USE_SYSTEM_LIBBZ2', |
| + ], |
| + |
| + # There aren't any pkg-config files for libbz2 |
| + 'link_settings': { |
| + 'libraries': [ |
| + '-lbz2', |
| + ], |
| + }, |
| + }, |
| + ] |
| + }], |
| ], |
| } |