summaryrefslogtreecommitdiffstats
path: root/chrome/tools
diff options
context:
space:
mode:
authorrahulk@google.com <rahulk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-28 15:58:53 +0000
committerrahulk@google.com <rahulk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-28 15:58:53 +0000
commitda27ac3cbf0acb3a17878502c279dbaca90b63eb (patch)
tree6012ed645aff301fc6f998da450793f26c50caf4 /chrome/tools
parent60cff8bfbf19dad3d362f3ef0983b7db39c08e02 (diff)
downloadchromium_src-da27ac3cbf0acb3a17878502c279dbaca90b63eb.zip
chromium_src-da27ac3cbf0acb3a17878502c279dbaca90b63eb.tar.gz
chromium_src-da27ac3cbf0acb3a17878502c279dbaca90b63eb.tar.bz2
Use distribution specific branding for binaries version stamp.
BUG=1296800 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1486 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/tools')
-rw-r--r--chrome/tools/build/win/version.bat7
-rw-r--r--chrome/tools/build/win/version.rules2
2 files changed, 7 insertions, 2 deletions
diff --git a/chrome/tools/build/win/version.bat b/chrome/tools/build/win/version.bat
index afdfa1a..1c43ca5 100644
--- a/chrome/tools/build/win/version.bat
+++ b/chrome/tools/build/win/version.bat
@@ -15,8 +15,13 @@ call %SolutionDir%\..\third_party\cygwin\setup_env.bat
:: Load version digits as environment variables
cat %SolutionDir%\VERSION | sed "s/\(.*\)/set \1/" > %VarsBat%
+REM TODO(rahulk) this line will be removed once google chrome buildbots are setup properly
+set CHROMIUM_BUILD="_google_chrome"
+
:: Load branding strings as environment variables
-cat %SolutionDir%\BRANDING | sed "s/\(.*\)/set \1/" >> %VarsBat%
+set Distribution="chromium"
+if "%CHROMIUM_BUILD%" == "_google_chrome" set Distribution="google_chrome"
+cat %SolutionDir%app\theme\%Distribution%\BRANDING | sed "s/\(.*\)/set \1/" >> %VarsBat%
set OFFICIAL_BUILD=0
if "%CHROME_BUILD_TYPE%" == "_official" set OFFICIAL_BUILD=1
diff --git a/chrome/tools/build/win/version.rules b/chrome/tools/build/win/version.rules
index 244de21..843bb6f 100644
--- a/chrome/tools/build/win/version.rules
+++ b/chrome/tools/build/win/version.rules
@@ -9,7 +9,7 @@
DisplayName="Version"
CommandLine="$(SolutionDir)/tools/build/win/version.bat [inputs] &quot;$(SolutionDir)&quot; &quot;$(IntDir)&quot; &quot;$(IntDir)/$(InputName)&quot;"
Outputs="$(IntDir)/$(InputName)"
- AdditionalDependencies="$(SolutionDir)/VERSION;$(SolutionDir)/BRANDING;$(SolutionDir)/tools/build/win/version.bat"
+ AdditionalDependencies="$(SolutionDir)/VERSION;$(SolutionDir)/tools/build/win/version.bat"
FileExtensions="*.version"
ExecutionDescription="Generating version template file"
>