# Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. Import('env') env = env.Clone() env.SConscript([ '$BREAKPAD_DIR/using_breakpad.scons', '$CHROME_DIR/third_party/wtl/using_wtl.scons', '$CHROME_SRC_DIR/build/using_v8.scons', '$GRIT_DIR/build/using_generated_resources.scons', '$ICU38_DIR/using_icu38.scons', '$LIBPNG_DIR/using_libpng.scons', '$LIBXML_DIR/using_libxml.scons', '$NPAPI_DIR/using_npapi.scons', '$SKIA_DIR/using_skia.scons', '$ZLIB_DIR/using_zlib.scons', ], {'env':env}) env.Prepend( CPPPATH = [ '$CHROME_DIR/app', '$CHROME_SRC_DIR', ], ) input_files = ChromeFileList([ # TODO(sgk): violate standard indentation so we don't have to # reindent too much when we remove the explicit MSVSFilter() calls # in favor of generating the hierarchy to reflect the file system. MSVSFilter('resources', [ 'resources/debugger.css', 'resources/debugger.html', 'resources/debugger.js', 'resources/debugger_shell.js', ]), 'debugger_host.h', 'debugger_host_impl.cpp', 'debugger_host_impl.h', 'debugger_io.h', 'debugger_io_socket.cc', 'debugger_io_socket.h', 'debugger_node.cc', 'debugger_node.h', 'debugger_shell.cc', 'debugger_shell.h', 'resources/debugger_resources.h', 'debugger_view.cc', 'debugger_view.h', 'debugger_window.cc', 'debugger_window.h', 'debugger_wrapper.cc', 'debugger_wrapper.h', 'devtools_client_host.h', 'devtools_manager.h', 'devtools_manager.cc', 'devtools_view.cc', 'devtools_view.h', 'devtools_window.h', ]) if env.Bit('linux'): # TODO(port): Port these. input_files.Remove( 'debugger_view.cc', 'debugger_window.cc', 'devtools_view.cc', ) input_files.Append( 'devtools_window_gtk.cc', ) if env.Bit('mac'): # TODO(port): Port these. input_files.Remove( 'debugger_contents.cc', 'debugger_host_impl.cpp', 'debugger_node.cc', 'debugger_view.cc', 'debugger_window.cc', 'devtools_view.cc', ) input_files.Append( 'devtools_window_mac.cc', ) if not env.Bit('mac'): # TODO(port): Enable for Mac. env.ChromeLibrary('debugger', input_files) p = env.ChromeMSVSProject('debugger.vcproj', dest=('$CHROME_SRC_DIR/chrome/' + 'browser/debugger/debugger.vcproj'), guid='{57823D8C-A317-4713-9125-2C91FDFD12D6}', keyword='Win32Proj', dependencies = [ '$CHROME_DIR/app/generated_resources.vcproj', ], # TODO(sgk): when we can intuit the hierarchy # from the built targets. #buildtargets=TODO, files=input_files, relative_path_prefix='./', tools=[ 'VCPreBuildEventTool', 'VCCustomBuildTool', 'VCXMLDataGeneratorTool', 'VCWebServiceProxyGeneratorTool', 'VCMIDLTool', 'VCCLCompilerTool', 'VCManagedResourceCompilerTool', 'VCResourceCompilerTool', 'VCPreLinkEventTool', 'VCLibrarianTool', 'VCALinkTool', 'VCXDCMakeTool', 'VCBscMakeTool', 'VCFxCopTool', 'VCPostBuildEventTool', ], ConfigurationType='4') p.AddConfig('Debug|Win32', InheritedPropertySheets=[ './debugger.vsprops', '$(SolutionDir)../build/debug.vsprops', ]) p.AddConfig('Release|Win32', InheritedPropertySheets=[ './debugger.vsprops', '$(SolutionDir)../build/release.vsprops', ]) ############################################################################## # TODO(sgk): move to a separate debugger_disabled.scons file? ############### input_files = ChromeFileList([ 'debugger_contents.cc', 'debugger_contents.h', 'debugger_shell.h', 'debugger_window.cc', 'debugger_window.h', 'debugger_wrapper.cc', 'debugger_wrapper.h', ]) p = env.ChromeMSVSProject('debugger_disabled.vcproj', dest=('$CHROME_SRC_DIR/chrome/' + 'browser/debugger/debugger_disabled.vcproj'), guid='{369B9881-3F2C-464D-A96C-E281405DF8F6}', keyword='Win32Proj', # TODO(sgk): when we can intuit the hierarchy # from the built targets. #buildtargets=TODO, files=input_files, relative_path_prefix='./', tools=[ 'VCPreBuildEventTool', 'VCCustomBuildTool', 'VCXMLDataGeneratorTool', 'VCWebServiceProxyGeneratorTool', 'VCMIDLTool', 'VCCLCompilerTool', 'VCManagedResourceCompilerTool', 'VCResourceCompilerTool', 'VCPreLinkEventTool', 'VCLibrarianTool', 'VCALinkTool', 'VCXDCMakeTool', 'VCBscMakeTool', 'VCFxCopTool', 'VCPostBuildEventTool', ], ConfigurationType='4') p.AddConfig('Debug|Win32', InheritedPropertySheets=[ '$(SolutionDir)../build/debug.vsprops', './debugger_disabled.vsprops', ]) p.AddConfig('Release|Win32', InheritedPropertySheets=[ '$(SolutionDir)../build/release.vsprops', './debugger_disabled.vsprops', ])