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 __doc__ = """ | 5 __doc__ = """ |
6 Configuration for building zlib.lib / libzlib.a. | 6 Configuration for building zlib.lib / libzlib.a. |
7 """ | 7 """ |
8 | 8 |
9 Import('env') | 9 Import('env') |
10 | 10 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 'inftrees.c', | 43 'inftrees.c', |
44 'inftrees.h', | 44 'inftrees.h', |
45 'mozzconf.h', | 45 'mozzconf.h', |
46 'trees.c', | 46 'trees.c', |
47 'trees.h', | 47 'trees.h', |
48 'uncompr.c', | 48 'uncompr.c', |
49 'zconf.h', | 49 'zconf.h', |
50 'zlib.h', | 50 'zlib.h', |
51 'zutil.c', | 51 'zutil.c', |
52 'zutil.h', | 52 'zutil.h', |
| 53 'contrib/minizip/ioapi.c', |
| 54 'contrib/minizip/ioapi.h', |
| 55 'contrib/minizip/unzip.c', |
| 56 'contrib/minizip/unzip.h' |
53 ]) | 57 ]) |
54 | 58 |
| 59 if env.Bit('windows'): |
| 60 input_files.extend([ |
| 61 'contrib/minizip/iowin32.c', |
| 62 'contrib/minizip/iowin32.h', |
| 63 ]) |
| 64 |
55 env.ChromeLibrary('zlib', input_files) | 65 env.ChromeLibrary('zlib', input_files) |
56 | 66 |
57 p = env.ChromeMSVSProject('zlib.vcproj', | 67 p = env.ChromeMSVSProject('zlib.vcproj', |
58 guid='{8423AF0D-4B88-4EBF-94E1-E4D00D00E21C}', | 68 guid='{8423AF0D-4B88-4EBF-94E1-E4D00D00E21C}', |
59 files=input_files, | 69 files=input_files, |
60 relative_path_prefix=r'./', | 70 relative_path_prefix=r'./', |
61 tools = [ | 71 tools = [ |
62 'VCLibrarianTool', | 72 'VCLibrarianTool', |
63 'VCCLCompilerTool', | 73 'VCCLCompilerTool', |
64 ]) | 74 ]) |
65 | 75 |
66 p.AddConfig('Debug|Win32', | 76 p.AddConfig('Debug|Win32', |
67 ConfigurationType = '4', | 77 ConfigurationType = '4', |
68 InheritedPropertySheets = [ | 78 InheritedPropertySheets = [ |
69 '$(SolutionDir)../build/common.vsprops', | 79 '$(SolutionDir)../build/common.vsprops', |
70 '$(SolutionDir)../build/debug.vsprops', | 80 '$(SolutionDir)../build/debug.vsprops', |
71 '$(SolutionDir)../build/external_code.vsprops', | 81 '$(SolutionDir)../build/external_code.vsprops', |
| 82 './zlib.vsprops' |
72 ]) | 83 ]) |
73 | 84 |
74 p.AddConfig('Release|Win32', | 85 p.AddConfig('Release|Win32', |
75 ConfigurationType = '4', | 86 ConfigurationType = '4', |
76 InheritedPropertySheets = [ | 87 InheritedPropertySheets = [ |
77 '$(SolutionDir)../build/common.vsprops', | 88 '$(SolutionDir)../build/common.vsprops', |
78 '$(SolutionDir)../build/release.vsprops', | 89 '$(SolutionDir)../build/release.vsprops', |
79 '$(SolutionDir)../build/external_code.vsprops', | 90 '$(SolutionDir)../build/external_code.vsprops', |
| 91 './zlib.vsprops' |
80 ]) | 92 ]) |
81 | 93 |
82 env.AlwaysBuild(p) | 94 env.AlwaysBuild(p) |
83 | 95 |
84 i = env.Command('$CHROME_SRC_DIR/third_party/zlib/zlib.vcproj', p, | 96 i = env.Command('$CHROME_SRC_DIR/third_party/zlib/zlib.vcproj', p, |
85 Copy('$TARGET', '$SOURCE')) | 97 Copy('$TARGET', '$SOURCE')) |
86 Alias('msvs', i) | 98 Alias('msvs', i) |
OLD | NEW |