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 Import('env') | 5 Import('env') |
6 | 6 |
7 env = env.Clone() | 7 env = env.Clone() |
8 | 8 |
9 env.SConscript([ | 9 env.SConscript([ |
10 '$BREAKPAD_DIR/using_breakpad.scons', | 10 '$BREAKPAD_DIR/using_breakpad.scons', |
11 '$CHROME_DIR/third_party/wtl/using_wtl.scons', | 11 '$CHROME_DIR/third_party/wtl/using_wtl.scons', |
12 '$GRIT_DIR/build/using_generated_resources.scons', | 12 '$GRIT_DIR/build/using_generated_resources.scons', |
13 '$ICU38_DIR/using_icu38.scons', | 13 '$ICU38_DIR/using_icu38.scons', |
14 '$LIBPNG_DIR/using_libpng.scons', | 14 '$LIBPNG_DIR/using_libpng.scons', |
15 '$LIBXML_DIR/using_libxml.scons', | 15 '$LIBXML_DIR/using_libxml.scons', |
16 '$NPAPI_DIR/using_npapi.scons', | 16 '$NPAPI_DIR/using_npapi.scons', |
17 '$SKIA_DIR/using_skia.scons', | 17 '$SKIA_DIR/using_skia.scons', |
18 '$ZLIB_DIR/using_zlib.scons', | 18 '$ZLIB_DIR/using_zlib.scons', |
19 ], {'env':env}) | 19 ], {'env':env}) |
20 | 20 |
21 env.Prepend( | 21 env.Prepend( |
22 CPPPATH = [ | 22 CPPPATH = [ |
23 '$CHROME_DIR/app', | 23 '$CHROME_DIR/app', |
24 '$CHROME_SRC_DIR', | 24 '$CHROME_SRC_DIR', |
25 ], | 25 ], |
26 ) | 26 ) |
27 | 27 |
28 input_files = [ | 28 input_files = ChromeFileList([ |
| 29 # TODO(sgk): violate standard indentation so we don't have to |
| 30 # reindent too much when we remove the explicit MSVSFilter() calls |
| 31 # in favor of generating the hierarchy to reflect the file system. |
| 32 MSVSFilter('resources', [ |
| 33 'resources/debugger.css', |
| 34 'resources/debugger.html', |
| 35 'resources/debugger.js', |
| 36 'resources/debugger_shell.js', |
| 37 ]), |
29 'debugger_contents.cc', | 38 'debugger_contents.cc', |
| 39 'debugger_contents.h', |
| 40 'debugger_host.h', |
30 'debugger_host_impl.cpp', | 41 'debugger_host_impl.cpp', |
| 42 'debugger_host_impl.h', |
| 43 'debugger_io.h', |
31 'debugger_io_socket.cc', | 44 'debugger_io_socket.cc', |
| 45 'debugger_io_socket.h', |
32 'debugger_node.cc', | 46 'debugger_node.cc', |
| 47 'debugger_node.h', |
33 'debugger_shell.cc', | 48 'debugger_shell.cc', |
| 49 'debugger_shell.h', |
| 50 'resources/debugger_resources.h', |
34 'debugger_view.cc', | 51 'debugger_view.cc', |
| 52 'debugger_view.h', |
35 'debugger_window.cc', | 53 'debugger_window.cc', |
| 54 'debugger_window.h', |
36 'debugger_wrapper.cc', | 55 'debugger_wrapper.cc', |
37 ] | 56 'debugger_wrapper.h', |
| 57 ]) |
38 | 58 |
39 if env.Bit('linux'): | 59 if env.Bit('linux'): |
40 # TODO(port): Port these. | 60 # TODO(port): Port these. |
41 remove_list = [ | 61 input_files.Remove( |
42 'debugger_contents.cc', | 62 'debugger_contents.cc', |
43 'debugger_host_impl.cpp', | 63 'debugger_host_impl.cpp', |
44 'debugger_node.cc', | 64 'debugger_node.cc', |
45 'debugger_shell.cc', | 65 'debugger_shell.cc', |
46 'debugger_view.cc', | 66 'debugger_view.cc', |
47 'debugger_window.cc', | 67 'debugger_window.cc', |
48 ] | 68 ) |
49 for file in remove_list: | |
50 input_files.remove(file) | |
51 | 69 |
52 if env.Bit('mac'): | 70 if env.Bit('mac'): |
53 # TODO(port): Port these. | 71 # TODO(port): Port these. |
54 remove_list = [ | 72 input_files.Remove( |
55 'debugger_contents.cc', | 73 'debugger_contents.cc', |
56 'debugger_host_impl.cpp', | 74 'debugger_host_impl.cpp', |
57 'debugger_node.cc', | 75 'debugger_node.cc', |
58 'debugger_shell.cc', | 76 'debugger_shell.cc', |
59 'debugger_view.cc', | 77 'debugger_view.cc', |
60 'debugger_window.cc', | 78 'debugger_window.cc', |
61 ] | 79 ) |
62 for file in remove_list: | |
63 input_files.remove(file) | |
64 | 80 |
65 if not env.Bit('mac'): | 81 if not env.Bit('mac'): |
66 # TODO(port): Enable for Mac. | 82 # TODO(port): Enable for Mac. |
67 env.ChromeLibrary('debugger', input_files) | 83 env.ChromeLibrary('debugger', input_files) |
68 | 84 |
69 env.ChromeMSVSProject('$CHROME_DIR/browser/debugger/debugger.vcproj', | 85 |
70 dependencies = [ | 86 p = env.ChromeMSVSProject('debugger.vcproj', |
71 '$CHROME_DIR/app/generated_resources.vcproj', | 87 dest=('$CHROME_SRC_DIR/chrome/' |
72 ], | 88 + 'browser/debugger/debugger.vcproj'), |
73 guid='{57823D8C-A317-4713-9125-2C91FDFD12D6}') | 89 guid='{57823D8C-A317-4713-9125-2C91FDFD12D6}', |
| 90 keyword='Win32Proj', |
| 91 dependencies = [ |
| 92 '$CHROME_DIR/app/generated_resources.vcproj', |
| 93 ], |
| 94 # TODO(sgk): when we can intuit the hierarchy |
| 95 # from the built targets. |
| 96 #buildtargets=TODO, |
| 97 files=input_files, |
| 98 relative_path_prefix='./', |
| 99 tools=[ |
| 100 'VCPreBuildEventTool', |
| 101 'VCCustomBuildTool', |
| 102 'VCXMLDataGeneratorTool', |
| 103 'VCWebServiceProxyGeneratorTool', |
| 104 'VCMIDLTool', |
| 105 'VCCLCompilerTool', |
| 106 'VCManagedResourceCompilerTool', |
| 107 'VCResourceCompilerTool', |
| 108 'VCPreLinkEventTool', |
| 109 'VCLibrarianTool', |
| 110 'VCALinkTool', |
| 111 'VCXDCMakeTool', |
| 112 'VCBscMakeTool', |
| 113 'VCFxCopTool', |
| 114 'VCPostBuildEventTool', |
| 115 ], |
| 116 ConfigurationType='4') |
| 117 |
| 118 p.AddConfig('Debug|Win32', |
| 119 InheritedPropertySheets=[ |
| 120 './debugger.vsprops', |
| 121 '$(SolutionDir)../build/debug.vsprops', |
| 122 ]) |
| 123 |
| 124 p.AddConfig('Release|Win32', |
| 125 InheritedPropertySheets=[ |
| 126 './debugger.vsprops', |
| 127 '$(SolutionDir)../build/release.vsprops', |
| 128 ]) |
| 129 |
| 130 ############################################################################## |
| 131 # TODO(sgk): move to a separate debugger_disabled.scons file? ############### |
| 132 |
| 133 input_files = ChromeFileList([ |
| 134 'debugger_contents.cc', |
| 135 'debugger_contents.h', |
| 136 'debugger_shell.h', |
| 137 'debugger_window.cc', |
| 138 'debugger_window.h', |
| 139 'debugger_wrapper.cc', |
| 140 'debugger_wrapper.h', |
| 141 ]) |
| 142 |
| 143 p = env.ChromeMSVSProject('debugger_disabled.vcproj', |
| 144 dest=('$CHROME_SRC_DIR/chrome/' |
| 145 + 'browser/debugger/debugger_disabled.vcproj'), |
| 146 guid='{369B9881-3F2C-464D-A96C-E281405DF8F6}', |
| 147 keyword='Win32Proj', |
| 148 # TODO(sgk): when we can intuit the hierarchy |
| 149 # from the built targets. |
| 150 #buildtargets=TODO, |
| 151 files=input_files, |
| 152 relative_path_prefix='./', |
| 153 tools=[ |
| 154 'VCPreBuildEventTool', |
| 155 'VCCustomBuildTool', |
| 156 'VCXMLDataGeneratorTool', |
| 157 'VCWebServiceProxyGeneratorTool', |
| 158 'VCMIDLTool', |
| 159 'VCCLCompilerTool', |
| 160 'VCManagedResourceCompilerTool', |
| 161 'VCResourceCompilerTool', |
| 162 'VCPreLinkEventTool', |
| 163 'VCLibrarianTool', |
| 164 'VCALinkTool', |
| 165 'VCXDCMakeTool', |
| 166 'VCBscMakeTool', |
| 167 'VCFxCopTool', |
| 168 'VCPostBuildEventTool', |
| 169 ], |
| 170 ConfigurationType='4') |
| 171 |
| 172 p.AddConfig('Debug|Win32', |
| 173 InheritedPropertySheets=[ |
| 174 '$(SolutionDir)../build/debug.vsprops', |
| 175 './debugger_disabled.vsprops', |
| 176 ]) |
| 177 |
| 178 p.AddConfig('Release|Win32', |
| 179 InheritedPropertySheets=[ |
| 180 '$(SolutionDir)../build/release.vsprops', |
| 181 './debugger_disabled.vsprops', |
| 182 ]) |
OLD | NEW |