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