Mercurial > hg > truffle
annotate make/windows/makefiles/projectcreator.make @ 13336:d4c6dd07be76
SL: added exemplary uses of new profiling utility BranchProfile to SL.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Sun, 15 Dec 2013 22:20:12 +0100 |
parents | f1a55428a8d7 |
children | 49db2c1e3bee |
rev | line source |
---|---|
0 | 1 # |
7951 | 2 # Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved. |
0 | 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 # | |
1552
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
844
diff
changeset
|
19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
844
diff
changeset
|
20 # or visit www.oracle.com if you need additional information or have any |
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
844
diff
changeset
|
21 # questions. |
10405 | 22 # |
0 | 23 # |
24 | |
91
a294fd0c4b38
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
0
diff
changeset
|
25 !include $(WorkSpace)/make/windows/makefiles/rules.make |
0 | 26 |
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. | |
30 | |
1972 | 31 ProjectCreatorSources=\ |
32 $(WorkSpace)\src\share\tools\ProjectCreator\ProjectCreator.java \ | |
6801 | 33 $(WorkSpace)\src\share\tools\ProjectCreator\FileTreeCreator.java \ |
34 $(WorkSpace)\src\share\tools\ProjectCreator\FileTreeCreatorVC7.java \ | |
35 $(WorkSpace)\src\share\tools\ProjectCreator\FileTreeCreatorVC10.java \ | |
1972 | 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 \ | |
2393 | 40 $(WorkSpace)\src\share\tools\ProjectCreator\WinGammaPlatformVC10.java \ |
1972 | 41 $(WorkSpace)\src\share\tools\ProjectCreator\Util.java \ |
42 $(WorkSpace)\src\share\tools\ProjectCreator\BuildConfig.java \ | |
43 $(WorkSpace)\src\share\tools\ProjectCreator\ArgsParser.java | |
0 | 44 |
45 # This is only used internally | |
1972 | 46 ProjectCreatorIncludesPRIVATE=\ |
12014
31f3b1e1c5e5
8016601: Unable to build hsx24 on Windows using project creator and Visual Studio
dcubed
parents:
10405
diff
changeset
|
47 -relativeAltSrcInclude src\closed \ |
31f3b1e1c5e5
8016601: Unable to build hsx24 on Windows using project creator and Visual Studio
dcubed
parents:
10405
diff
changeset
|
48 -altRelativeInclude share\vm \ |
31f3b1e1c5e5
8016601: Unable to build hsx24 on Windows using project creator and Visual Studio
dcubed
parents:
10405
diff
changeset
|
49 -altRelativeInclude os\windows\vm \ |
31f3b1e1c5e5
8016601: Unable to build hsx24 on Windows using project creator and Visual Studio
dcubed
parents:
10405
diff
changeset
|
50 -altRelativeInclude os_cpu\windows_$(Platform_arch)\vm \ |
31f3b1e1c5e5
8016601: Unable to build hsx24 on Windows using project creator and Visual Studio
dcubed
parents:
10405
diff
changeset
|
51 -altRelativeInclude cpu\$(Platform_arch)\vm \ |
1972 | 52 -relativeInclude src\share\vm \ |
4084
c17bc65648de
7112308: Fix Visual Studio build for precompiled header
brutisso
parents:
2393
diff
changeset
|
53 -relativeInclude src\share\vm\precompiled \ |
5978
51612f0c0a79
7148488: Whitebox tests for the Diagnostic Framework Parser
nloodin
parents:
4891
diff
changeset
|
54 -relativeInclude src\share\vm\prims\wbtestmethods \ |
0 | 55 -relativeInclude src\share\vm\prims \ |
56 -relativeInclude src\os\windows\vm \ | |
57 -relativeInclude src\os_cpu\windows_$(Platform_arch)\vm \ | |
1972 | 58 -relativeInclude src\cpu\$(Platform_arch)\vm \ |
12743
f1a55428a8d7
more HSAIL support in the C++ layer for executing HSAIL code on the simulator
Doug Simon <doug.simon@oracle.com>
parents:
12493
diff
changeset
|
59 -relativeInclude src\os_gpu\windows_hsail\vm \ |
9485
62838eadbf56
Windows build fix for PTX code
Andreas Woess <andreas.woess@jku.at>
parents:
8283
diff
changeset
|
60 -relativeInclude src\gpu \ |
1972 | 61 -absoluteInclude $(HOTSPOTBUILDSPACE)/%f/generated \ |
6801 | 62 -relativeSrcInclude src \ |
63 -absoluteSrcInclude $(HOTSPOTBUILDSPACE) \ | |
64 -ignorePath $(HOTSPOTBUILDSPACE) \ | |
65 -ignorePath share\vm\adlc \ | |
66 -ignorePath share\vm\shark \ | |
67 -ignorePath share\tools \ | |
68 -ignorePath solaris \ | |
69 -ignorePath posix \ | |
70 -ignorePath sparc \ | |
71 -ignorePath linux \ | |
72 -ignorePath bsd \ | |
73 -ignorePath osx \ | |
74 -ignorePath arm \ | |
75 -ignorePath ppc \ | |
76 -ignorePath zero \ | |
77 -hidePath .hg | |
10405 | 78 |
0 | 79 |
80 # This is referenced externally by both the IDE and batch builds | |
1972 | 81 ProjectCreatorOptions= |
0 | 82 |
83 # This is used externally, but only by the IDE builds, so we can | |
84 # reference environment variables which aren't defined in the batch | |
85 # build process. | |
86 | |
1972 | 87 ProjectCreatorIDEOptions = \ |
0 | 88 -useToGeneratePch java.cpp \ |
89 -disablePch os_windows.cpp \ | |
90 -disablePch os_windows_$(Platform_arch).cpp \ | |
91 -disablePch osThread_windows.cpp \ | |
92 -disablePch bytecodeInterpreter.cpp \ | |
93 -disablePch bytecodeInterpreterWithChecks.cpp \ | |
1972 | 94 -disablePch getThread_windows_$(Platform_arch).cpp \ |
10405 | 95 -disablePch_compiler2 opcodes.cpp |
0 | 96 |
12099
c062a6e1fa33
8023406: make/windows/build_vm_def.sh takes too long even when BUILD_WIN_SA != 1
iklam
parents:
12014
diff
changeset
|
97 !if "$(BUILD_WIN_SA)" != "1" |
c062a6e1fa33
8023406: make/windows/build_vm_def.sh takes too long even when BUILD_WIN_SA != 1
iklam
parents:
12014
diff
changeset
|
98 BUILD_VM_DEF_FLAG=-nosa |
c062a6e1fa33
8023406: make/windows/build_vm_def.sh takes too long even when BUILD_WIN_SA != 1
iklam
parents:
12014
diff
changeset
|
99 !endif |
c062a6e1fa33
8023406: make/windows/build_vm_def.sh takes too long even when BUILD_WIN_SA != 1
iklam
parents:
12014
diff
changeset
|
100 |
12014
31f3b1e1c5e5
8016601: Unable to build hsx24 on Windows using project creator and Visual Studio
dcubed
parents:
10405
diff
changeset
|
101 # Common options for the IDE builds for c1, and c2 |
1972 | 102 ProjectCreatorIDEOptions=\ |
103 $(ProjectCreatorIDEOptions) \ | |
0 | 104 -sourceBase $(HOTSPOTWORKSPACE) \ |
1972 | 105 -buildBase $(HOTSPOTBUILDSPACE)\%f\%b \ |
6801 | 106 -buildSpace $(HOTSPOTBUILDSPACE) \ |
0 | 107 -startAt src \ |
1972 | 108 -compiler $(VcVersion) \ |
2233
15d6977f04b0
7017824: Add support for creating 64-bit Visual Studio projects
sla
parents:
2027
diff
changeset
|
109 -projectFileName $(HOTSPOTBUILDSPACE)\$(ProjectFile) \ |
0 | 110 -jdkTargetRoot $(HOTSPOTJDKDIST) \ |
111 -define ALIGN_STACK_FRAMES \ | |
112 -define VM_LITTLE_ENDIAN \ | |
12355 | 113 -prelink "" "Generating vm.def..." "cd %o set HOTSPOTMKSHOME=$(HOTSPOTMKSHOME) set JAVA_HOME=$(HOTSPOTJDKDIST) $(HOTSPOTMKSHOME)\sh $(HOTSPOTWORKSPACE)\make\windows\build_vm_def.sh $(BUILD_VM_DEF_FLAG) $(LD_VER)" \ |
10510
f40010b67b6e
fix windows build directory
Andreas Woess <andreas.woess@jku.at>
parents:
10408
diff
changeset
|
114 -postbuild "" "Building hotspot.exe..." "cd %o set HOTSPOTMKSHOME=$(HOTSPOTMKSHOME) nmake -f $(HOTSPOTWORKSPACE)\make\windows\projectfiles\common\Makefile LOCAL_MAKE=$(HOTSPOTBUILDSPACE)\%f\local.make JAVA_HOME=$(HOTSPOTJDKDIST) launcher" \ |
1972 | 115 -ignoreFile jsig.c \ |
116 -ignoreFile jvmtiEnvRecommended.cpp \ | |
117 -ignoreFile jvmtiEnvStub.cpp \ | |
118 -ignoreFile globalDefinitions_gcc.hpp \ | |
119 -ignoreFile globalDefinitions_sparcWorks.hpp \ | |
120 -ignoreFile version.rc \ | |
121 -ignoreFile Xusage.txt \ | |
122 -define TARGET_ARCH_x86 \ | |
123 -define TARGET_OS_ARCH_windows_x86 \ | |
124 -define TARGET_OS_FAMILY_windows \ | |
125 -define TARGET_COMPILER_visCPP \ | |
10405 | 126 -define INCLUDE_TRACE=1 \ |
1972 | 127 $(ProjectCreatorIncludesPRIVATE) |
0 | 128 |
129 # Add in build-specific options | |
130 !if "$(BUILDARCH)" == "i486" | |
1972 | 131 ProjectCreatorIDEOptions=$(ProjectCreatorIDEOptions) \ |
2233
15d6977f04b0
7017824: Add support for creating 64-bit Visual Studio projects
sla
parents:
2027
diff
changeset
|
132 -platformName Win32 \ |
1972 | 133 -define IA32 \ |
134 -ignorePath x86_64 \ | |
135 -define TARGET_ARCH_MODEL_x86_32 | |
136 !else | |
2233
15d6977f04b0
7017824: Add support for creating 64-bit Visual Studio projects
sla
parents:
2027
diff
changeset
|
137 !if "$(BUILDARCH)" == "amd64" |
1972 | 138 ProjectCreatorIDEOptions=$(ProjectCreatorIDEOptions) \ |
2233
15d6977f04b0
7017824: Add support for creating 64-bit Visual Studio projects
sla
parents:
2027
diff
changeset
|
139 -platformName x64 \ |
15d6977f04b0
7017824: Add support for creating 64-bit Visual Studio projects
sla
parents:
2027
diff
changeset
|
140 -define AMD64 \ |
15d6977f04b0
7017824: Add support for creating 64-bit Visual Studio projects
sla
parents:
2027
diff
changeset
|
141 -define _LP64 \ |
1972 | 142 -ignorePath x86_32 \ |
2233
15d6977f04b0
7017824: Add support for creating 64-bit Visual Studio projects
sla
parents:
2027
diff
changeset
|
143 -define TARGET_ARCH_MODEL_x86_64 \ |
15d6977f04b0
7017824: Add support for creating 64-bit Visual Studio projects
sla
parents:
2027
diff
changeset
|
144 -define TARGET_OS_ARCH_MODEL_windows_x86_64 |
15d6977f04b0
7017824: Add support for creating 64-bit Visual Studio projects
sla
parents:
2027
diff
changeset
|
145 !endif |
0 | 146 !endif |
147 | |
1972 | 148 ProjectCreatorIDEOptionsIgnoreCompiler1=\ |
6801 | 149 -ignorePath_TARGET compiler1 \ |
150 -ignorePath_TARGET tiered \ | |
1972 | 151 -ignorePath_TARGET c1_ |
152 | |
7216
5a95c784febf
fixed windows make files and VS2012-specific compilation issues
Christian Haeubl <haeubl@ssw.jku.at>
parents:
6948
diff
changeset
|
153 ProjectCreatorIDEOptionsIgnoreGraal=\ |
8265
ded5288f5b96
fix windows build of the server and client vms
Andreas Woess <andreas.woess@jku.at>
parents:
8124
diff
changeset
|
154 -ignorePath_TARGET src/share/vm/graal \ |
ded5288f5b96
fix windows build of the server and client vms
Andreas Woess <andreas.woess@jku.at>
parents:
8124
diff
changeset
|
155 -ignorePath_TARGET graal/generated \ |
ded5288f5b96
fix windows build of the server and client vms
Andreas Woess <andreas.woess@jku.at>
parents:
8124
diff
changeset
|
156 -ignorePath_TARGET vm/graal |
ded5288f5b96
fix windows build of the server and client vms
Andreas Woess <andreas.woess@jku.at>
parents:
8124
diff
changeset
|
157 |
1972 | 158 ProjectCreatorIDEOptionsIgnoreCompiler2=\ |
6801 | 159 -ignorePath_TARGET compiler2 \ |
160 -ignorePath_TARGET tiered \ | |
1972 | 161 -ignorePath_TARGET src/share/vm/opto \ |
162 -ignorePath_TARGET src/share/vm/libadt \ | |
163 -ignorePath_TARGET adfiles \ | |
164 -ignoreFile_TARGET bcEscapeAnalyzer.cpp \ | |
165 -ignoreFile_TARGET bcEscapeAnalyzer.hpp \ | |
166 -ignorePath_TARGET chaitin \ | |
167 -ignorePath_TARGET c2_ \ | |
168 -ignorePath_TARGET runtime_ \ | |
169 -ignoreFile_TARGET ciTypeFlow.cpp \ | |
170 -ignoreFile_TARGET ciTypeFlow.hpp \ | |
171 -ignoreFile_TARGET $(Platform_arch_model).ad | |
172 | |
173 ################################################## | |
0 | 174 # Client(C1) compiler specific options |
175 ################################################## | |
1972 | 176 ProjectCreatorIDEOptions=$(ProjectCreatorIDEOptions) \ |
0 | 177 -define_compiler1 COMPILER1 \ |
8283
09290d9deab3
windows build fix: server+graal build needs TIERED; include graal in client build
Andreas Woess <andreas.woess@jku.at>
parents:
8265
diff
changeset
|
178 -define_compiler1 GRAAL \ |
09290d9deab3
windows build fix: server+graal build needs TIERED; include graal in client build
Andreas Woess <andreas.woess@jku.at>
parents:
8265
diff
changeset
|
179 -ignorePath_compiler1 graal/generated \ |
7216
5a95c784febf
fixed windows make files and VS2012-specific compilation issues
Christian Haeubl <haeubl@ssw.jku.at>
parents:
6948
diff
changeset
|
180 $(ProjectCreatorIDEOptionsIgnoreCompiler2:TARGET=compiler1) |
0 | 181 |
182 ################################################## | |
4572
76841bdd5f3e
(Windows) Add Graal build configurations (with GRAAL defined) and fix build command.
Andreas Woess <andreas.woess@jku.at>
parents:
4443
diff
changeset
|
183 # Graal compiler specific options |
76841bdd5f3e
(Windows) Add Graal build configurations (with GRAAL defined) and fix build command.
Andreas Woess <andreas.woess@jku.at>
parents:
4443
diff
changeset
|
184 ################################################## |
76841bdd5f3e
(Windows) Add Graal build configurations (with GRAAL defined) and fix build command.
Andreas Woess <andreas.woess@jku.at>
parents:
4443
diff
changeset
|
185 ProjectCreatorIDEOptions=$(ProjectCreatorIDEOptions) \ |
76841bdd5f3e
(Windows) Add Graal build configurations (with GRAAL defined) and fix build command.
Andreas Woess <andreas.woess@jku.at>
parents:
4443
diff
changeset
|
186 -define_graal GRAAL \ |
7216
5a95c784febf
fixed windows make files and VS2012-specific compilation issues
Christian Haeubl <haeubl@ssw.jku.at>
parents:
6948
diff
changeset
|
187 $(ProjectCreatorIDEOptionsIgnoreCompiler1:TARGET=graal) \ |
5a95c784febf
fixed windows make files and VS2012-specific compilation issues
Christian Haeubl <haeubl@ssw.jku.at>
parents:
6948
diff
changeset
|
188 $(ProjectCreatorIDEOptionsIgnoreCompiler2:TARGET=graal) |
0 | 189 |
190 ################################################## | |
191 # Server(C2) compiler specific options | |
192 ################################################## | |
193 #NOTE! This list must be kept in sync with GENERATED_NAMES in adlc.make. | |
1972 | 194 ProjectCreatorIDEOptions=$(ProjectCreatorIDEOptions) \ |
0 | 195 -define_compiler2 COMPILER2 \ |
8265
ded5288f5b96
fix windows build of the server and client vms
Andreas Woess <andreas.woess@jku.at>
parents:
8124
diff
changeset
|
196 -define_compiler2 GRAAL \ |
ded5288f5b96
fix windows build of the server and client vms
Andreas Woess <andreas.woess@jku.at>
parents:
8124
diff
changeset
|
197 -ignorePath_compiler2 graal/generated \ |
0 | 198 -additionalFile_compiler2 $(Platform_arch_model).ad \ |
6801 | 199 -additionalFile_compiler2 ad_$(Platform_arch_model).cpp \ |
200 -additionalFile_compiler2 ad_$(Platform_arch_model).hpp \ | |
201 -additionalFile_compiler2 ad_$(Platform_arch_model)_clone.cpp \ | |
202 -additionalFile_compiler2 ad_$(Platform_arch_model)_expand.cpp \ | |
203 -additionalFile_compiler2 ad_$(Platform_arch_model)_format.cpp \ | |
204 -additionalFile_compiler2 ad_$(Platform_arch_model)_gen.cpp \ | |
205 -additionalFile_compiler2 ad_$(Platform_arch_model)_misc.cpp \ | |
206 -additionalFile_compiler2 ad_$(Platform_arch_model)_peephole.cpp \ | |
207 -additionalFile_compiler2 ad_$(Platform_arch_model)_pipeline.cpp \ | |
208 -additionalFile_compiler2 adGlobals_$(Platform_arch_model).hpp \ | |
209 -additionalFile_compiler2 dfa_$(Platform_arch_model).cpp \ | |
1972 | 210 $(ProjectCreatorIDEOptionsIgnoreCompiler1:TARGET=compiler2) |
0 | 211 |
212 # Add in the jvmti (JSR-163) options | |
213 # NOTE: do not pull in jvmtiEnvRecommended.cpp. This file is generated | |
214 # so the programmer can diff it with jvmtiEnv.cpp to be sure the | |
215 # code merge was done correctly (@see jvmti.make and jvmtiEnvFill.java). | |
216 # If so, they would then check it in as a new version of jvmtiEnv.cpp. | |
1972 | 217 ProjectCreatorIDEOptions=$(ProjectCreatorIDEOptions) \ |
6801 | 218 -additionalFile jvmtiEnv.hpp \ |
219 -additionalFile jvmtiEnter.cpp \ | |
220 -additionalFile jvmtiEnterTrace.cpp \ | |
221 -additionalFile jvmti.h \ | |
10405 | 222 -additionalFile bytecodeInterpreterWithChecks.cpp \ |
223 -additionalFile traceEventClasses.hpp \ | |
224 -additionalFile traceEventIds.hpp \ | |
225 !if "$(OPENJDK)" != "true" | |
226 -additionalFile traceRequestables.hpp \ | |
227 -additionalFile traceEventControl.hpp \ | |
228 -additionalFile traceProducer.cpp \ | |
229 !endif | |
230 -additionalFile traceTypes.hpp |