summaryrefslogtreecommitdiffstats
path: root/chrome/SConscript
diff options
context:
space:
mode:
authortc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-17 22:05:58 +0000
committertc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-17 22:05:58 +0000
commit353a7839dcc80e0b5df8321d1b78c955385d93ad (patch)
treec8277f32f08fce86657bdc134b40c6bec3a6fd66 /chrome/SConscript
parent98f8d9c1248dc678ef09af9436976ca5af72f42a (diff)
downloadchromium_src-353a7839dcc80e0b5df8321d1b78c955385d93ad.zip
chromium_src-353a7839dcc80e0b5df8321d1b78c955385d93ad.tar.gz
chromium_src-353a7839dcc80e0b5df8321d1b78c955385d93ad.tar.bz2
Create chrome_resources.scons, chrome_strings.scons and theme_dll.scons
which mirror the vcproj files used by Windows. Add the linux specific code to generate .pak files that we use for resources on linux. This doesn't include the necessary changes to build the theme default.dll on windows, but the windows scons build is already really broken so punting for now. Review URL: http://codereview.chromium.org/21371 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9906 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/SConscript')
-rw-r--r--chrome/SConscript119
1 files changed, 1 insertions, 118 deletions
diff --git a/chrome/SConscript b/chrome/SConscript
index 884ee96..b160928 100644
--- a/chrome/SConscript
+++ b/chrome/SConscript
@@ -61,70 +61,6 @@ if env_res.Bit('windows'):
]
##############################################################################
-# TODO(sgk): move to separate .scons file for generated_resources ###########
-
-env_grd = env.Clone()
-env_grd.Tool('scons', toolpath=[env_grd.Dir('$CHROME_SRC_DIR/tools/grit/grit')])
-
-grd_files = [
- # Strings
- '$CHROME_SRC_DIR/chrome/app/generated_resources.grd',
- '$CHROME_SRC_DIR/chrome/app/chromium_strings.grd',
- '$CHROME_SRC_DIR/chrome/app/google_chrome_strings.grd',
-
- # Data resources
- '$CHROME_SRC_DIR/chrome/browser/browser_resources.grd',
- '$CHROME_SRC_DIR/chrome/browser/debugger/resources/debugger_resources.grd',
- '$CHROME_SRC_DIR/chrome/common/common_resources.grd',
- '$CHROME_SRC_DIR/chrome/renderer/renderer_resources.grd',
-]
-grit_files = []
-
-for grd_file in grd_files:
- # NOTE: fake target gets replaced with real targets from reading .grd
- generated = env_grd.GRIT(
- '$TARGET_ROOT/grit_derived_sources/fake_' + os.path.basename(grd_file),
- grd_file)
- grit_files.extend(generated)
-
-input_files = ChromeFileList([
- 'app/generated_resources.grd',
- 'app/google_chrome_strings.grd',
- 'app/chromium_strings.grd',
- Derived(env.File('$TARGET_ROOT/grit_derived_sources/'
- + 'generated_resources.h')),
-])
-
-p = env.ChromeMSVSProject('app/generated_resources.vcproj',
- dest=('$CHROME_SRC_DIR/chrome/'
- + 'app/generated_resources.vcproj'),
- guid='{D9DDAF60-663F-49CC-90DC-3D08CC3D1B28}',
- keyword='Win32Proj',
- # TODO(sgk): when we can intuit the hierarchy
- # from the built targets.
- #buildtargets=TODO,
- files=input_files,
- relative_path_substitutions = [
- ('../../../grit_derived_sources', '$(IntDir)'),
- ],
- local_directory_prefix='./',
- ConfigurationType='10')
-
-p.AddToolFile('../tools/grit/build/grit_localized_resources.rules')
-
-p.AddConfig('Debug|Win32',
- InheritedPropertySheets=[
- '$(SolutionDir)../build/common.vsprops',
- '$(SolutionDir)../build/debug.vsprops',
- ])
-
-p.AddConfig('Release|Win32',
- InheritedPropertySheets=[
- '$(SolutionDir)../build/common.vsprops',
- '$(SolutionDir)../build/release.vsprops',
- ])
-
-##############################################################################
# TODO(sgk): move to separate .scons file for chrome.dll ####################
env_dll = env.Clone()
@@ -306,9 +242,6 @@ if env_dll.Bit('windows'):
PDB='chrome_dll.pdb')
install_targets.extend(dll_targets)
- for g in [ g for g in grit_files if str(g).endswith('.rc') ]:
- env_res.RES(g)
-
chrome_exe_version_rc = env.ChromeVersionRC(
'chrome_exe_version.rc',
'app/chrome_exe_version.rc.version'
@@ -669,59 +602,9 @@ p.AddConfig('Release|Win32',
##############################################################################
-# TODO(sgk): move to separate .scons file for browser_resources #############
-
-input_files = ChromeFileList([
- 'browser/resources/about_credits.html',
- 'browser/resources/about_memory.html',
- 'browser/resources/about_stats.html',
- 'browser/resources/about_version.html',
- 'browser/resources/history.html',
- 'browser/resources/incognito_tab.html',
- 'browser/resources/new_tab.html',
- 'browser/resources/safe_browsing_malware_block.html',
- 'browser/resources/safe_browsing_phishing_block.html',
- 'browser/security/resources/ssl_error.html',
- 'browser/security/resources/ssl_roadblock.html',
- 'browser/security/resources/ssl_roadblock_background.png',
- 'browser/security/resources/ssl_roadblock_icon.png',
-])
-
-p = env.ChromeMSVSProject('browser/resources/browser_resources.vcproj',
- dest=('$CHROME_SRC_DIR/chrome/'
- + 'browser/resources/browser_resources.vcproj'),
- guid='{B95AB527-F7DB-41E9-AD91-EB51EE0F56BE}',
- # TODO(sgk): when we can intuit the hierarchy
- # from the built targets.
- #buildtargets=TODO,
- files=input_files,
- local_directory_prefix='./',
- tools=[
- 'VCPreBuildEventTool',
- 'VCCustomBuildTool',
- 'VCMIDLTool',
- 'VCPostBuildEventTool',
- ],
- ConfigurationType='10')
-
-p.AddConfig('Debug|Win32',
- InheritedPropertySheets=[
- '$(SolutionDir)../build/common.vsprops',
- '$(SolutionDir)../build/debug.vsprops',
- ])
-
-p.AddConfig('Release|Win32',
- InheritedPropertySheets=[
- '$(SolutionDir)../build/common.vsprops',
- '$(SolutionDir)../build/release.vsprops',
- ])
-
-
-##############################################################################
-# TODO(sgk): move to separate .scons file for browser_resources #############
+# TODO(sgk): Port these to browser_views.scons and views.scons.
sconscript_files = [
- 'app/theme/SConscript',
'browser/views/SConscript',
'views/SConscript',
]