Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Side by Side Diff: third_party/bzip2/bzip2.gyp

Issue 165016: Linux: add GYP flag to build with system libbz2. (Closed)
Patch Set: Created 11 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/base/bzip2_filter_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 { 5 {
6 'includes': [ 6 'includes': [
7 '../../build/common.gypi', 7 '../../build/common.gypi',
8 ], 8 ],
9 'targets': [ 9 'variables': {
10 { 10 'use_system_bzip2%': 0,
11 'target_name': 'bzip2', 11 },
12 'type': '<(library)', 12 'conditions': [
13 'defines': ['BZ_NO_STDIO'], 13 ['use_system_bzip2==0', {
14 'msvs_guid': '2A70CBF0-847E-4E3A-B926-542A656DC7FE', 14 'targets': [
15 'sources': [ 15 {
16 'blocksort.c', 16 'target_name': 'bzip2',
17 'bzlib.c', 17 'type': '<(library)',
18 'bzlib.h', 18 'defines': ['BZ_NO_STDIO'],
19 'bzlib_private.h', 19 'msvs_guid': '2A70CBF0-847E-4E3A-B926-542A656DC7FE',
20 'compress.c', 20 'sources': [
21 'crctable.c', 21 'blocksort.c',
22 'decompress.c', 22 'bzlib.c',
23 'huffman.c', 23 'bzlib.h',
24 'randtable.c', 24 'bzlib_private.h',
25 'compress.c',
26 'crctable.c',
27 'decompress.c',
28 'huffman.c',
29 'randtable.c',
30 ],
31 'direct_dependent_settings': {
32 'include_dirs': [
33 '.',
34 ],
35 },
36 'conditions': [
37 ['OS=="win"', {
38 'product_name': 'libbzip2',
39 }, { # else: OS!="win"
40 'product_name': 'bz2',
41 }],
42 ],
43 },
25 ], 44 ],
26 'direct_dependent_settings': { 45 }, {
27 'include_dirs': [ 46 'targets': [
28 '.', 47 {
29 ], 48 'target_name': 'bzip2',
30 }, 49 'type': '<(library)',
Evan Martin 2009/08/05 22:54:49 This might need to be type "none", so that depende
31 'conditions': [ 50
32 ['OS=="win"', { 51 'defines': [
33 'product_name': 'libbzip2', 52 'USE_SYSTEM_LIBBZ2',
34 }, { # else: OS!="win" 53 ],
35 'product_name': 'bz2', 54
36 }], 55 # There aren't any pkg-config files for libbz2
37 ], 56 'link_settings': {
38 }, 57 'libraries': [
58 '-lbz2',
59 ],
60 },
61 },
62 ]
63 }],
39 ], 64 ],
40 } 65 }
OLDNEW
« no previous file with comments | « net/base/bzip2_filter_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698