make/windows/makefiles/projectcreator.make

Sat, 25 Jan 2020 06:34:42 +0000

author
clanger
date
Sat, 25 Jan 2020 06:34:42 +0000
changeset 9823
147dfbe6ffa1
parent 7261
fffbcc20bf61
child 7535
7ae4e26cb1e0
permissions
-rw-r--r--

8233995: java.vm.vendor (and potentially other properties/fields) not correctly set in Windows/Hotspot build of OpenJDK8
Reviewed-by: andrew

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

mercurial