| OLD | NEW |
| 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 Loading... |
| 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) |
| OLD | NEW |