author | neliasso |
Wed, 10 Jul 2019 18:48:05 +0200 | |
changeset 55660 | fe5dcb38a26a |
parent 54548 | b057e09eef80 |
permissions | -rw-r--r-- |
25859 | 1 |
# |
54091
efb8569c95d5
8220504: Move definition of JAVA_VERSION_INFO_RESOURCE to Launcher-java.base.gmk
clanger
parents:
53683
diff
changeset
|
2 |
# Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved. |
25859 | 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. Oracle designates this |
|
8 |
# particular file as subject to the "Classpath" exception as provided |
|
9 |
# by Oracle in the LICENSE file that accompanied this code. |
|
10 |
# |
|
11 |
# This code is distributed in the hope that it will be useful, but WITHOUT |
|
12 |
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
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 |
include LauncherCommon.gmk |
|
27 |
||
47314 | 28 |
$(eval $(call IncludeCustomExtension, launcher/Launcher-java.base.gmk)) |
39504
96c700e62710
8003593: build-infra: Paths to optional platform-specific files should not be hardwired to src/closed
erikj
parents:
37905
diff
changeset
|
29 |
|
54091
efb8569c95d5
8220504: Move definition of JAVA_VERSION_INFO_RESOURCE to Launcher-java.base.gmk
clanger
parents:
53683
diff
changeset
|
30 |
JAVA_VERSION_INFO_RESOURCE := $(TOPDIR)/src/java.base/windows/native/launcher/java.rc |
efb8569c95d5
8220504: Move definition of JAVA_VERSION_INFO_RESOURCE to Launcher-java.base.gmk
clanger
parents:
53683
diff
changeset
|
31 |
|
49244
995a5556edfa
8199639: Introduce SetupJdkLibrary and SetupJdkExecutable
ihse
parents:
49070
diff
changeset
|
32 |
JAVA_RC_FLAGS += -I$(TOPDIR)/src/java.base/windows/native/common |
995a5556edfa
8199639: Introduce SetupJdkLibrary and SetupJdkExecutable
ihse
parents:
49070
diff
changeset
|
33 |
JAVA_RC_FLAGS += -I$(TOPDIR)/src/java.base/windows/native/launcher/icons |
33523 | 34 |
|
25859 | 35 |
################################################################################ |
36 |
||
37 |
# On windows, the debuginfo files get the same name as for java.dll. Build |
|
38 |
# into another dir and copy selectively so debuginfo for java.dll isn't |
|
39 |
# overwritten. |
|
33523 | 40 |
$(eval $(call SetupBuildLauncher, java, \ |
41 |
CFLAGS := -DEXPAND_CLASSPATH_WILDCARDS -DENABLE_ARG_FILES, \ |
|
49244
995a5556edfa
8199639: Introduce SetupJdkLibrary and SetupJdkExecutable
ihse
parents:
49070
diff
changeset
|
42 |
EXTRA_RC_FLAGS := $(JAVA_RC_FLAGS), \ |
33523 | 43 |
VERSION_INFO_RESOURCE := $(JAVA_VERSION_INFO_RESOURCE), \ |
44 |
OUTPUT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/java_objs, \ |
|
45 |
OPTIMIZATION := HIGH, \ |
|
46 |
)) |
|
25859 | 47 |
|
27565 | 48 |
$(SUPPORT_OUTPUTDIR)/modules_cmds/java.base/java$(EXE_SUFFIX): $(BUILD_LAUNCHER_java) |
52065
dea8a62cdfc3
8211724: Change mkdir -p to MakeDir macro where possible
erikj
parents:
51825
diff
changeset
|
49 |
$(call MakeTargetDir) |
25859 | 50 |
$(RM) $@ |
33523 | 51 |
$(CP) $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/java_objs/java$(EXE_SUFFIX) $@ |
25859 | 52 |
|
27565 | 53 |
TARGETS += $(SUPPORT_OUTPUTDIR)/modules_cmds/java.base/java$(EXE_SUFFIX) |
25859 | 54 |
|
53683 | 55 |
ifeq ($(call isTargetOs, windows), true) |
33523 | 56 |
$(eval $(call SetupBuildLauncher, javaw, \ |
57 |
CFLAGS := -DJAVAW -DEXPAND_CLASSPATH_WILDCARDS -DENABLE_ARG_FILES, \ |
|
49244
995a5556edfa
8199639: Introduce SetupJdkLibrary and SetupJdkExecutable
ihse
parents:
49070
diff
changeset
|
58 |
EXTRA_RC_FLAGS := $(JAVA_RC_FLAGS), \ |
33523 | 59 |
VERSION_INFO_RESOURCE := $(JAVA_VERSION_INFO_RESOURCE), \ |
60 |
)) |
|
25859 | 61 |
endif |
62 |
||
33523 | 63 |
$(eval $(call SetupBuildLauncher, keytool, \ |
64 |
MAIN_CLASS := sun.security.tools.keytool.Main, \ |
|
65 |
)) |
|
25859 | 66 |
|
67 |
################################################################################ |
|
68 |
||
53683 | 69 |
ifeq ($(call isTargetOs, linux), true) |
49244
995a5556edfa
8199639: Introduce SetupJdkLibrary and SetupJdkExecutable
ihse
parents:
49070
diff
changeset
|
70 |
$(eval $(call SetupJdkExecutable, BUILD_JEXEC, \ |
49070
d7859531621b
8198751: Refactor SetupNativeCompilation to take NAME and TYPE
ihse
parents:
47314
diff
changeset
|
71 |
NAME := jexec, \ |
47217 | 72 |
SRC := $(TOPDIR)/src/$(MODULE)/unix/native/launcher, \ |
25859 | 73 |
INCLUDE_FILES := jexec.c, \ |
74 |
OPTIMIZATION := LOW, \ |
|
75 |
CFLAGS := $(CFLAGS_JDKEXE) \ |
|
47217 | 76 |
-I$(TOPDIR)/src/$(MODULE)/share/native/libjli, \ |
25859 | 77 |
CFLAGS_linux := -fPIC, \ |
78 |
CFLAGS_solaris := -KPIC, \ |
|
34695
7a6cc9982d22
8142907: Integration of minor fixes from the build-infra project
ihse
parents:
33523
diff
changeset
|
79 |
LDFLAGS := $(LDFLAGS_JDKEXE), \ |
43890 | 80 |
OUTPUT_DIR := $(SUPPORT_OUTPUTDIR)/modules_libs/$(MODULE), \ |
81 |
)) |
|
25859 | 82 |
|
27565 | 83 |
TARGETS += $(BUILD_JEXEC) |
25859 | 84 |
endif |
85 |
||
86 |
################################################################################ |
|
87 |
||
53683 | 88 |
ifeq ($(call isTargetOs, macosx solaris aix linux), true) |
49244
995a5556edfa
8199639: Introduce SetupJdkLibrary and SetupJdkExecutable
ihse
parents:
49070
diff
changeset
|
89 |
$(eval $(call SetupJdkExecutable, BUILD_JSPAWNHELPER, \ |
49070
d7859531621b
8198751: Refactor SetupNativeCompilation to take NAME and TYPE
ihse
parents:
47314
diff
changeset
|
90 |
NAME := jspawnhelper, \ |
47217 | 91 |
SRC := $(TOPDIR)/src/$(MODULE)/unix/native/jspawnhelper, \ |
25859 | 92 |
OPTIMIZATION := LOW, \ |
47217 | 93 |
CFLAGS := $(CFLAGS_JDKEXE) -I$(TOPDIR)/src/$(MODULE)/unix/native/libjava, \ |
43618 | 94 |
EXTRA_OBJECT_FILES := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libjava/childproc.o, \ |
95 |
LDFLAGS := $(LDFLAGS_JDKEXE), \ |
|
96 |
OUTPUT_DIR := $(SUPPORT_OUTPUTDIR)/modules_libs/$(MODULE), \ |
|
97 |
)) |
|
25859 | 98 |
|
27565 | 99 |
TARGETS += $(BUILD_JSPAWNHELPER) |
25859 | 100 |
endif |
101 |
||
102 |
################################################################################ |