]> git.saurik.com Git - apple/icu.git/blame - BuildICUForAAS_script.bat
ICU-64243.0.1.tar.gz
[apple/icu.git] / BuildICUForAAS_script.bat
CommitLineData
b331163b
A
1@echo off\r
2rem ================\r
3rem # This assumes the following (for all the path variables,\r
4rem # the path in the variable should not be quoted, and a final slash is optional):\r
5rem # 1. The current directory is set to the top of the ICU source directory,\r
6rem # i.e. the location of this bat file and of the ICU top-level makefile.\r
7rem # 2. SRCROOT is set to the Win-style path for that source directory.\r
8rem # 3. DSTROOT is set to the Win-style install path, e.g.\r
f3c0d7a5 9rem # C:\cygwin64\home\pkedberg\ICUroot or C:\AppleInternal\r
b331163b
A
10rem # 4. OBJROOT and SYMROOT are also set to the appropriate Win-style path;\r
11rem # separate subdirectories under these directories will be used for 32-bit and 64-bit builds.\r
12rem # 5. CYGWINPATH is set to the full Windows-style path for Cygwin tools including bash, e.g.\r
f3c0d7a5
A
13rem # C:\cygwin64\bin\r
14rem # 6. VS140COMNTOOLS is set to the full Windows-style path for VS 2015 common tools, e.g.\r
15rem # C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\\r
b331163b
A
16rem # (don't set explicitly, it should get set up by windows)\r
17rem # 7. VC tools (compiler, linker) are in the following directories:\r
f3c0d7a5
A
18rem # "%VS140COMNTOOLS%\..\..\VC\bin" (32-bit)\r
19rem # "%VS140COMNTOOLS%\..\..\VC\bin\amd64" (64-bit)\r
20rem # (the make parameter VS140VCTOOLS_PATH specifies the appropriate one)\r
b331163b
A
21rem # 8. This bat script is invoked with an argument of "'install" or "install_debug" depending\r
22rem # on which is desired.\r
23rem #\r
24rem # Example of usage:\r
f3c0d7a5
A
25rem # >cd to whatever SRCROOT should be, e.g. >cd C:\cygwin64\home\pkedberg\ICU\r
26rem # >set SRCROOT=C:\cygwin64\home\pkedberg\ICU\r
27rem # >set DSTROOT=C:\cygwin64\home\pkedberg\ICUroot\r
28rem # >set OBJROOT=C:\cygwin64\home\pkedberg\ICU\build\r
29rem # >set SYMROOT=C:\cygwin64\home\pkedberg\ICU\build\r
30rem # >set CYGWINPATH=C:\cygwin64\bin\r
b331163b
A
31rem # >BuildICUForAAS_script.bat install\r
32rem ================\r
33echo # CYGWINPATH= "%CYGWINPATH%"\r
34echo # DSTROOT= "%DSTROOT%"\r
35echo # OBJROOT= "%OBJROOT%"\r
36echo # == Run vcvarsall for 32-bit\r
f3c0d7a5 37call "%VS140COMNTOOLS%\..\..\VC\vcvarsall.bat" x86\r
b331163b
A
38echo # == Run ICU make for 32-bit\r
39@echo on\r
f3c0d7a5 40"%CYGWINPATH%\bash.exe" -c '/bin/make %1 WINDOWS=YES ARCH64=NO VS140VCTOOLS_PATH="%VS140COMNTOOLS%\..\..\VC\bin"'\r
b331163b
A
41@echo off\r
42echo # == Run vcvarsall for 64-bit\r
f3c0d7a5 43call "%VS140COMNTOOLS%\..\..\VC\vcvarsall.bat" amd64\r
b331163b
A
44echo # == Run ICU make for 64-bit\r
45@echo on\r
f3c0d7a5 46"%CYGWINPATH%\bash.exe" -c '/bin/make %1 WINDOWS=YES ARCH64=YES VS140VCTOOLS_PATH="%VS140COMNTOOLS%\..\..\VC\bin\amd64"'\r
b331163b
A
47@echo off\r
48echo # == All done!\r