summaryrefslogtreecommitdiffstats
path: root/chrome/installer
diff options
context:
space:
mode:
authorsiggi@chromium.org <siggi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-21 16:07:59 +0000
committersiggi@chromium.org <siggi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-21 16:07:59 +0000
commit570f1e1450a94b9ac2fc25f2c4a1847e16a7a132 (patch)
treefc3d0b7a62e9d63fb9d0cbb3d95f88930dbdd827 /chrome/installer
parent629918536d3620cb264f53bfb2992b8baca407a5 (diff)
downloadchromium_src-570f1e1450a94b9ac2fc25f2c4a1847e16a7a132.zip
chromium_src-570f1e1450a94b9ac2fc25f2c4a1847e16a7a132.tar.gz
chromium_src-570f1e1450a94b9ac2fc25f2c4a1847e16a7a132.tar.bz2
Retry of http://codereview.chromium.org/8589029.
Start of mini_installer build config refactoring. Baby step one: - All intermediate files go into the intermediate directory. - The packed_files.txt file is gone, and instead the mini_installer is baked from a resource file output into the intermediate dir. - Cleanup use of implict global "options" in the python script. - Use subprocess.call with a list instead of os.system. R=robertshield@chromium.org,grt@chromium.org BUG=102115 Review URL: http://codereview.chromium.org/8600008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110934 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/installer')
-rw-r--r--chrome/installer/mini_installer.gyp10
-rw-r--r--chrome/installer/mini_installer/mini_installer.rc21
-rw-r--r--chrome/installer/mini_installer/mini_installer_exe_version.rc.version1
3 files changed, 7 insertions, 25 deletions
diff --git a/chrome/installer/mini_installer.gyp b/chrome/installer/mini_installer.gyp
index 4f73b98..822a085c 100644
--- a/chrome/installer/mini_installer.gyp
+++ b/chrome/installer/mini_installer.gyp
@@ -22,7 +22,6 @@
],
'include_dirs': [
'../..',
- '<(PRODUCT_DIR)',
'<(INTERMEDIATE_DIR)',
'<(SHARED_INTERMEDIATE_DIR)/chrome',
],
@@ -42,6 +41,7 @@
'mini_installer/mini_string.h',
'mini_installer/pe_resource.cc',
'mini_installer/pe_resource.h',
+ '<(INTERMEDIATE_DIR)/packed_files.rc',
],
'msvs_settings': {
'VCCLCompilerTool': {
@@ -209,13 +209,15 @@
'<(PRODUCT_DIR)/<(RULE_INPUT_NAME).7z',
'<(PRODUCT_DIR)/<(RULE_INPUT_NAME).packed.7z',
'<(PRODUCT_DIR)/setup.ex_',
- '<(PRODUCT_DIR)/packed_files.txt',
+ '<(INTERMEDIATE_DIR)/packed_files.rc',
],
'action': [
'python',
'<(create_installer_archive_py_path)',
- '--output_dir=<(PRODUCT_DIR)',
- '--input_file=<(RULE_INPUT_PATH)',
+ '--build_dir', '<(PRODUCT_DIR)',
+ '--staging_dir', '<(INTERMEDIATE_DIR)',
+ '--input_file', '<(RULE_INPUT_PATH)',
+ '--resource_file_path', '<(INTERMEDIATE_DIR)/packed_files.rc',
# TODO(sgk): may just use environment variables
#'--distribution=$(CHROMIUM_BUILD)',
'--distribution=_google_chrome',
diff --git a/chrome/installer/mini_installer/mini_installer.rc b/chrome/installer/mini_installer/mini_installer.rc
index 420dea9..fff6a53 100644
--- a/chrome/installer/mini_installer/mini_installer.rc
+++ b/chrome/installer/mini_installer/mini_installer.rc
@@ -49,28 +49,7 @@ BEGIN
"#undef APSTUDIO_HIDDEN_SYMBOL\0"
END
-3 TEXTINCLUDE
-BEGIN
- "#include ""mini_installer_exe_version.rc""\r\0"
-END
-
#endif // APSTUDIO_INVOKED
-// This file lists the resources that are going to be packed with the exe.
-#include "packed_files.txt"
-
#endif // English (U.S.) resources
/////////////////////////////////////////////////////////////////////////////
-
-
-
-#ifndef APSTUDIO_INVOKED
-/////////////////////////////////////////////////////////////////////////////
-//
-// Generated from the TEXTINCLUDE 3 resource.
-//
-#include "mini_installer_exe_version.rc"
-
-/////////////////////////////////////////////////////////////////////////////
-#endif // not APSTUDIO_INVOKED
-
diff --git a/chrome/installer/mini_installer/mini_installer_exe_version.rc.version b/chrome/installer/mini_installer/mini_installer_exe_version.rc.version
index 3b024d1..c15cfc3 100644
--- a/chrome/installer/mini_installer/mini_installer_exe_version.rc.version
+++ b/chrome/installer/mini_installer/mini_installer_exe_version.rc.version
@@ -2,6 +2,7 @@
//
// Version
//
+#include "verrsrc.h"
VS_VERSION_INFO VERSIONINFO
FILEVERSION @MAJOR@,@MINOR@,@BUILD@,@PATCH@