| OLD | NEW |
| (Empty) |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
| 2 # Use of this source code is governed by a BSD-style license that can be | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 { | |
| 6 'variables': { | |
| 7 'conditions': [ | |
| 8 [ 'toolkit_uses_gtk==1', { | |
| 9 # Link to system .so since we already use it due to GTK. | |
| 10 'use_system_bzip2%': 1, | |
| 11 }, { # toolkit_uses_gtk!=1 | |
| 12 'use_system_bzip2%': 0, | |
| 13 }], | |
| 14 ], | |
| 15 }, | |
| 16 'conditions': [ | |
| 17 ['use_system_bzip2==0', { | |
| 18 'targets': [ | |
| 19 { | |
| 20 'target_name': 'bzip2', | |
| 21 'type': 'static_library', | |
| 22 'defines': ['BZ_NO_STDIO'], | |
| 23 'sources': [ | |
| 24 'blocksort.c', | |
| 25 'bzlib.c', | |
| 26 'bzlib.h', | |
| 27 'bzlib_private.h', | |
| 28 'compress.c', | |
| 29 'crctable.c', | |
| 30 'decompress.c', | |
| 31 'huffman.c', | |
| 32 'randtable.c', | |
| 33 ], | |
| 34 'direct_dependent_settings': { | |
| 35 'include_dirs': [ | |
| 36 '.', | |
| 37 ], | |
| 38 }, | |
| 39 'conditions': [ | |
| 40 ['OS=="win"', { | |
| 41 'product_name': 'libbzip2', | |
| 42 }, { # else: OS!="win" | |
| 43 'product_name': 'chrome_bz2', | |
| 44 }], | |
| 45 ], | |
| 46 }, | |
| 47 ], | |
| 48 }, { | |
| 49 'targets': [ | |
| 50 { | |
| 51 'target_name': 'bzip2', | |
| 52 'type': 'none', | |
| 53 | |
| 54 'direct_dependent_settings': { | |
| 55 'defines': [ | |
| 56 'USE_SYSTEM_LIBBZ2', | |
| 57 ], | |
| 58 }, | |
| 59 'conditions': [ | |
| 60 ['OS=="ios"', { | |
| 61 'link_settings': { | |
| 62 'libraries': [ | |
| 63 '$(SDKROOT)/usr/lib/libbz2.dylib', | |
| 64 ], | |
| 65 }, | |
| 66 }, { | |
| 67 # There aren't any pkg-config files for libbz2 | |
| 68 'link_settings': { | |
| 69 'libraries': [ | |
| 70 '-lbz2', | |
| 71 ], | |
| 72 }, | |
| 73 }], | |
| 74 ], | |
| 75 }, | |
| 76 ], | |
| 77 }], | |
| 78 ], | |
| 79 } | |
| OLD | NEW |