make/windows/makefiles/projectcreator.make

Mon, 19 Aug 2013 17:47:21 +0200

author
erikj
date
Mon, 19 Aug 2013 17:47:21 +0200
changeset 5877
7638e35cabc6
parent 5237
f2110083203d
child 5500
31f3b1e1c5e5
permissions
-rw-r--r--

8015614: Update build settings
Reviewed-by: tbell, dholmes, ahgross

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=\
sla@2540 47 -relativeInclude src\closed\share\vm \
sla@2540 48 -relativeInclude src\closed\os\windows\vm \
sla@2540 49 -relativeInclude src\closed\os_cpu\windows_$(Platform_arch)\vm \
sla@2540 50 -relativeInclude src\closed\cpu\$(Platform_arch)\vm \
stefank@2314 51 -relativeInclude src\share\vm \
brutisso@3283 52 -relativeInclude src\share\vm\precompiled \
nloodin@3681 53 -relativeInclude src\share\vm\prims\wbtestmethods \
duke@435 54 -relativeInclude src\share\vm\prims \
duke@435 55 -relativeInclude src\os\windows\vm \
duke@435 56 -relativeInclude src\os_cpu\windows_$(Platform_arch)\vm \
stefank@2314 57 -relativeInclude src\cpu\$(Platform_arch)\vm \
stefank@2314 58 -absoluteInclude $(HOTSPOTBUILDSPACE)/%f/generated \
neliasso@4112 59 -relativeSrcInclude src \
neliasso@4112 60 -absoluteSrcInclude $(HOTSPOTBUILDSPACE) \
neliasso@4112 61 -ignorePath $(HOTSPOTBUILDSPACE) \
neliasso@4112 62 -ignorePath share\vm\adlc \
neliasso@4112 63 -ignorePath share\vm\shark \
neliasso@4112 64 -ignorePath share\tools \
neliasso@4112 65 -ignorePath solaris \
neliasso@4112 66 -ignorePath posix \
neliasso@4112 67 -ignorePath sparc \
neliasso@4112 68 -ignorePath linux \
neliasso@4112 69 -ignorePath bsd \
neliasso@4112 70 -ignorePath osx \
neliasso@4112 71 -ignorePath arm \
neliasso@4112 72 -ignorePath ppc \
neliasso@4112 73 -ignorePath zero \
neliasso@4112 74 -hidePath .hg
sla@5237 75
duke@435 76
duke@435 77 # This is referenced externally by both the IDE and batch builds
stefank@2314 78 ProjectCreatorOptions=
duke@435 79
duke@435 80 # This is used externally, but only by the IDE builds, so we can
duke@435 81 # reference environment variables which aren't defined in the batch
duke@435 82 # build process.
duke@435 83
stefank@2314 84 ProjectCreatorIDEOptions = \
duke@435 85 -useToGeneratePch java.cpp \
duke@435 86 -disablePch os_windows.cpp \
duke@435 87 -disablePch os_windows_$(Platform_arch).cpp \
duke@435 88 -disablePch osThread_windows.cpp \
duke@435 89 -disablePch bytecodeInterpreter.cpp \
duke@435 90 -disablePch bytecodeInterpreterWithChecks.cpp \
stefank@2314 91 -disablePch getThread_windows_$(Platform_arch).cpp \
sla@5237 92 -disablePch_compiler2 opcodes.cpp
duke@435 93
duke@435 94 # Common options for the IDE builds for core, c1, and c2
stefank@2314 95 ProjectCreatorIDEOptions=\
stefank@2314 96 $(ProjectCreatorIDEOptions) \
duke@435 97 -sourceBase $(HOTSPOTWORKSPACE) \
stefank@2314 98 -buildBase $(HOTSPOTBUILDSPACE)\%f\%b \
neliasso@4112 99 -buildSpace $(HOTSPOTBUILDSPACE) \
duke@435 100 -startAt src \
stefank@2314 101 -compiler $(VcVersion) \
sla@2540 102 -projectFileName $(HOTSPOTBUILDSPACE)\$(ProjectFile) \
duke@435 103 -jdkTargetRoot $(HOTSPOTJDKDIST) \
duke@435 104 -define ALIGN_STACK_FRAMES \
duke@435 105 -define VM_LITTLE_ENDIAN \
erikj@3518 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)" \
stefank@2314 107 -ignoreFile jsig.c \
stefank@2314 108 -ignoreFile jvmtiEnvRecommended.cpp \
stefank@2314 109 -ignoreFile jvmtiEnvStub.cpp \
stefank@2314 110 -ignoreFile globalDefinitions_gcc.hpp \
stefank@2314 111 -ignoreFile globalDefinitions_sparcWorks.hpp \
stefank@2314 112 -ignoreFile version.rc \
stefank@2314 113 -ignoreFile Xusage.txt \
stefank@2314 114 -define TARGET_ARCH_x86 \
stefank@2314 115 -define TARGET_OS_ARCH_windows_x86 \
stefank@2314 116 -define TARGET_OS_FAMILY_windows \
stefank@2314 117 -define TARGET_COMPILER_visCPP \
sla@5237 118 -define INCLUDE_TRACE=1 \
stefank@2314 119 $(ProjectCreatorIncludesPRIVATE)
duke@435 120
duke@435 121 # Add in build-specific options
duke@435 122 !if "$(BUILDARCH)" == "i486"
stefank@2314 123 ProjectCreatorIDEOptions=$(ProjectCreatorIDEOptions) \
sla@2540 124 -platformName Win32 \
stefank@2314 125 -define IA32 \
stefank@2314 126 -ignorePath x86_64 \
stefank@2314 127 -define TARGET_ARCH_MODEL_x86_32
stefank@2314 128 !else
sla@2540 129 !if "$(BUILDARCH)" == "amd64"
stefank@2314 130 ProjectCreatorIDEOptions=$(ProjectCreatorIDEOptions) \
sla@2540 131 -platformName x64 \
sla@2540 132 -define AMD64 \
sla@2540 133 -define _LP64 \
stefank@2314 134 -ignorePath x86_32 \
sla@2540 135 -define TARGET_ARCH_MODEL_x86_64 \
sla@2540 136 -define TARGET_OS_ARCH_MODEL_windows_x86_64
sla@2540 137 !endif
duke@435 138 !endif
duke@435 139
stefank@2314 140 ProjectCreatorIDEOptionsIgnoreCompiler1=\
neliasso@4112 141 -ignorePath_TARGET compiler1 \
neliasso@4112 142 -ignorePath_TARGET tiered \
stefank@2314 143 -ignorePath_TARGET c1_
stefank@2314 144
stefank@2314 145 ProjectCreatorIDEOptionsIgnoreCompiler2=\
neliasso@4112 146 -ignorePath_TARGET compiler2 \
neliasso@4112 147 -ignorePath_TARGET tiered \
stefank@2314 148 -ignorePath_TARGET src/share/vm/opto \
stefank@2314 149 -ignorePath_TARGET src/share/vm/libadt \
stefank@2314 150 -ignorePath_TARGET adfiles \
stefank@2314 151 -ignoreFile_TARGET bcEscapeAnalyzer.cpp \
stefank@2314 152 -ignoreFile_TARGET bcEscapeAnalyzer.hpp \
stefank@2314 153 -ignorePath_TARGET chaitin \
stefank@2314 154 -ignorePath_TARGET c2_ \
stefank@2314 155 -ignorePath_TARGET runtime_ \
stefank@2314 156 -ignoreFile_TARGET ciTypeFlow.cpp \
stefank@2314 157 -ignoreFile_TARGET ciTypeFlow.hpp \
stefank@2314 158 -ignoreFile_TARGET $(Platform_arch_model).ad
stefank@2314 159
stefank@2314 160 ##################################################
stefank@2314 161 # Without compiler(core) specific options
stefank@2314 162 ##################################################
stefank@2314 163 ProjectCreatorIDEOptions=$(ProjectCreatorIDEOptions) \
stefank@2314 164 $(ProjectCreatorIDEOptionsIgnoreCompiler1:TARGET=core) \
stefank@2314 165 $(ProjectCreatorIDEOptionsIgnoreCompiler2:TARGET=core)
stefank@2314 166
duke@435 167 ##################################################
duke@435 168 # Client(C1) compiler specific options
duke@435 169 ##################################################
stefank@2314 170 ProjectCreatorIDEOptions=$(ProjectCreatorIDEOptions) \
duke@435 171 -define_compiler1 COMPILER1 \
neliasso@4112 172 -ignorePath_compiler1 core \
stefank@2314 173 $(ProjectCreatorIDEOptionsIgnoreCompiler2:TARGET=compiler1)
duke@435 174
duke@435 175 ##################################################
duke@435 176 # Server(C2) compiler specific options
duke@435 177 ##################################################
duke@435 178 #NOTE! This list must be kept in sync with GENERATED_NAMES in adlc.make.
stefank@2314 179 ProjectCreatorIDEOptions=$(ProjectCreatorIDEOptions) \
duke@435 180 -define_compiler2 COMPILER2 \
neliasso@4112 181 -ignorePath_compiler2 core \
duke@435 182 -additionalFile_compiler2 $(Platform_arch_model).ad \
neliasso@4112 183 -additionalFile_compiler2 ad_$(Platform_arch_model).cpp \
neliasso@4112 184 -additionalFile_compiler2 ad_$(Platform_arch_model).hpp \
neliasso@4112 185 -additionalFile_compiler2 ad_$(Platform_arch_model)_clone.cpp \
neliasso@4112 186 -additionalFile_compiler2 ad_$(Platform_arch_model)_expand.cpp \
neliasso@4112 187 -additionalFile_compiler2 ad_$(Platform_arch_model)_format.cpp \
neliasso@4112 188 -additionalFile_compiler2 ad_$(Platform_arch_model)_gen.cpp \
neliasso@4112 189 -additionalFile_compiler2 ad_$(Platform_arch_model)_misc.cpp \
neliasso@4112 190 -additionalFile_compiler2 ad_$(Platform_arch_model)_peephole.cpp \
neliasso@4112 191 -additionalFile_compiler2 ad_$(Platform_arch_model)_pipeline.cpp \
neliasso@4112 192 -additionalFile_compiler2 adGlobals_$(Platform_arch_model).hpp \
neliasso@4112 193 -additionalFile_compiler2 dfa_$(Platform_arch_model).cpp \
stefank@2314 194 $(ProjectCreatorIDEOptionsIgnoreCompiler1:TARGET=compiler2)
duke@435 195
duke@435 196 # Add in the jvmti (JSR-163) options
duke@435 197 # NOTE: do not pull in jvmtiEnvRecommended.cpp. This file is generated
duke@435 198 # so the programmer can diff it with jvmtiEnv.cpp to be sure the
duke@435 199 # code merge was done correctly (@see jvmti.make and jvmtiEnvFill.java).
duke@435 200 # If so, they would then check it in as a new version of jvmtiEnv.cpp.
stefank@2314 201 ProjectCreatorIDEOptions=$(ProjectCreatorIDEOptions) \
neliasso@4112 202 -additionalFile jvmtiEnv.hpp \
neliasso@4112 203 -additionalFile jvmtiEnter.cpp \
neliasso@4112 204 -additionalFile jvmtiEnterTrace.cpp \
neliasso@4112 205 -additionalFile jvmti.h \
sla@5237 206 -additionalFile bytecodeInterpreterWithChecks.cpp \
sla@5237 207 -additionalFile traceEventClasses.hpp \
sla@5237 208 -additionalFile traceEventIds.hpp \
sla@5237 209 !if "$(OPENJDK)" != "true"
sla@5237 210 -additionalFile traceRequestables.hpp \
sla@5237 211 -additionalFile traceEventControl.hpp \
sla@5237 212 -additionalFile traceProducer.cpp \
sla@5237 213 !endif
sla@5237 214 -additionalFile traceTypes.hpp

mercurial