make/windows/makefiles/projectcreator.make

Sat, 07 Nov 2020 10:30:02 +0800

author
aoqi
date
Sat, 07 Nov 2020 10:30:02 +0800
changeset 10026
8c95980d0b66
parent 7535
7ae4e26cb1e0
permissions
-rw-r--r--

Added tag mips-jdk8u275-b01 for changeset d3b4d62f391f

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

mercurial