Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Issue 14963005: Make make.bat and gyp_skia work with VS 2012. (Closed)

Created:
7 years, 7 months ago by bsalomon
Modified:
7 years, 7 months ago
Reviewers:
epoger
CC:
skia-review_googlegroups.com, caryclark
Visibility:
Public.

Description

Make make.bat and gyp_skia work with VS 2012. Landed as r9045

Patch Set 1 #

Patch Set 2 : remove empty echos #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+140 lines, -141 lines) Patch
M gyp_skia View 1 chunk +120 lines, -127 lines 1 comment Download
M make.bat View 1 1 chunk +20 lines, -14 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
bsalomon
Several of us are now using VS2012 to build Skia. These changes allow make.bat and ...
7 years, 7 months ago (2013-05-06 19:34:49 UTC) #1
bungeman-skia
On 2013/05/06 19:34:49, bsalomon wrote: > Several of us are now using VS2012 to build ...
7 years, 7 months ago (2013-05-06 20:05:38 UTC) #2
epoger
https://codereview.chromium.org/14963005/diff/2001/gyp_skia File gyp_skia (left): https://codereview.chromium.org/14963005/diff/2001/gyp_skia#oldcode117 gyp_skia:117: # - msvs_version forces generation of Visual Studio 2010 ...
7 years, 7 months ago (2013-05-07 15:19:17 UTC) #3
bsalomon
On 2013/05/07 15:19:17, epoger wrote: > https://codereview.chromium.org/14963005/diff/2001/gyp_skia > File gyp_skia (left): > > https://codereview.chromium.org/14963005/diff/2001/gyp_skia#oldcode117 > ...
7 years, 7 months ago (2013-05-07 15:35:30 UTC) #4
epoger
LGTM On 2013/05/07 15:35:30, bsalomon wrote: > I think the reason we were originally forcing ...
7 years, 7 months ago (2013-05-07 15:37:08 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/bsalomon@google.com/14963005/2001
7 years, 7 months ago (2013-05-07 15:40:13 UTC) #6
commit-bot: I haz the power
7 years, 7 months ago (2013-05-07 15:40:16 UTC) #7
Failed to apply patch for make.bat:
While running patch -p1 --forward --force --no-backup-if-mismatch;
  patching file make.bat
  Hunk #1 FAILED at 2.
  1 out of 1 hunk FAILED -- saving rejects to file make.bat.rej

Patch:       make.bat
Index: make.bat
diff --git a/make.bat b/make.bat
index
fbe0a352f1c52c418c6fc27bdccc38e6da61a83f..a9961074e347cdcc4abb42cfeb0559b234ee7cc0
100644
--- a/make.bat
+++ b/make.bat
@@ -2,25 +2,31 @@
 @rem
 @rem    Use of this source code is governed by a BSD-style license that can be
 @rem    found in the LICENSE file.
+@ECHO OFF
 
-@rem Launches make.py on Windows, after setting Visual Studio environment
variables.
-@rem See http://code.google.com/p/skia/wiki/GettingStartedOnWindows
+rem Launches make.py on Windows, after setting Visual Studio environment
variables.
+rem See http://code.google.com/p/skia/wiki/GettingStartedOnWindows
 
-@if "%DevEnvDir%"=="" goto setup_env_vars
+if "%DevEnvDir%"=="" goto setup_env_vars
 
 :run_python
-@rem Run make.py and propagate its return value.
+rem Run make.py and propagate its return value.
 python make.py %*
-@exit /B %ERRORLEVEL%
+exit /B %ERRORLEVEL%
 
 :setup_env_vars
-@rem Visual Studio environment variables aren't set yet, so run vcvars32.bat
-@if "%VS100COMNTOOLS%"=="" goto error_no_VS100COMNTOOLS
-call "%VS100COMNTOOLS%..\..\VC\bin\vcvars32.bat"
-@if %ERRORLEVEL% neq 0 exit /B %ERRORLEVEL%
-@goto run_python
+rem Visual Studio environment variables aren't set yet, so run vcvars32.bat
+if DEFINED VS110COMNTOOLS (
+    call "%VS110COMNTOOLS%..\..\VC\bin\vcvars32.bat"
+) else if DEFINED VS100COMNTOOLS (
+    call "%VS100COMNTOOLS%..\..\VC\bin\vcvars32.bat"
+) else (
+    goto error_no_VS
+)
+if %ERRORLEVEL% neq 0 exit /B %ERRORLEVEL%
+goto run_python
 
-:error_no_VS100COMNTOOLS
-@echo ERROR: VS100COMNTOOLS environment variable not set.
-@echo Are you sure Visual Studio 2010 is installed?
-@exit /B 1
+:error_no_VS
+echo ERROR: Neither VS100COMNTOOLS nor VS110COMNTOOLS environment variable is
set.
+echo Are you sure Visual Studio 2010 or 2012 is installed?
+exit /B 1

Powered by Google App Engine
This is Rietveld 408576698