summaryrefslogtreecommitdiffstats
path: root/chrome/browser/debugger
diff options
context:
space:
mode:
authorsgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-17 02:25:22 +0000
committersgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-17 02:25:22 +0000
commitcaeb7a0ca33ec99cd3dc68e95ca23ca4aa7e8068 (patch)
tree26d23c79d97efa44f69d1b447ae4618bf34fc609 /chrome/browser/debugger
parent75ddd63be217e7fed76f90578a8918ab75b3ead8 (diff)
downloadchromium_src-caeb7a0ca33ec99cd3dc68e95ca23ca4aa7e8068.zip
chromium_src-caeb7a0ca33ec99cd3dc68e95ca23ca4aa7e8068.tar.gz
chromium_src-caeb7a0ca33ec99cd3dc68e95ca23ca4aa7e8068.tar.bz2
Generate all chrome .vcproj files:
* Path name translation (/ to \) of various MSVSTool attributes. * Explicit keyword= arguments to MSVSProject. This will likely go away eventually in favor of uniform behavior. * Add a relative_path_substitutions array that can be used to substitute in Visual Studio variable like $(OutDir). * Add a local_directory_prefix that can be set to './' to only affect files in the current directory. * Additional Keyword ordering in Tool attributes to continue to match the default order Visual Studio generates. * Add a Derived() proxy class that can wrap a File node to tell the .vcproj generation that we want the derived file, not its source(s), in the file list. * In the individual *.scons files, add the necessary files (mostly .h files) to file lists, and update MSVSProject() calls with the additional necessary information. Result is identical .vcproj files modulo the following differences: * Four locales .vcproj files (da, en-US, he and zh-TW) with source file orders that don't match the other locale .vcproj files have re-ordered file lists to match the rest. * Cosmetic XML changes (white space, ending tags) in: chrome/app/chrome_dll.vcproj chrome/app/generated_resources.vcproj net/build/net_resources.vcproj * Removal or addition of ./ prefixes from various files that don't match the other file specifications within their individual .vcproj files: chrome/installer/util/util.vcproj net/build/net.vcproj net/build/net_unittests.vcproj * Add missing empty sections (<ToolFiles>, <References>, <Globals>) for consistency with other .vcproj files: chrome/tools/test/image_diff/image_diff.vcproj third_party/libpng/libpng.vcproj third_party/zlib/zlib.vcproj * Add missing RootNameSpace attribute: chrome/test/automation/automation.vcproj testing/gtest.vcproj * Use && instead of \r\n as a command separator, to sidestep XML-generation problems: chrome/app/chrome_exe.vcproj * Remove unnecessary (?) duplicate files in the file list: chrome/browser/views/browser_views.vcproj (event_utils.cc and event_utils.h were duplicated) Review URL: http://codereview.chromium.org/17603 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8253 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/debugger')
-rw-r--r--chrome/browser/debugger/debugger.scons139
1 files changed, 124 insertions, 15 deletions
diff --git a/chrome/browser/debugger/debugger.scons b/chrome/browser/debugger/debugger.scons
index 22c62d8..df3fb80 100644
--- a/chrome/browser/debugger/debugger.scons
+++ b/chrome/browser/debugger/debugger.scons
@@ -25,49 +25,158 @@ env.Prepend(
],
)
-input_files = [
+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_contents.cc',
+ 'debugger_contents.h',
+ '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',
+])
if env.Bit('linux'):
# TODO(port): Port these.
- remove_list = [
+ input_files.Remove(
'debugger_contents.cc',
'debugger_host_impl.cpp',
'debugger_node.cc',
'debugger_shell.cc',
'debugger_view.cc',
'debugger_window.cc',
- ]
- for file in remove_list:
- input_files.remove(file)
+ )
if env.Bit('mac'):
# TODO(port): Port these.
- remove_list = [
+ input_files.Remove(
'debugger_contents.cc',
'debugger_host_impl.cpp',
'debugger_node.cc',
'debugger_shell.cc',
'debugger_view.cc',
'debugger_window.cc',
- ]
- for file in remove_list:
- input_files.remove(file)
+ )
if not env.Bit('mac'):
# TODO(port): Enable for Mac.
env.ChromeLibrary('debugger', input_files)
-env.ChromeMSVSProject('$CHROME_DIR/browser/debugger/debugger.vcproj',
- dependencies = [
- '$CHROME_DIR/app/generated_resources.vcproj',
- ],
- guid='{57823D8C-A317-4713-9125-2C91FDFD12D6}')
+
+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',
+ ])