annotate make/windows/build.bat @ 196:d1605aabd0a1 jdk7-b30

6719955: Update copyright year Summary: Update copyright year for files that have been modified in 2008 Reviewed-by: ohair, tbell
author xdono
date Wed, 02 Jul 2008 12:55:16 -0700
parents a294fd0c4b38
children 21141e23627a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a61af66fc99e Initial load
duke
parents:
diff changeset
1 @echo off
a61af66fc99e Initial load
duke
parents:
diff changeset
2 REM
196
d1605aabd0a1 6719955: Update copyright year
xdono
parents: 91
diff changeset
3 REM Copyright 1997-2008 Sun Microsystems, Inc. All Rights Reserved.
0
a61af66fc99e Initial load
duke
parents:
diff changeset
4 REM DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
a61af66fc99e Initial load
duke
parents:
diff changeset
5 REM
a61af66fc99e Initial load
duke
parents:
diff changeset
6 REM This code is free software; you can redistribute it and/or modify it
a61af66fc99e Initial load
duke
parents:
diff changeset
7 REM under the terms of the GNU General Public License version 2 only, as
a61af66fc99e Initial load
duke
parents:
diff changeset
8 REM published by the Free Software Foundation.
a61af66fc99e Initial load
duke
parents:
diff changeset
9 REM
a61af66fc99e Initial load
duke
parents:
diff changeset
10 REM This code is distributed in the hope that it will be useful, but WITHOUT
a61af66fc99e Initial load
duke
parents:
diff changeset
11 REM ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
a61af66fc99e Initial load
duke
parents:
diff changeset
12 REM FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
a61af66fc99e Initial load
duke
parents:
diff changeset
13 REM version 2 for more details (a copy is included in the LICENSE file that
a61af66fc99e Initial load
duke
parents:
diff changeset
14 REM accompanied this code).
a61af66fc99e Initial load
duke
parents:
diff changeset
15 REM
a61af66fc99e Initial load
duke
parents:
diff changeset
16 REM You should have received a copy of the GNU General Public License version
a61af66fc99e Initial load
duke
parents:
diff changeset
17 REM 2 along with this work; if not, write to the Free Software Foundation,
a61af66fc99e Initial load
duke
parents:
diff changeset
18 REM Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
a61af66fc99e Initial load
duke
parents:
diff changeset
19 REM
a61af66fc99e Initial load
duke
parents:
diff changeset
20 REM Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
a61af66fc99e Initial load
duke
parents:
diff changeset
21 REM CA 95054 USA or visit www.sun.com if you need additional information or
a61af66fc99e Initial load
duke
parents:
diff changeset
22 REM have any questions.
a61af66fc99e Initial load
duke
parents:
diff changeset
23 REM
a61af66fc99e Initial load
duke
parents:
diff changeset
24 REM
a61af66fc99e Initial load
duke
parents:
diff changeset
25
a61af66fc99e Initial load
duke
parents:
diff changeset
26
a61af66fc99e Initial load
duke
parents:
diff changeset
27 REM
a61af66fc99e Initial load
duke
parents:
diff changeset
28 REM Since we don't have uname and we could be cross-compiling,
a61af66fc99e Initial load
duke
parents:
diff changeset
29 REM Use the compiler to determine which ARCH we are building
a61af66fc99e Initial load
duke
parents:
diff changeset
30 REM
a61af66fc99e Initial load
duke
parents:
diff changeset
31 cl 2>&1 | grep "IA-64" >NUL
a61af66fc99e Initial load
duke
parents:
diff changeset
32 if %errorlevel% == 0 goto isia64
a61af66fc99e Initial load
duke
parents:
diff changeset
33 cl 2>&1 | grep "AMD64" >NUL
a61af66fc99e Initial load
duke
parents:
diff changeset
34 if %errorlevel% == 0 goto amd64
a61af66fc99e Initial load
duke
parents:
diff changeset
35 set ARCH=x86
a61af66fc99e Initial load
duke
parents:
diff changeset
36 set BUILDARCH=i486
a61af66fc99e Initial load
duke
parents:
diff changeset
37 set Platform_arch=x86
a61af66fc99e Initial load
duke
parents:
diff changeset
38 set Platform_arch_model=x86_32
a61af66fc99e Initial load
duke
parents:
diff changeset
39 goto end
a61af66fc99e Initial load
duke
parents:
diff changeset
40 :amd64
a61af66fc99e Initial load
duke
parents:
diff changeset
41 set LP64=1
a61af66fc99e Initial load
duke
parents:
diff changeset
42 set ARCH=x86
a61af66fc99e Initial load
duke
parents:
diff changeset
43 set BUILDARCH=amd64
a61af66fc99e Initial load
duke
parents:
diff changeset
44 set Platform_arch=x86
a61af66fc99e Initial load
duke
parents:
diff changeset
45 set Platform_arch_model=x86_64
a61af66fc99e Initial load
duke
parents:
diff changeset
46 goto end
a61af66fc99e Initial load
duke
parents:
diff changeset
47 :isia64
a61af66fc99e Initial load
duke
parents:
diff changeset
48 set LP64=1
a61af66fc99e Initial load
duke
parents:
diff changeset
49 set ARCH=ia64
a61af66fc99e Initial load
duke
parents:
diff changeset
50 set Platform_arch=ia64
a61af66fc99e Initial load
duke
parents:
diff changeset
51 set Platform_arch_model=ia64
a61af66fc99e Initial load
duke
parents:
diff changeset
52 :end
a61af66fc99e Initial load
duke
parents:
diff changeset
53
a61af66fc99e Initial load
duke
parents:
diff changeset
54 if "%4" == "" goto usage
a61af66fc99e Initial load
duke
parents:
diff changeset
55 if not "%7" == "" goto usage
a61af66fc99e Initial load
duke
parents:
diff changeset
56
a61af66fc99e Initial load
duke
parents:
diff changeset
57 if "%1" == "product" goto test1
a61af66fc99e Initial load
duke
parents:
diff changeset
58 if "%1" == "debug" goto test1
a61af66fc99e Initial load
duke
parents:
diff changeset
59 if "%1" == "fastdebug" goto test1
a61af66fc99e Initial load
duke
parents:
diff changeset
60 goto usage
a61af66fc99e Initial load
duke
parents:
diff changeset
61
a61af66fc99e Initial load
duke
parents:
diff changeset
62 :test1
a61af66fc99e Initial load
duke
parents:
diff changeset
63 if "%2" == "core" goto test2
a61af66fc99e Initial load
duke
parents:
diff changeset
64 if "%2" == "kernel" goto test2
a61af66fc99e Initial load
duke
parents:
diff changeset
65 if "%2" == "compiler1" goto test2
a61af66fc99e Initial load
duke
parents:
diff changeset
66 if "%2" == "compiler2" goto test2
a61af66fc99e Initial load
duke
parents:
diff changeset
67 if "%2" == "tiered" goto test2
a61af66fc99e Initial load
duke
parents:
diff changeset
68 if "%2" == "adlc" goto build_adlc
a61af66fc99e Initial load
duke
parents:
diff changeset
69
a61af66fc99e Initial load
duke
parents:
diff changeset
70 goto usage
a61af66fc99e Initial load
duke
parents:
diff changeset
71
a61af66fc99e Initial load
duke
parents:
diff changeset
72 :test2
a61af66fc99e Initial load
duke
parents:
diff changeset
73 REM check_j2se_version
a61af66fc99e Initial load
duke
parents:
diff changeset
74 REM jvmti.make requires J2SE 1.4.x or newer.
a61af66fc99e Initial load
duke
parents:
diff changeset
75 REM If not found then fail fast.
a61af66fc99e Initial load
duke
parents:
diff changeset
76 %4\bin\javap javax.xml.transform.TransformerFactory >NUL
a61af66fc99e Initial load
duke
parents:
diff changeset
77 if %errorlevel% == 0 goto build
a61af66fc99e Initial load
duke
parents:
diff changeset
78 echo.
a61af66fc99e Initial load
duke
parents:
diff changeset
79 echo J2SE version found at %4\bin\java:
a61af66fc99e Initial load
duke
parents:
diff changeset
80 %4\bin\java -version
a61af66fc99e Initial load
duke
parents:
diff changeset
81 echo.
a61af66fc99e Initial load
duke
parents:
diff changeset
82 echo An XSLT processor (J2SE 1.4.x or newer) is required to
a61af66fc99e Initial load
duke
parents:
diff changeset
83 echo bootstrap this build
a61af66fc99e Initial load
duke
parents:
diff changeset
84 echo.
a61af66fc99e Initial load
duke
parents:
diff changeset
85
a61af66fc99e Initial load
duke
parents:
diff changeset
86 goto usage
a61af66fc99e Initial load
duke
parents:
diff changeset
87
a61af66fc99e Initial load
duke
parents:
diff changeset
88 :build
91
a294fd0c4b38 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 0
diff changeset
89 nmake -f %3/make/windows/build.make Variant=%2 WorkSpace=%3 BootStrapDir=%4 BuildUser="%USERNAME%" HOTSPOT_BUILD_VERSION="%5" %1
0
a61af66fc99e Initial load
duke
parents:
diff changeset
90 goto end
a61af66fc99e Initial load
duke
parents:
diff changeset
91
a61af66fc99e Initial load
duke
parents:
diff changeset
92 :build_adlc
91
a294fd0c4b38 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 0
diff changeset
93 nmake -f %3/make/windows/build.make Variant=compiler2 WorkSpace=%3 BootStrapDir=%4 BuildUser="%USERNAME%" HOTSPOT_BUILD_VERSION=%5 ADLC_ONLY=1 %1
0
a61af66fc99e Initial load
duke
parents:
diff changeset
94 goto end
a61af66fc99e Initial load
duke
parents:
diff changeset
95
a61af66fc99e Initial load
duke
parents:
diff changeset
96 :usage
a61af66fc99e Initial load
duke
parents:
diff changeset
97 echo Usage: build flavor version workspace bootstrap_dir [build_id] [windbg_home]
a61af66fc99e Initial load
duke
parents:
diff changeset
98 echo.
a61af66fc99e Initial load
duke
parents:
diff changeset
99 echo where:
a61af66fc99e Initial load
duke
parents:
diff changeset
100 echo flavor is "product", "debug" or "fastdebug",
a61af66fc99e Initial load
duke
parents:
diff changeset
101 echo version is "core", "kernel", "compiler1", "compiler2", or "tiered",
a61af66fc99e Initial load
duke
parents:
diff changeset
102 echo workspace is source directory without trailing slash,
a61af66fc99e Initial load
duke
parents:
diff changeset
103 echo bootstrap_dir is a full path to echo a JDK in which bin/java
a61af66fc99e Initial load
duke
parents:
diff changeset
104 echo and bin/javac are present and working, and echo build_id is an
a61af66fc99e Initial load
duke
parents:
diff changeset
105 echo optional build identifier displayed by java -version
a61af66fc99e Initial load
duke
parents:
diff changeset
106
a61af66fc99e Initial load
duke
parents:
diff changeset
107 :end