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