13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 # version 2 for more details (a copy is included in the LICENSE file that
15 # accompanied this code).
16 #
17 # You should have received a copy of the GNU General Public License version
18 # 2 along with this work; if not, write to the Free Software Foundation,
19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 #
21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 # or visit www.oracle.com if you need additional information or have any
23 # questions.
24 #
25
26 # This must be the first rule
27 default: all
28
29 include $(SPEC)
30 include MakeBase.gmk
31 include JavaCompilation.gmk
32 include SetupJavaCompilers.gmk
33
34 ifeq ($(call isTargetOs, windows), true)
35 # The next part is a bit hacky. We include the CompileJvm.gmk to be
36 # able to extact flags, but we do not wish to execute the rules.
37
38 # Use client as base for defines and includes
39 JVM_VARIANT=client
40
41 include HotspotCommon.gmk
42 include lib/CompileJvm.gmk
43
44 # Reset targets so we don't build libjvm.
45 TARGETS :=
46
47 # Helper macro to convert a unix path to a Windows path, suitable for
48 # inclusion in a command line.
49 ifeq ($(call isBuildOsEnv, windows.cygwin), true)
50 FixPath = \
51 $(strip $(subst \,\\,$(shell $(CYGPATH) -w $1)))
52 FixLinuxExecutable = \
132 -buildSpace $(call FixPath, $(IDE_OUTPUTDIR)) \
133 -makeBinary $(call FixLinuxExecutable, $(MAKE)) \
134 -makeOutput $(call FixPath, $(JDK_OUTPUTDIR)/bin/server) \
135 -absoluteInclude $(call FixPath, $(HOTSPOT_OUTPUTDIR)/variant-server/gensrc) \
136 -absoluteSrcInclude $(call FixPath, $(HOTSPOT_OUTPUTDIR)/variant-server/gensrc) \
137 $(EXTRACTED_DEFINES_client) \
138 $(EXTRACTED_INCLUDES_client) \
139 $(ADDITIONAL_VARIANT_ARGS) \
140 $(IGNORED_PLATFORMS_ARGS) \
141 #
142
143 VCPROJ_VARDEPS := $(PROJECT_CREATOR_CLASS) $(PROJECT_CREATOR_ARGS)
144 VCPROJ_VARDEPS_FILE := $(call DependOnVariable, VCPROJ_VARDEPS, \
145 $(VCPROJ_FILE).vardeps)
146
147 $(eval $(call SetupExecute, vcproj_file, \
148 INFO := Generating Visual Studio project file, \
149 DEPS := $(BUILD_PROJECT_CREATOR) $(VCPROJ_VARDEPS_FILE), \
150 OUTPUT_FILE := $(VCPROJ_FILE), \
151 COMMAND := $(PROJECT_CREATOR_TOOL) $(PROJECT_CREATOR_CLASS) \
152 $(PROJECT_CREATOR_ARGS) -projectFileName $(call FixPath, $(VCPROJ_FILE))) \
153 $(LOG_INFO), \
154 ))
155
156 TARGETS += $(vcproj_file_TARGET)
157
158 all: $(TARGETS)
159
160 else
161 all:
162 $(info Hotspot Visual Studio generation only supported on Windows)
163 endif
164
165 .PHONY: all
|
13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 # version 2 for more details (a copy is included in the LICENSE file that
15 # accompanied this code).
16 #
17 # You should have received a copy of the GNU General Public License version
18 # 2 along with this work; if not, write to the Free Software Foundation,
19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 #
21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 # or visit www.oracle.com if you need additional information or have any
23 # questions.
24 #
25
26 # This must be the first rule
27 default: all
28
29 include $(SPEC)
30 include MakeBase.gmk
31 include JavaCompilation.gmk
32 include SetupJavaCompilers.gmk
33 include Execute.gmk
34
35 ifeq ($(call isTargetOs, windows), true)
36 # The next part is a bit hacky. We include the CompileJvm.gmk to be
37 # able to extact flags, but we do not wish to execute the rules.
38
39 # Use client as base for defines and includes
40 JVM_VARIANT=client
41
42 include HotspotCommon.gmk
43 include lib/CompileJvm.gmk
44
45 # Reset targets so we don't build libjvm.
46 TARGETS :=
47
48 # Helper macro to convert a unix path to a Windows path, suitable for
49 # inclusion in a command line.
50 ifeq ($(call isBuildOsEnv, windows.cygwin), true)
51 FixPath = \
52 $(strip $(subst \,\\,$(shell $(CYGPATH) -w $1)))
53 FixLinuxExecutable = \
133 -buildSpace $(call FixPath, $(IDE_OUTPUTDIR)) \
134 -makeBinary $(call FixLinuxExecutable, $(MAKE)) \
135 -makeOutput $(call FixPath, $(JDK_OUTPUTDIR)/bin/server) \
136 -absoluteInclude $(call FixPath, $(HOTSPOT_OUTPUTDIR)/variant-server/gensrc) \
137 -absoluteSrcInclude $(call FixPath, $(HOTSPOT_OUTPUTDIR)/variant-server/gensrc) \
138 $(EXTRACTED_DEFINES_client) \
139 $(EXTRACTED_INCLUDES_client) \
140 $(ADDITIONAL_VARIANT_ARGS) \
141 $(IGNORED_PLATFORMS_ARGS) \
142 #
143
144 VCPROJ_VARDEPS := $(PROJECT_CREATOR_CLASS) $(PROJECT_CREATOR_ARGS)
145 VCPROJ_VARDEPS_FILE := $(call DependOnVariable, VCPROJ_VARDEPS, \
146 $(VCPROJ_FILE).vardeps)
147
148 $(eval $(call SetupExecute, vcproj_file, \
149 INFO := Generating Visual Studio project file, \
150 DEPS := $(BUILD_PROJECT_CREATOR) $(VCPROJ_VARDEPS_FILE), \
151 OUTPUT_FILE := $(VCPROJ_FILE), \
152 COMMAND := $(PROJECT_CREATOR_TOOL) $(PROJECT_CREATOR_CLASS) \
153 $(PROJECT_CREATOR_ARGS) -projectFileName $(call FixPath, $(VCPROJ_FILE)) \
154 $(LOG_INFO), \
155 ))
156
157 TARGETS += $(vcproj_file_TARGET)
158
159 all: $(TARGETS)
160
161 else
162 all:
163 $(info Hotspot Visual Studio generation only supported on Windows)
164 endif
165
166 .PHONY: all
|