forked from apache/hadoop
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HADOOP-14667. Flexible Visual Studio support. Contributed by Allen Wi…
…ttenauer
- Loading branch information
Showing
6 changed files
with
128 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
@ECHO OFF | ||
@REM Licensed to the Apache Software Foundation (ASF) under one or more | ||
@REM contributor license agreements. See the NOTICE file distributed with | ||
@REM this work for additional information regarding copyright ownership. | ||
@REM The ASF licenses this file to You under the Apache License, Version 2.0 | ||
@REM (the "License"); you may not use this file except in compliance with | ||
@REM the License. You may obtain a copy of the License at | ||
@REM | ||
@REM http://www.apache.org/licenses/LICENSE-2.0 | ||
@REM | ||
@REM Unless required by applicable law or agreed to in writing, software | ||
@REM distributed under the License is distributed on an "AS IS" BASIS, | ||
@REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
@REM See the License for the specific language governing permissions and | ||
@REM limitations under the License. | ||
|
||
@WHERE devenv | ||
IF %ERRORLEVEL% NEQ 0 ( | ||
@ECHO "devenv command was not found. Verify your compiler installation level." | ||
EXIT /b 1 | ||
) | ||
|
||
@REM Need to save output to a file because for loop will just | ||
@REM loop forever... :( | ||
|
||
SET srcdir=%1 | ||
SET workdir=%2 | ||
|
||
IF EXIST %srcdir%\Backup ( | ||
@ECHO "Solution files already upgraded." | ||
EXIT /b 0 | ||
) | ||
|
||
CD %srcdir% | ||
DIR /B *.sln > %workdir%\HADOOP-SLN-UPGRADE.TXT | ||
|
||
FOR /F %%f IN (%workdir%\HADOOP-SLN-UPGRADE.TXT) DO ( | ||
devenv %%f /upgrade | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
@ECHO OFF | ||
@REM Licensed to the Apache Software Foundation (ASF) under one or more | ||
@REM contributor license agreements. See the NOTICE file distributed with | ||
@REM this work for additional information regarding copyright ownership. | ||
@REM The ASF licenses this file to You under the Apache License, Version 2.0 | ||
@REM (the "License"); you may not use this file except in compliance with | ||
@REM the License. You may obtain a copy of the License at | ||
@REM | ||
@REM http://www.apache.org/licenses/LICENSE-2.0 | ||
@REM | ||
@REM Unless required by applicable law or agreed to in writing, software | ||
@REM distributed under the License is distributed on an "AS IS" BASIS, | ||
@REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
@REM See the License for the specific language governing permissions and | ||
@REM limitations under the License. | ||
|
||
@REM ************************************************* | ||
@REM JDK and these settings MUST MATCH | ||
@REM | ||
@REM 64-bit : Platform = x64, VCVARSPLAT = amd64 | ||
@REM | ||
@REM 32-bit : Platform = Win32, VCVARSPLAT = x86 | ||
@REM | ||
|
||
SET Platform=x64 | ||
SET VCVARSPLAT=amd64 | ||
|
||
@REM ****************** | ||
@REM Forcibly move the Maven local repo | ||
|
||
SET MAVEN_OPTS=-Dmaven.repo.local=C:\Tools\m2 | ||
|
||
@REM ******************************************* | ||
@REM | ||
@REM Locations of your bits and pieces | ||
@REM | ||
@REM NOTE: cmake is assumed to already be on the | ||
@REM command path | ||
@REM | ||
|
||
SET MAVEN_HOME=C:\Tools\apache-maven-3.5.0 | ||
SET JAVA_HOME=C:\Tools\jdk | ||
SET MSVS=C:\Program Files (x86)\Microsoft Visual Studio 12.0 | ||
SET PROTO_BIN=C:\Tools\protobuf-2.5.0 | ||
SET GIT_HOME=C:\Program Files\Git | ||
|
||
SET PATH=%JAVA_HOME%\bin;%MAVEN_HOME%\bin;%PROTO_BIN%;%GIT_HOME%\bin;%PATH% | ||
|
||
CALL "%MSVS%\VC\vcvarsall.bat" %VCVARSPLAT% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters