win-paths-eg.cmd 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. @ECHO OFF
  2. @REM Licensed to the Apache Software Foundation (ASF) under one or more
  3. @REM contributor license agreements. See the NOTICE file distributed with
  4. @REM this work for additional information regarding copyright ownership.
  5. @REM The ASF licenses this file to You under the Apache License, Version 2.0
  6. @REM (the "License"); you may not use this file except in compliance with
  7. @REM the License. You may obtain a copy of the License at
  8. @REM
  9. @REM http://www.apache.org/licenses/LICENSE-2.0
  10. @REM
  11. @REM Unless required by applicable law or agreed to in writing, software
  12. @REM distributed under the License is distributed on an "AS IS" BASIS,
  13. @REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. @REM See the License for the specific language governing permissions and
  15. @REM limitations under the License.
  16. @REM *************************************************
  17. @REM JDK and these settings MUST MATCH
  18. @REM
  19. @REM 64-bit : Platform = x64, VCVARSPLAT = amd64
  20. @REM
  21. @REM 32-bit : Platform = Win32, VCVARSPLAT = x86
  22. @REM
  23. SET Platform=x64
  24. SET VCVARSPLAT=amd64
  25. @REM ******************
  26. @REM Forcibly move the Maven local repo
  27. SET MAVEN_OPTS=-Dmaven.repo.local=C:\Tools\m2
  28. @REM *******************************************
  29. @REM
  30. @REM Locations of your bits and pieces
  31. @REM
  32. @REM NOTE: cmake is assumed to already be on the
  33. @REM command path
  34. @REM
  35. SET MAVEN_HOME=C:\Tools\apache-maven-3.5.0
  36. SET JAVA_HOME=C:\Tools\jdk
  37. SET MSVS=C:\Program Files (x86)\Microsoft Visual Studio 12.0
  38. SET PROTO_BIN=C:\Tools\protobuf-2.5.0
  39. SET GIT_HOME=C:\Program Files\Git
  40. SET PATH=%JAVA_HOME%\bin;%MAVEN_HOME%\bin;%PROTO_BIN%;%GIT_HOME%\bin;%PATH%
  41. CALL "%MSVS%\VC\vcvarsall.bat" %VCVARSPLAT%