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

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

Issue 15051: Convert from using env['PLATFORM'] directly to using the more flexible... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years 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 | Annotate | Revision Log
« no previous file with comments | « third_party/bspatch/bspatch.scons ('k') | third_party/libevent/libevent.scons » ('j') | 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) 2006-2008 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2006-2008 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 __doc__ = """ 5 __doc__ = """
6 Configuration for building bzip2.lib / libbzip2.a. 6 Configuration for building bzip2.lib / libbzip2.a.
7 """ 7 """
8 8
9 Import('env') 9 Import('env')
10 10
11 if env.WantSystemLib('bzip2'): 11 if env.WantSystemLib('bzip2'):
12 Return() 12 Return()
13 13
14 env = env.Clone() 14 env = env.Clone()
15 15
16 env.Append( 16 env.Append(
17 CPPDEFINES = [ 17 CPPDEFINES = [
18 'BZ_NO_STDIO', 18 'BZ_NO_STDIO',
19 ], 19 ],
20 ) 20 )
21 21
22 if env['PLATFORM'] == 'win32': 22 if env.Bit('windows'):
23 env.Append( 23 env.Append(
24 CCFLAGS = [ 24 CCFLAGS = [
25 '/TC', 25 '/TC',
26 '/wd4996', 26 '/wd4996',
27 '/wd4800', 27 '/wd4800',
28 ], 28 ],
29 ) 29 )
30 30
31 input_files = [ 31 input_files = [
32 'blocksort.c', 32 'blocksort.c',
33 'bzlib.c', 33 'bzlib.c',
34 'compress.c', 34 'compress.c',
35 'crctable.c', 35 'crctable.c',
36 'decompress.c', 36 'decompress.c',
37 'huffman.c', 37 'huffman.c',
38 'randtable.c', 38 'randtable.c',
39 ] 39 ]
40 40
41 env.ChromeStaticLibrary('bzip2', input_files) 41 env.ChromeStaticLibrary('bzip2', input_files)
OLDNEW
« no previous file with comments | « third_party/bspatch/bspatch.scons ('k') | third_party/libevent/libevent.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698