1 #
2 # Copyright (c) 2014, 2017, Oracle and/or its affiliates. All rights reserved.
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
57 java.prefs \
58 java.rmi \
59 java.security.sasl \
60 java.xml \
61 jdk.internal.vm.ci \
62 jdk.management \
63 jdk.management.agent \
64 jdk.net \
65 jdk.sctp \
66 jdk.unsupported \
67 #
68
69 # to be deprivileged
70 BOOT_MODULES += \
71 jdk.naming.rmi \
72 #
73
74 # Modules that directly or indirectly requiring upgradeable modules
75 # should carefully be considered if it should be upgradeable or not.
76 UPGRADEABLE_MODULES += \
77 java.activation \
78 java.compiler \
79 java.corba \
80 java.transaction \
81 java.xml.bind \
82 java.xml.ws \
83 java.xml.ws.annotation \
84 jdk.internal.vm.compiler \
85 #
86
87 UPGRADEABLE_TOOL_MODULES += \
88 jdk.xml.bind \
89 jdk.xml.ws \
90 #
91
92 AGGREGATOR_MODULES += \
93 java.se \
94 java.se.ee \
95 #
96
97 PLATFORM_MODULES += \
98 $(UPGRADEABLE_MODULES) \
99 $(AGGREGATOR_MODULES)
100 #
101
102 PLATFORM_MODULES += \
103 java.scripting \
104 java.security.jgss \
105 java.smartcardio \
106 java.sql \
107 java.sql.rowset \
108 java.xml.crypto \
109 jdk.accessibility \
110 jdk.charsets \
111 jdk.crypto.cryptoki \
112 jdk.crypto.ec \
113 jdk.dynalink \
114 jdk.httpserver \
126
127 ifeq ($(OPENJDK_TARGET_OS), windows)
128 PLATFORM_MODULES += jdk.crypto.mscapi
129 endif
130
131 ifeq ($(OPENJDK_TARGET_OS), solaris)
132 PLATFORM_MODULES += jdk.crypto.ucrypto
133 endif
134
135 JRE_TOOL_MODULES += \
136 jdk.jdwp.agent \
137 jdk.pack \
138 jdk.scripting.nashorn.shell \
139 #
140
141 ################################################################################
142
143 # DOCS_MODULES defines the root modules for javadoc generation.
144 # All of their `require transitive` modules directly and indirectly will be included.
145 DOCS_MODULES += \
146 java.se.ee \
147 java.smartcardio \
148 jdk.accessibility \
149 jdk.attach \
150 jdk.charsets \
151 jdk.compiler \
152 jdk.crypto.cryptoki \
153 jdk.crypto.ec \
154 jdk.dynalink \
155 jdk.editpad \
156 jdk.hotspot.agent \
157 jdk.httpserver \
158 jdk.incubator.httpclient \
159 jdk.jartool \
160 jdk.javadoc \
161 jdk.jcmd \
162 jdk.jconsole \
163 jdk.jdeps \
164 jdk.jdi \
165 jdk.jdwp.agent \
166 jdk.jlink \
178 jdk.scripting.nashorn \
179 jdk.sctp \
180 jdk.security.auth \
181 jdk.security.jgss \
182 jdk.xml.dom \
183 jdk.zipfs \
184 #
185
186 # These modules are included in the interim image which is used to run profiling
187 # before building the real images.
188 INTERIM_IMAGE_MODULES := java.base java.logging
189
190 LANGTOOLS_MODULES := \
191 java.compiler \
192 jdk.compiler \
193 jdk.javadoc \
194 jdk.jdeps \
195 jdk.jshell \
196 #
197
198 CORBA_MODULES := java.corba
199
200 HOTSPOT_MODULES := \
201 jdk.aot \
202 jdk.hotspot.agent \
203 jdk.internal.vm.ci \
204 jdk.internal.vm.compiler \
205 #
206
207 ################################################################################
208 # Some platforms don't have the serviceability agent
209
210 ifeq ($(INCLUDE_SA), false)
211 MODULES_FILTER += jdk.hotspot.agent
212 endif
213
214 ################################################################################
215 # Filter out Graal specific modules if Graal build is disabled
216
217 ifeq ($(INCLUDE_GRAAL), false)
218 MODULES_FILTER += jdk.internal.vm.compiler
219 MODULES_FILTER += jdk.internal.vm.compiler.management
378 FindIndirectExportsForModule = \
379 $(TRANSITIVE_MODULES_$(strip $1))
380
381 # Finds indirect exported modules transitively in 3 levels for a given module.
382 # Param 1: Module to find indirect exported modules for.
383 FindTransitiveIndirectDepsForModule = \
384 $(sort $(call FindIndirectExportsForModule, $1) \
385 $(foreach m, $(call FindIndirectExportsForModule, $1), \
386 $(call FindIndirectExportsForModule, $m) \
387 $(foreach n, $(call FindIndirectExportsForModule, $m), \
388 $(call FindIndirectExportsForModule, $n))))
389
390 # Finds indirect exported modules transitively in 3 levels for a set of modules.
391 # Param 1: List of modules to find indirect exported modules for.
392 FindTransitiveIndirectDepsForModules = \
393 $(sort $(foreach m, $1, $(call FindTransitiveIndirectDepsForModule, $m)))
394
395 # Upgradeable modules are those that are either defined as upgradeable or that
396 # require an upradeable module.
397 FindAllUpgradeableModules = \
398 $(sort $(filter-out $(MODULES_FILTER), $(UPGRADEABLE_MODULES) $(UPGRADEABLE_TOOL_MODULES)))
399
400
401 ################################################################################
402
403 LEGAL_SUBDIRS += $(OPENJDK_TARGET_OS)/legal
404 ifneq ($(OPENJDK_TARGET_OS), $(OPENJDK_TARGET_OS_TYPE))
405 LEGAL_SUBDIRS += $(OPENJDK_TARGET_OS_TYPE)/legal
406 endif
407 LEGAL_SUBDIRS += share/legal
408
409 # Find all legal dirs for a particular module
410 # $1 - Module to find legal dirs for
411 FindModuleLegalDirs = \
412 $(strip $(wildcard \
413 $(addsuffix /$(strip $1), $(SUPPORT_OUTPUTDIR)/modules_legal \
414 $(IMPORT_MODULES_LEGAL)) \
415 $(foreach sub, $(LEGAL_SUBDIRS), $(addsuffix /$(strip $1)/$(sub), $(TOP_SRC_DIRS))) \
416 ))
417
418 ################################################################################
|
1 #
2 # Copyright (c) 2014, 2018, Oracle and/or its affiliates. All rights reserved.
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
57 java.prefs \
58 java.rmi \
59 java.security.sasl \
60 java.xml \
61 jdk.internal.vm.ci \
62 jdk.management \
63 jdk.management.agent \
64 jdk.net \
65 jdk.sctp \
66 jdk.unsupported \
67 #
68
69 # to be deprivileged
70 BOOT_MODULES += \
71 jdk.naming.rmi \
72 #
73
74 # Modules that directly or indirectly requiring upgradeable modules
75 # should carefully be considered if it should be upgradeable or not.
76 UPGRADEABLE_MODULES += \
77 java.compiler \
78 jdk.internal.vm.compiler \
79 #
80
81
82 AGGREGATOR_MODULES += \
83 java.se \
84 #
85
86 PLATFORM_MODULES += \
87 $(UPGRADEABLE_MODULES) \
88 $(AGGREGATOR_MODULES)
89 #
90
91 PLATFORM_MODULES += \
92 java.scripting \
93 java.security.jgss \
94 java.smartcardio \
95 java.sql \
96 java.sql.rowset \
97 java.xml.crypto \
98 jdk.accessibility \
99 jdk.charsets \
100 jdk.crypto.cryptoki \
101 jdk.crypto.ec \
102 jdk.dynalink \
103 jdk.httpserver \
115
116 ifeq ($(OPENJDK_TARGET_OS), windows)
117 PLATFORM_MODULES += jdk.crypto.mscapi
118 endif
119
120 ifeq ($(OPENJDK_TARGET_OS), solaris)
121 PLATFORM_MODULES += jdk.crypto.ucrypto
122 endif
123
124 JRE_TOOL_MODULES += \
125 jdk.jdwp.agent \
126 jdk.pack \
127 jdk.scripting.nashorn.shell \
128 #
129
130 ################################################################################
131
132 # DOCS_MODULES defines the root modules for javadoc generation.
133 # All of their `require transitive` modules directly and indirectly will be included.
134 DOCS_MODULES += \
135 java.se \
136 java.smartcardio \
137 jdk.accessibility \
138 jdk.attach \
139 jdk.charsets \
140 jdk.compiler \
141 jdk.crypto.cryptoki \
142 jdk.crypto.ec \
143 jdk.dynalink \
144 jdk.editpad \
145 jdk.hotspot.agent \
146 jdk.httpserver \
147 jdk.incubator.httpclient \
148 jdk.jartool \
149 jdk.javadoc \
150 jdk.jcmd \
151 jdk.jconsole \
152 jdk.jdeps \
153 jdk.jdi \
154 jdk.jdwp.agent \
155 jdk.jlink \
167 jdk.scripting.nashorn \
168 jdk.sctp \
169 jdk.security.auth \
170 jdk.security.jgss \
171 jdk.xml.dom \
172 jdk.zipfs \
173 #
174
175 # These modules are included in the interim image which is used to run profiling
176 # before building the real images.
177 INTERIM_IMAGE_MODULES := java.base java.logging
178
179 LANGTOOLS_MODULES := \
180 java.compiler \
181 jdk.compiler \
182 jdk.javadoc \
183 jdk.jdeps \
184 jdk.jshell \
185 #
186
187 HOTSPOT_MODULES := \
188 jdk.aot \
189 jdk.hotspot.agent \
190 jdk.internal.vm.ci \
191 jdk.internal.vm.compiler \
192 #
193
194 ################################################################################
195 # Some platforms don't have the serviceability agent
196
197 ifeq ($(INCLUDE_SA), false)
198 MODULES_FILTER += jdk.hotspot.agent
199 endif
200
201 ################################################################################
202 # Filter out Graal specific modules if Graal build is disabled
203
204 ifeq ($(INCLUDE_GRAAL), false)
205 MODULES_FILTER += jdk.internal.vm.compiler
206 MODULES_FILTER += jdk.internal.vm.compiler.management
365 FindIndirectExportsForModule = \
366 $(TRANSITIVE_MODULES_$(strip $1))
367
368 # Finds indirect exported modules transitively in 3 levels for a given module.
369 # Param 1: Module to find indirect exported modules for.
370 FindTransitiveIndirectDepsForModule = \
371 $(sort $(call FindIndirectExportsForModule, $1) \
372 $(foreach m, $(call FindIndirectExportsForModule, $1), \
373 $(call FindIndirectExportsForModule, $m) \
374 $(foreach n, $(call FindIndirectExportsForModule, $m), \
375 $(call FindIndirectExportsForModule, $n))))
376
377 # Finds indirect exported modules transitively in 3 levels for a set of modules.
378 # Param 1: List of modules to find indirect exported modules for.
379 FindTransitiveIndirectDepsForModules = \
380 $(sort $(foreach m, $1, $(call FindTransitiveIndirectDepsForModule, $m)))
381
382 # Upgradeable modules are those that are either defined as upgradeable or that
383 # require an upradeable module.
384 FindAllUpgradeableModules = \
385 $(sort $(filter-out $(MODULES_FILTER), $(UPGRADEABLE_MODULES)))
386
387
388 ################################################################################
389
390 LEGAL_SUBDIRS += $(OPENJDK_TARGET_OS)/legal
391 ifneq ($(OPENJDK_TARGET_OS), $(OPENJDK_TARGET_OS_TYPE))
392 LEGAL_SUBDIRS += $(OPENJDK_TARGET_OS_TYPE)/legal
393 endif
394 LEGAL_SUBDIRS += share/legal
395
396 # Find all legal dirs for a particular module
397 # $1 - Module to find legal dirs for
398 FindModuleLegalDirs = \
399 $(strip $(wildcard \
400 $(addsuffix /$(strip $1), $(SUPPORT_OUTPUTDIR)/modules_legal \
401 $(IMPORT_MODULES_LEGAL)) \
402 $(foreach sub, $(LEGAL_SUBDIRS), $(addsuffix /$(strip $1)/$(sub), $(TOP_SRC_DIRS))) \
403 ))
404
405 ################################################################################
|