| 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') |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 ], | 32 ], |
| 33 ) | 33 ) |
| 34 | 34 |
| 35 env.Append( | 35 env.Append( |
| 36 CPPDEFINES = [ | 36 CPPDEFINES = [ |
| 37 'PNG_USER_CONFIG', | 37 'PNG_USER_CONFIG', |
| 38 'CHROME_PNG_WRITE_SUPPORT', | 38 'CHROME_PNG_WRITE_SUPPORT', |
| 39 ], | 39 ], |
| 40 ) | 40 ) |
| 41 | 41 |
| 42 input_files = [ | 42 input_files = ChromeFileList([ |
| 43 'png.c', | 43 'png.c', |
| 44 'png.h', |
| 45 'pngconf.h', |
| 46 'pngerror.c', |
| 47 'pnggccrd.c', |
| 48 'pngget.c', |
| 49 'pngmem.c', |
| 50 'pngpread.c', |
| 51 'pngread.c', |
| 52 'pngrio.c', |
| 53 'pngrtran.c', |
| 54 'pngrutil.c', |
| 55 'pngset.c', |
| 56 'pngtrans.c', |
| 57 'pngusr.h', |
| 58 'pngvcrd.c', |
| 59 'pngwio.c', |
| 60 'pngwrite.c', |
| 61 'pngwtran.c', |
| 44 'pngwutil.c', | 62 'pngwutil.c', |
| 45 'pngwtran.c', | 63 ]) |
| 46 'pngwrite.c', | |
| 47 'pngwio.c', | |
| 48 'pngvcrd.c', | |
| 49 'pngtrans.c', | |
| 50 'pngset.c', | |
| 51 'pngrutil.c', | |
| 52 'pngrtran.c', | |
| 53 'pngrio.c', | |
| 54 'pngread.c', | |
| 55 'pngpread.c', | |
| 56 'pngmem.c', | |
| 57 'pngget.c', | |
| 58 'pnggccrd.c', | |
| 59 'pngerror.c', | |
| 60 ] | |
| 61 | 64 |
| 62 env.ChromeStaticLibrary('libpng', input_files) | 65 env.ChromeStaticLibrary('libpng', input_files) |
| 63 | 66 |
| 64 env.ChromeMSVSProject('$LIBPNG_DIR/libpng.vcproj', | 67 p = env.ChromeMSVSProject('libpng.vcproj', |
| 65 guid='{C564F145-9172-42C3-BFCB-6014CA97DBCD}') | 68 guid='{C564F145-9172-42C3-BFCB-6014CA97DBCD}', |
| 69 files=input_files, |
| 70 relative_path_prefix='./', |
| 71 tools = [ |
| 72 'VCLibrarianTool', |
| 73 'VCCLCompilerTool', |
| 74 ]) |
| 75 |
| 76 p.AddConfig('Debug|Win32', |
| 77 ConfigurationType = '4', |
| 78 InheritedPropertySheets = [ |
| 79 '$(SolutionDir)../build/common.vsprops', |
| 80 '$(SolutionDir)../build/debug.vsprops', |
| 81 '$(SolutionDir)../third_party/zlib/using_zlib.vsprops', |
| 82 '$(SolutionDir)../build/external_code.vsprops', |
| 83 '$(SolutionDir)../third_party/libpng/using_libpng.vsprops', |
| 84 ]) |
| 85 |
| 86 p.AddConfig('Release|Win32', |
| 87 ConfigurationType = '4', |
| 88 InheritedPropertySheets = [ |
| 89 '$(SolutionDir)../build/common.vsprops', |
| 90 '$(SolutionDir)../build/release.vsprops', |
| 91 '$(SolutionDir)../third_party/zlib/using_zlib.vsprops', |
| 92 '$(SolutionDir)../build/external_code.vsprops', |
| 93 '$(SolutionDir)../third_party/libpng/using_libpng.vsprops', |
| 94 ]) |
| 95 |
| 96 env.AlwaysBuild(p) |
| 97 |
| 98 i = env.Command('$CHROME_SRC_DIR/third_party/libpng/libpng.vcproj', p, |
| 99 Copy('$TARGET', '$SOURCE')) |
| 100 Alias('msvs', i) |
| OLD | NEW |