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

Side by Side Diff: third_party/libpng/libpng.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/libjpeg/libjpeg.scons ('k') | third_party/libxml/libxml.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 5
6 __doc__ = """ 6 __doc__ = """
7 Configuration for building libpng.lib / libpng.a. 7 Configuration for building libpng.lib / libpng.a.
8 """ 8 """
9 9
10 Import('env') 10 Import('env')
11 11
12 if env.WantSystemLib('libpng'): 12 if env.WantSystemLib('libpng'):
13 Return() 13 Return()
14 14
15 env = env.Clone() 15 env = env.Clone()
16 16
17 env.ApplySConscript([ 17 env.ApplySConscript([
18 '$ZLIB_DIR/using_zlib.scons', 18 '$ZLIB_DIR/using_zlib.scons',
19 ]) 19 ])
20 20
21 env.Prepend( 21 env.Prepend(
22 CPPPATH = [ 22 CPPPATH = [
23 '$CHROME_SRC_DIR', 23 '$CHROME_SRC_DIR',
24 ], 24 ],
25 ) 25 )
26 26
27 if env['PLATFORM'] == 'win32': 27 if env.Bit('windows'):
28 env.Append( 28 env.Append(
29 CCFLAGS = [ 29 CCFLAGS = [
30 '/TP', 30 '/TP',
31 '/wd4800', 31 '/wd4800',
32 ], 32 ],
33 ) 33 )
34 34
35 env.Append( 35 env.Append(
36 CPPDEFINES = [ 36 CPPDEFINES = [
37 'PNG_USER_CONFIG', 37 'PNG_USER_CONFIG',
(...skipping 15 matching lines...) Expand all
53 'pngrio.c', 53 'pngrio.c',
54 'pngread.c', 54 'pngread.c',
55 'pngpread.c', 55 'pngpread.c',
56 'pngmem.c', 56 'pngmem.c',
57 'pngget.c', 57 'pngget.c',
58 'pnggccrd.c', 58 'pnggccrd.c',
59 'pngerror.c', 59 'pngerror.c',
60 ] 60 ]
61 61
62 env.ChromeStaticLibrary('libpng', input_files) 62 env.ChromeStaticLibrary('libpng', input_files)
OLDNEW
« no previous file with comments | « third_party/libjpeg/libjpeg.scons ('k') | third_party/libxml/libxml.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698