Mon, 19 Aug 2013 17:47:21 +0200
8015614: Update build settings
Reviewed-by: tbell, dholmes, ahgross
1 #
2 # Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved.
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # This code is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License version 2 only, as
7 # published by the Free Software Foundation.
8 #
9 # This code is distributed in the hope that it will be useful, but WITHOUT
10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 # version 2 for more details (a copy is included in the LICENSE file that
13 # accompanied this code).
14 #
15 # You should have received a copy of the GNU General Public License version
16 # 2 along with this work; if not, write to the Free Software Foundation,
17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 #
19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 # or visit www.oracle.com if you need additional information or have any
21 # questions.
22 #
23 #
25 !include $(WorkSpace)/make/windows/makefiles/rules.make
27 # This is used externally by both batch and IDE builds, so can't
28 # reference any of the HOTSPOTWORKSPACE, HOTSPOTBUILDSPACE,
29 # HOTSPOTRELEASEBINDEST, or HOTSPOTDEBUGBINDEST environment variables.
31 ProjectCreatorSources=\
32 $(WorkSpace)\src\share\tools\ProjectCreator\ProjectCreator.java \
33 $(WorkSpace)\src\share\tools\ProjectCreator\FileTreeCreator.java \
34 $(WorkSpace)\src\share\tools\ProjectCreator\FileTreeCreatorVC7.java \
35 $(WorkSpace)\src\share\tools\ProjectCreator\FileTreeCreatorVC10.java \
36 $(WorkSpace)\src\share\tools\ProjectCreator\WinGammaPlatform.java \
37 $(WorkSpace)\src\share\tools\ProjectCreator\WinGammaPlatformVC7.java \
38 $(WorkSpace)\src\share\tools\ProjectCreator\WinGammaPlatformVC8.java \
39 $(WorkSpace)\src\share\tools\ProjectCreator\WinGammaPlatformVC9.java \
40 $(WorkSpace)\src\share\tools\ProjectCreator\WinGammaPlatformVC10.java \
41 $(WorkSpace)\src\share\tools\ProjectCreator\Util.java \
42 $(WorkSpace)\src\share\tools\ProjectCreator\BuildConfig.java \
43 $(WorkSpace)\src\share\tools\ProjectCreator\ArgsParser.java
45 # This is only used internally
46 ProjectCreatorIncludesPRIVATE=\
47 -relativeInclude src\closed\share\vm \
48 -relativeInclude src\closed\os\windows\vm \
49 -relativeInclude src\closed\os_cpu\windows_$(Platform_arch)\vm \
50 -relativeInclude src\closed\cpu\$(Platform_arch)\vm \
51 -relativeInclude src\share\vm \
52 -relativeInclude src\share\vm\precompiled \
53 -relativeInclude src\share\vm\prims\wbtestmethods \
54 -relativeInclude src\share\vm\prims \
55 -relativeInclude src\os\windows\vm \
56 -relativeInclude src\os_cpu\windows_$(Platform_arch)\vm \
57 -relativeInclude src\cpu\$(Platform_arch)\vm \
58 -absoluteInclude $(HOTSPOTBUILDSPACE)/%f/generated \
59 -relativeSrcInclude src \
60 -absoluteSrcInclude $(HOTSPOTBUILDSPACE) \
61 -ignorePath $(HOTSPOTBUILDSPACE) \
62 -ignorePath share\vm\adlc \
63 -ignorePath share\vm\shark \
64 -ignorePath share\tools \
65 -ignorePath solaris \
66 -ignorePath posix \
67 -ignorePath sparc \
68 -ignorePath linux \
69 -ignorePath bsd \
70 -ignorePath osx \
71 -ignorePath arm \
72 -ignorePath ppc \
73 -ignorePath zero \
74 -hidePath .hg
77 # This is referenced externally by both the IDE and batch builds
78 ProjectCreatorOptions=
80 # This is used externally, but only by the IDE builds, so we can
81 # reference environment variables which aren't defined in the batch
82 # build process.
84 ProjectCreatorIDEOptions = \
85 -useToGeneratePch java.cpp \
86 -disablePch os_windows.cpp \
87 -disablePch os_windows_$(Platform_arch).cpp \
88 -disablePch osThread_windows.cpp \
89 -disablePch bytecodeInterpreter.cpp \
90 -disablePch bytecodeInterpreterWithChecks.cpp \
91 -disablePch getThread_windows_$(Platform_arch).cpp \
92 -disablePch_compiler2 opcodes.cpp
94 # Common options for the IDE builds for core, c1, and c2
95 ProjectCreatorIDEOptions=\
96 $(ProjectCreatorIDEOptions) \
97 -sourceBase $(HOTSPOTWORKSPACE) \
98 -buildBase $(HOTSPOTBUILDSPACE)\%f\%b \
99 -buildSpace $(HOTSPOTBUILDSPACE) \
100 -startAt src \
101 -compiler $(VcVersion) \
102 -projectFileName $(HOTSPOTBUILDSPACE)\$(ProjectFile) \
103 -jdkTargetRoot $(HOTSPOTJDKDIST) \
104 -define ALIGN_STACK_FRAMES \
105 -define VM_LITTLE_ENDIAN \
106 -prelink "" "Generating vm.def..." "cd $(HOTSPOTBUILDSPACE)\%f\%b set HOTSPOTMKSHOME=$(HOTSPOTMKSHOME) set JAVA_HOME=$(HOTSPOTJDKDIST) $(HOTSPOTMKSHOME)\sh $(HOTSPOTWORKSPACE)\make\windows\build_vm_def.sh $(LD_VER)" \
107 -ignoreFile jsig.c \
108 -ignoreFile jvmtiEnvRecommended.cpp \
109 -ignoreFile jvmtiEnvStub.cpp \
110 -ignoreFile globalDefinitions_gcc.hpp \
111 -ignoreFile globalDefinitions_sparcWorks.hpp \
112 -ignoreFile version.rc \
113 -ignoreFile Xusage.txt \
114 -define TARGET_ARCH_x86 \
115 -define TARGET_OS_ARCH_windows_x86 \
116 -define TARGET_OS_FAMILY_windows \
117 -define TARGET_COMPILER_visCPP \
118 -define INCLUDE_TRACE=1 \
119 $(ProjectCreatorIncludesPRIVATE)
121 # Add in build-specific options
122 !if "$(BUILDARCH)" == "i486"
123 ProjectCreatorIDEOptions=$(ProjectCreatorIDEOptions) \
124 -platformName Win32 \
125 -define IA32 \
126 -ignorePath x86_64 \
127 -define TARGET_ARCH_MODEL_x86_32
128 !else
129 !if "$(BUILDARCH)" == "amd64"
130 ProjectCreatorIDEOptions=$(ProjectCreatorIDEOptions) \
131 -platformName x64 \
132 -define AMD64 \
133 -define _LP64 \
134 -ignorePath x86_32 \
135 -define TARGET_ARCH_MODEL_x86_64 \
136 -define TARGET_OS_ARCH_MODEL_windows_x86_64
137 !endif
138 !endif
140 ProjectCreatorIDEOptionsIgnoreCompiler1=\
141 -ignorePath_TARGET compiler1 \
142 -ignorePath_TARGET tiered \
143 -ignorePath_TARGET c1_
145 ProjectCreatorIDEOptionsIgnoreCompiler2=\
146 -ignorePath_TARGET compiler2 \
147 -ignorePath_TARGET tiered \
148 -ignorePath_TARGET src/share/vm/opto \
149 -ignorePath_TARGET src/share/vm/libadt \
150 -ignorePath_TARGET adfiles \
151 -ignoreFile_TARGET bcEscapeAnalyzer.cpp \
152 -ignoreFile_TARGET bcEscapeAnalyzer.hpp \
153 -ignorePath_TARGET chaitin \
154 -ignorePath_TARGET c2_ \
155 -ignorePath_TARGET runtime_ \
156 -ignoreFile_TARGET ciTypeFlow.cpp \
157 -ignoreFile_TARGET ciTypeFlow.hpp \
158 -ignoreFile_TARGET $(Platform_arch_model).ad
160 ##################################################
161 # Without compiler(core) specific options
162 ##################################################
163 ProjectCreatorIDEOptions=$(ProjectCreatorIDEOptions) \
164 $(ProjectCreatorIDEOptionsIgnoreCompiler1:TARGET=core) \
165 $(ProjectCreatorIDEOptionsIgnoreCompiler2:TARGET=core)
167 ##################################################
168 # Client(C1) compiler specific options
169 ##################################################
170 ProjectCreatorIDEOptions=$(ProjectCreatorIDEOptions) \
171 -define_compiler1 COMPILER1 \
172 -ignorePath_compiler1 core \
173 $(ProjectCreatorIDEOptionsIgnoreCompiler2:TARGET=compiler1)
175 ##################################################
176 # Server(C2) compiler specific options
177 ##################################################
178 #NOTE! This list must be kept in sync with GENERATED_NAMES in adlc.make.
179 ProjectCreatorIDEOptions=$(ProjectCreatorIDEOptions) \
180 -define_compiler2 COMPILER2 \
181 -ignorePath_compiler2 core \
182 -additionalFile_compiler2 $(Platform_arch_model).ad \
183 -additionalFile_compiler2 ad_$(Platform_arch_model).cpp \
184 -additionalFile_compiler2 ad_$(Platform_arch_model).hpp \
185 -additionalFile_compiler2 ad_$(Platform_arch_model)_clone.cpp \
186 -additionalFile_compiler2 ad_$(Platform_arch_model)_expand.cpp \
187 -additionalFile_compiler2 ad_$(Platform_arch_model)_format.cpp \
188 -additionalFile_compiler2 ad_$(Platform_arch_model)_gen.cpp \
189 -additionalFile_compiler2 ad_$(Platform_arch_model)_misc.cpp \
190 -additionalFile_compiler2 ad_$(Platform_arch_model)_peephole.cpp \
191 -additionalFile_compiler2 ad_$(Platform_arch_model)_pipeline.cpp \
192 -additionalFile_compiler2 adGlobals_$(Platform_arch_model).hpp \
193 -additionalFile_compiler2 dfa_$(Platform_arch_model).cpp \
194 $(ProjectCreatorIDEOptionsIgnoreCompiler1:TARGET=compiler2)
196 # Add in the jvmti (JSR-163) options
197 # NOTE: do not pull in jvmtiEnvRecommended.cpp. This file is generated
198 # so the programmer can diff it with jvmtiEnv.cpp to be sure the
199 # code merge was done correctly (@see jvmti.make and jvmtiEnvFill.java).
200 # If so, they would then check it in as a new version of jvmtiEnv.cpp.
201 ProjectCreatorIDEOptions=$(ProjectCreatorIDEOptions) \
202 -additionalFile jvmtiEnv.hpp \
203 -additionalFile jvmtiEnter.cpp \
204 -additionalFile jvmtiEnterTrace.cpp \
205 -additionalFile jvmti.h \
206 -additionalFile bytecodeInterpreterWithChecks.cpp \
207 -additionalFile traceEventClasses.hpp \
208 -additionalFile traceEventIds.hpp \
209 !if "$(OPENJDK)" != "true"
210 -additionalFile traceRequestables.hpp \
211 -additionalFile traceEventControl.hpp \
212 -additionalFile traceProducer.cpp \
213 !endif
214 -additionalFile traceTypes.hpp