author | herrick |
Thu, 28 Mar 2019 13:49:38 -0400 | |
branch | JDK-8200758-branch |
changeset 57292 | 7a683c461b80 |
parent 57182 | 2d71241be958 |
child 57399 | 747416ba316d |
permissions | -rw-r--r-- |
26116
f051bd253364
8055095: Improve "do nothing" incremental build performance after modularized source code integration
erikj
parents:
diff
changeset
|
1 |
# |
57106
ea870b9ce89a
8216492: Update copyright of all new jpackage fils to 2019
kcr
parents:
57099
diff
changeset
|
2 |
# Copyright (c) 2014, 2019, Oracle and/or its affiliates. All rights reserved. |
26116
f051bd253364
8055095: Improve "do nothing" incremental build performance after modularized source code integration
erikj
parents:
diff
changeset
|
3 |
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
f051bd253364
8055095: Improve "do nothing" incremental build performance after modularized source code integration
erikj
parents:
diff
changeset
|
4 |
# |
f051bd253364
8055095: Improve "do nothing" incremental build performance after modularized source code integration
erikj
parents:
diff
changeset
|
5 |
# This code is free software; you can redistribute it and/or modify it |
f051bd253364
8055095: Improve "do nothing" incremental build performance after modularized source code integration
erikj
parents:
diff
changeset
|
6 |
# under the terms of the GNU General Public License version 2 only, as |
f051bd253364
8055095: Improve "do nothing" incremental build performance after modularized source code integration
erikj
parents:
diff
changeset
|
7 |
# published by the Free Software Foundation. Oracle designates this |
f051bd253364
8055095: Improve "do nothing" incremental build performance after modularized source code integration
erikj
parents:
diff
changeset
|
8 |
# particular file as subject to the "Classpath" exception as provided |
f051bd253364
8055095: Improve "do nothing" incremental build performance after modularized source code integration
erikj
parents:
diff
changeset
|
9 |
# by Oracle in the LICENSE file that accompanied this code. |
f051bd253364
8055095: Improve "do nothing" incremental build performance after modularized source code integration
erikj
parents:
diff
changeset
|
10 |
# |
f051bd253364
8055095: Improve "do nothing" incremental build performance after modularized source code integration
erikj
parents:
diff
changeset
|
11 |
# This code is distributed in the hope that it will be useful, but WITHOUT |
f051bd253364
8055095: Improve "do nothing" incremental build performance after modularized source code integration
erikj
parents:
diff
changeset
|
12 |
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
f051bd253364
8055095: Improve "do nothing" incremental build performance after modularized source code integration
erikj
parents:
diff
changeset
|
13 |
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
f051bd253364
8055095: Improve "do nothing" incremental build performance after modularized source code integration
erikj
parents:
diff
changeset
|
14 |
# version 2 for more details (a copy is included in the LICENSE file that |
f051bd253364
8055095: Improve "do nothing" incremental build performance after modularized source code integration
erikj
parents:
diff
changeset
|
15 |
# accompanied this code). |
f051bd253364
8055095: Improve "do nothing" incremental build performance after modularized source code integration
erikj
parents:
diff
changeset
|
16 |
# |
f051bd253364
8055095: Improve "do nothing" incremental build performance after modularized source code integration
erikj
parents:
diff
changeset
|
17 |
# You should have received a copy of the GNU General Public License version |
f051bd253364
8055095: Improve "do nothing" incremental build performance after modularized source code integration
erikj
parents:
diff
changeset
|
18 |
# 2 along with this work; if not, write to the Free Software Foundation, |
f051bd253364
8055095: Improve "do nothing" incremental build performance after modularized source code integration
erikj
parents:
diff
changeset
|
19 |
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
f051bd253364
8055095: Improve "do nothing" incremental build performance after modularized source code integration
erikj
parents:
diff
changeset
|
20 |
# |
f051bd253364
8055095: Improve "do nothing" incremental build performance after modularized source code integration
erikj
parents:
diff
changeset
|
21 |
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
f051bd253364
8055095: Improve "do nothing" incremental build performance after modularized source code integration
erikj
parents:
diff
changeset
|
22 |
# or visit www.oracle.com if you need additional information or have any |
f051bd253364
8055095: Improve "do nothing" incremental build performance after modularized source code integration
erikj
parents:
diff
changeset
|
23 |
# questions. |
f051bd253364
8055095: Improve "do nothing" incremental build performance after modularized source code integration
erikj
parents:
diff
changeset
|
24 |
# |
f051bd253364
8055095: Improve "do nothing" incremental build performance after modularized source code integration
erikj
parents:
diff
changeset
|
25 |
|
f051bd253364
8055095: Improve "do nothing" incremental build performance after modularized source code integration
erikj
parents:
diff
changeset
|
26 |
ifndef _MODULES_GMK |
f051bd253364
8055095: Improve "do nothing" incremental build performance after modularized source code integration
erikj
parents:
diff
changeset
|
27 |
_MODULES_GMK := 1 |
f051bd253364
8055095: Improve "do nothing" incremental build performance after modularized source code integration
erikj
parents:
diff
changeset
|
28 |
|
36543
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
29 |
################################################################################ |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
30 |
# |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
31 |
# BOOT_MODULES are modules defined by the boot loader |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
32 |
# PLATFORM_MODULES are modules defined by the platform loader |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
33 |
# JRE_TOOL_MODULES are tools included in JRE and defined by the application loader |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
34 |
# |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
35 |
# All other modules not declared below are defined by the application loader |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
36 |
# and are not included in JRE. |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
37 |
|
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
38 |
BOOT_MODULES := |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
39 |
PLATFORM_MODULES := |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
40 |
JRE_TOOL_MODULES := |
37764
63e0379dd186
8154956: Module system implementation refresh (4/2016)
alanb
parents:
37030
diff
changeset
|
41 |
UPGRADEABLE_MODULES := |
63e0379dd186
8154956: Module system implementation refresh (4/2016)
alanb
parents:
37030
diff
changeset
|
42 |
AGGREGATOR_MODULES := |
44725
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
43 |
DOCS_MODULES := |
36543
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
44 |
|
36506 | 45 |
# Hook to include the corresponding custom file, if present. |
47314 | 46 |
$(eval $(call IncludeCustomExtension, common/Modules.gmk)) |
36506 | 47 |
|
36543
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
48 |
BOOT_MODULES += \ |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
49 |
java.base \ |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
50 |
java.datatransfer \ |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
51 |
java.desktop \ |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
52 |
java.instrument \ |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
53 |
java.logging \ |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
54 |
java.management \ |
43384
0a0861e1db57
8173607: JMX RMI connector should be in its own module
dfuchs
parents:
43382
diff
changeset
|
55 |
java.management.rmi \ |
36543
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
56 |
java.naming \ |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
57 |
java.prefs \ |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
58 |
java.rmi \ |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
59 |
java.security.sasl \ |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
60 |
java.xml \ |
44725
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
61 |
jdk.internal.vm.ci \ |
50113 | 62 |
jdk.jfr \ |
36543
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
63 |
jdk.management \ |
50113 | 64 |
jdk.management.jfr \ |
43382
8e0c4b44e4c0
8173608: Separate JDK management agent from java.management module
mchung
parents:
43287
diff
changeset
|
65 |
jdk.management.agent \ |
37650
ef6c24163cb2
8044773: Refactor jdk.net API so that it can be moved out of the base module
chegar
parents:
37030
diff
changeset
|
66 |
jdk.net \ |
36543
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
67 |
jdk.sctp \ |
36793 | 68 |
jdk.unsupported \ |
36543
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
69 |
# |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
70 |
|
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
71 |
# to be deprivileged |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
72 |
BOOT_MODULES += \ |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
73 |
jdk.naming.rmi \ |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
74 |
# |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
75 |
|
45612 | 76 |
# Modules that directly or indirectly requiring upgradeable modules |
77 |
# should carefully be considered if it should be upgradeable or not. |
|
36543
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
78 |
UPGRADEABLE_MODULES += \ |
45612 | 79 |
java.compiler \ |
50587 | 80 |
jdk.aot \ |
44830 | 81 |
jdk.internal.vm.compiler \ |
49801
466d4df248a6
8187490: HotSpotGraalMBean should be moved to Graal management module
dnsimon
parents:
49765
diff
changeset
|
82 |
jdk.internal.vm.compiler.management \ |
36543
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
83 |
# |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
84 |
|
37975
551c5d86de79
8155786: Determine modules depending on upgradeable modules directly and indirectly
erikj
parents:
37973
diff
changeset
|
85 |
|
36543
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
86 |
AGGREGATOR_MODULES += \ |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
87 |
java.se \ |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
88 |
# |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
89 |
|
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
90 |
PLATFORM_MODULES += \ |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
91 |
$(UPGRADEABLE_MODULES) \ |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
92 |
$(AGGREGATOR_MODULES) |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
93 |
# |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
94 |
|
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
95 |
PLATFORM_MODULES += \ |
49765 | 96 |
java.net.http \ |
37973 | 97 |
java.scripting \ |
39820
428c076d7ddf
8159528: Deprivilege java.security.jgss, jdk.security.jgss and jdk.security.auth
weijun
parents:
39817
diff
changeset
|
98 |
java.security.jgss \ |
39612
00cf8f38916f
8161171: Missed the make/common/Modules.gmk file when integrating JDK-8154191
valeriep
parents:
38626
diff
changeset
|
99 |
java.smartcardio \ |
38626
68d286c03952
8154189: Deprivilege java.sql and java.sql.rowset module
lancea
parents:
37975
diff
changeset
|
100 |
java.sql \ |
68d286c03952
8154189: Deprivilege java.sql and java.sql.rowset module
lancea
parents:
37975
diff
changeset
|
101 |
java.sql.rowset \ |
49126
f29637bb390e
8197533: Move javax.transaction.xa to its own module
lancea
parents:
48841
diff
changeset
|
102 |
java.transaction.xa \ |
39817 | 103 |
java.xml.crypto \ |
36543
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
104 |
jdk.accessibility \ |
37769 | 105 |
jdk.charsets \ |
44725
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
106 |
jdk.crypto.cryptoki \ |
36543
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
107 |
jdk.crypto.ec \ |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
108 |
jdk.dynalink \ |
47267 | 109 |
jdk.httpserver \ |
36543
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
110 |
jdk.jsobject \ |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
111 |
jdk.localedata \ |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
112 |
jdk.naming.dns \ |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
113 |
jdk.scripting.nashorn \ |
39820
428c076d7ddf
8159528: Deprivilege java.security.jgss, jdk.security.jgss and jdk.security.auth
weijun
parents:
39817
diff
changeset
|
114 |
jdk.security.auth \ |
428c076d7ddf
8159528: Deprivilege java.security.jgss, jdk.security.jgss and jdk.security.auth
weijun
parents:
39817
diff
changeset
|
115 |
jdk.security.jgss \ |
428c076d7ddf
8159528: Deprivilege java.security.jgss, jdk.security.jgss and jdk.security.auth
weijun
parents:
39817
diff
changeset
|
116 |
jdk.xml.dom \ |
36543
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
117 |
jdk.zipfs \ |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
118 |
# |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
119 |
|
53683 | 120 |
ifeq ($(call isTargetOs, windows), true) |
44725
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
121 |
PLATFORM_MODULES += jdk.crypto.mscapi |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
122 |
endif |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
123 |
|
53683 | 124 |
ifeq ($(call isTargetOs, solaris), true) |
44725
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
125 |
PLATFORM_MODULES += jdk.crypto.ucrypto |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
126 |
endif |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
127 |
|
36543
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
128 |
JRE_TOOL_MODULES += \ |
36790 | 129 |
jdk.jdwp.agent \ |
42514 | 130 |
jdk.pack \ |
57039 | 131 |
jdk.jpackage \ |
36543
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
132 |
jdk.scripting.nashorn.shell \ |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
133 |
# |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
134 |
|
44725
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
135 |
################################################################################ |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
136 |
|
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
137 |
# DOCS_MODULES defines the root modules for javadoc generation. |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
138 |
# All of their `require transitive` modules directly and indirectly will be included. |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
139 |
DOCS_MODULES += \ |
48841 | 140 |
java.se \ |
44725
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
141 |
java.smartcardio \ |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
142 |
jdk.accessibility \ |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
143 |
jdk.attach \ |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
144 |
jdk.charsets \ |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
145 |
jdk.compiler \ |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
146 |
jdk.crypto.cryptoki \ |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
147 |
jdk.crypto.ec \ |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
148 |
jdk.dynalink \ |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
149 |
jdk.editpad \ |
45232
1e2ad0809162
8175845: Provide javadoc descriptions for jdk.hotspot.agent module
uvangapally
parents:
45098
diff
changeset
|
150 |
jdk.hotspot.agent \ |
44725
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
151 |
jdk.httpserver \ |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
152 |
jdk.jartool \ |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
153 |
jdk.javadoc \ |
44730 | 154 |
jdk.jcmd \ |
44725
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
155 |
jdk.jconsole \ |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
156 |
jdk.jdeps \ |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
157 |
jdk.jdi \ |
44730 | 158 |
jdk.jdwp.agent \ |
50113 | 159 |
jdk.jfr \ |
44725
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
160 |
jdk.jlink \ |
44730 | 161 |
jdk.jsobject \ |
44725
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
162 |
jdk.jshell \ |
44730 | 163 |
jdk.jstatd \ |
44725
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
164 |
jdk.localedata \ |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
165 |
jdk.management \ |
44730 | 166 |
jdk.management.agent \ |
50113 | 167 |
jdk.management.jfr \ |
44725
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
168 |
jdk.naming.dns \ |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
169 |
jdk.naming.rmi \ |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
170 |
jdk.net \ |
44730 | 171 |
jdk.pack \ |
57039 | 172 |
jdk.jpackage \ |
44730 | 173 |
jdk.rmic \ |
44725
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
174 |
jdk.scripting.nashorn \ |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
175 |
jdk.sctp \ |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
176 |
jdk.security.auth \ |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
177 |
jdk.security.jgss \ |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
178 |
jdk.xml.dom \ |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
179 |
jdk.zipfs \ |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
180 |
# |
36543
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
181 |
|
37770 | 182 |
# These modules are included in the interim image which is used to run profiling |
183 |
# before building the real images. |
|
184 |
INTERIM_IMAGE_MODULES := java.base java.logging |
|
185 |
||
47217 | 186 |
LANGTOOLS_MODULES := \ |
187 |
java.compiler \ |
|
188 |
jdk.compiler \ |
|
189 |
jdk.javadoc \ |
|
190 |
jdk.jdeps \ |
|
191 |
jdk.jshell \ |
|
192 |
# |
|
193 |
||
194 |
HOTSPOT_MODULES := \ |
|
195 |
jdk.aot \ |
|
196 |
jdk.hotspot.agent \ |
|
197 |
jdk.internal.vm.ci \ |
|
198 |
jdk.internal.vm.compiler \ |
|
49801
466d4df248a6
8187490: HotSpotGraalMBean should be moved to Graal management module
dnsimon
parents:
49765
diff
changeset
|
199 |
jdk.internal.vm.compiler.management \ |
47217 | 200 |
# |
201 |
||
26116
f051bd253364
8055095: Improve "do nothing" incremental build performance after modularized source code integration
erikj
parents:
diff
changeset
|
202 |
################################################################################ |
34116
b746e382da18
8142336: Convert the SA agent build to modular build-infra makefiles
erikj
parents:
33045
diff
changeset
|
203 |
# Some platforms don't have the serviceability agent |
36543
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
204 |
|
34116
b746e382da18
8142336: Convert the SA agent build to modular build-infra makefiles
erikj
parents:
33045
diff
changeset
|
205 |
ifeq ($(INCLUDE_SA), false) |
b746e382da18
8142336: Convert the SA agent build to modular build-infra makefiles
erikj
parents:
33045
diff
changeset
|
206 |
MODULES_FILTER += jdk.hotspot.agent |
b746e382da18
8142336: Convert the SA agent build to modular build-infra makefiles
erikj
parents:
33045
diff
changeset
|
207 |
endif |
b746e382da18
8142336: Convert the SA agent build to modular build-infra makefiles
erikj
parents:
33045
diff
changeset
|
208 |
|
b746e382da18
8142336: Convert the SA agent build to modular build-infra makefiles
erikj
parents:
33045
diff
changeset
|
209 |
################################################################################ |
51030
33be1da67b11
8206135: Building jvm with AOT but without JVMCI should fail at configure time
kvn
parents:
50587
diff
changeset
|
210 |
# Filter out jvmci specific modules if jvmci is disabled |
33be1da67b11
8206135: Building jvm with AOT but without JVMCI should fail at configure time
kvn
parents:
50587
diff
changeset
|
211 |
|
33be1da67b11
8206135: Building jvm with AOT but without JVMCI should fail at configure time
kvn
parents:
50587
diff
changeset
|
212 |
ifeq ($(INCLUDE_JVMCI), false) |
33be1da67b11
8206135: Building jvm with AOT but without JVMCI should fail at configure time
kvn
parents:
50587
diff
changeset
|
213 |
MODULES_FILTER += jdk.internal.vm.ci |
33be1da67b11
8206135: Building jvm with AOT but without JVMCI should fail at configure time
kvn
parents:
50587
diff
changeset
|
214 |
endif |
33be1da67b11
8206135: Building jvm with AOT but without JVMCI should fail at configure time
kvn
parents:
50587
diff
changeset
|
215 |
|
33be1da67b11
8206135: Building jvm with AOT but without JVMCI should fail at configure time
kvn
parents:
50587
diff
changeset
|
216 |
################################################################################ |
33be1da67b11
8206135: Building jvm with AOT but without JVMCI should fail at configure time
kvn
parents:
50587
diff
changeset
|
217 |
# Filter out Graal specific modules if Graal is disabled |
42531
37ee95196b17
8166417: Integrate Graal-core into JDK for AOT compiler
kvn
parents:
42289
diff
changeset
|
218 |
|
37ee95196b17
8166417: Integrate Graal-core into JDK for AOT compiler
kvn
parents:
42289
diff
changeset
|
219 |
ifeq ($(INCLUDE_GRAAL), false) |
43925 | 220 |
MODULES_FILTER += jdk.internal.vm.compiler |
47557
8b2054b7d02c
8182701: Modify JVMCI to allow Graal Compiler to expose platform MBean
jtulach
parents:
47224
diff
changeset
|
221 |
MODULES_FILTER += jdk.internal.vm.compiler.management |
42531
37ee95196b17
8166417: Integrate Graal-core into JDK for AOT compiler
kvn
parents:
42289
diff
changeset
|
222 |
endif |
37ee95196b17
8166417: Integrate Graal-core into JDK for AOT compiler
kvn
parents:
42289
diff
changeset
|
223 |
|
37ee95196b17
8166417: Integrate Graal-core into JDK for AOT compiler
kvn
parents:
42289
diff
changeset
|
224 |
################################################################################ |
42532 | 225 |
# Filter out aot specific modules if aot is disabled |
226 |
||
227 |
ifeq ($(ENABLE_AOT), false) |
|
228 |
MODULES_FILTER += jdk.aot |
|
229 |
endif |
|
230 |
||
231 |
################################################################################ |
|
57039 | 232 |
# jpackage is only on windows, macosx, and linux |
56821
565d54ca1f41
8206005: Move prototype jpackager from closed sandbox to open sandbox
herrick
parents:
50587
diff
changeset
|
233 |
|
57027
124983f48645
8212936: Makefile and other improvements for jpackager
herrick
parents:
57017
diff
changeset
|
234 |
ifeq ($(filter $(OPENJDK_TARGET_OS), windows macosx linux), ) |
57039 | 235 |
MODULES_FILTER += jdk.jpackage |
56821
565d54ca1f41
8206005: Move prototype jpackager from closed sandbox to open sandbox
herrick
parents:
50587
diff
changeset
|
236 |
endif |
565d54ca1f41
8206005: Move prototype jpackager from closed sandbox to open sandbox
herrick
parents:
50587
diff
changeset
|
237 |
|
565d54ca1f41
8206005: Move prototype jpackager from closed sandbox to open sandbox
herrick
parents:
50587
diff
changeset
|
238 |
################################################################################ |
26116
f051bd253364
8055095: Improve "do nothing" incremental build performance after modularized source code integration
erikj
parents:
diff
changeset
|
239 |
# Module list macros |
f051bd253364
8055095: Improve "do nothing" incremental build performance after modularized source code integration
erikj
parents:
diff
changeset
|
240 |
|
37030 | 241 |
# Use append so that the custom extension may add to these variables |
36506 | 242 |
|
37030 | 243 |
GENERATED_SRC_DIRS += \ |
244 |
$(SUPPORT_OUTPUTDIR)/gensrc \ |
|
245 |
# |
|
246 |
||
247 |
TOP_SRC_DIRS += \ |
|
47217 | 248 |
$(TOPDIR)/src \ |
26116
f051bd253364
8055095: Improve "do nothing" incremental build performance after modularized source code integration
erikj
parents:
diff
changeset
|
249 |
# |
f051bd253364
8055095: Improve "do nothing" incremental build performance after modularized source code integration
erikj
parents:
diff
changeset
|
250 |
|
37030 | 251 |
SRC_SUBDIRS += $(OPENJDK_TARGET_OS)/classes |
252 |
ifneq ($(OPENJDK_TARGET_OS), $(OPENJDK_TARGET_OS_TYPE)) |
|
253 |
SRC_SUBDIRS += $(OPENJDK_TARGET_OS_TYPE)/classes |
|
254 |
endif |
|
255 |
SRC_SUBDIRS += share/classes |
|
256 |
||
44733 | 257 |
SPEC_SUBDIRS += share/specs |
258 |
||
52714
2e52aa822c57
8178317: Create man pages using pandoc from markdown sources
ihse
parents:
52065
diff
changeset
|
259 |
MAN_SUBDIRS += share/man |
2e52aa822c57
8178317: Create man pages using pandoc from markdown sources
ihse
parents:
52065
diff
changeset
|
260 |
|
36506 | 261 |
# Find all module-info.java files for the current build target platform and |
262 |
# configuration. |
|
263 |
# Param 1 - Module to find for, set to * for finding all |
|
264 |
FindAllModuleInfos = \ |
|
47455
4c294a196030
8189376: Unsorted $(wildcard) causes instable module-deps.gmk
ihse
parents:
47314
diff
changeset
|
265 |
$(sort $(wildcard \ |
37030 | 266 |
$(foreach sub, $(SRC_SUBDIRS), \ |
267 |
$(patsubst %,%/$(strip $1)/$(sub)/module-info.java, $(TOP_SRC_DIRS))) \ |
|
47455
4c294a196030
8189376: Unsorted $(wildcard) causes instable module-deps.gmk
ihse
parents:
47314
diff
changeset
|
268 |
$(patsubst %,%/$(strip $1)/module-info.java, $(IMPORT_MODULES_SRC)))) |
26116
f051bd253364
8055095: Improve "do nothing" incremental build performance after modularized source code integration
erikj
parents:
diff
changeset
|
269 |
|
41658
14de1ab85d25
8062810: Examine src.zip in JDK image and decide if source classes should be organized by module
erikj
parents:
41653
diff
changeset
|
270 |
# Find module-info.java files in the specific source dir |
14de1ab85d25
8062810: Examine src.zip in JDK image and decide if source classes should be organized by module
erikj
parents:
41653
diff
changeset
|
271 |
# Param 1 - Src dir to find module-info.java files in |
14de1ab85d25
8062810: Examine src.zip in JDK image and decide if source classes should be organized by module
erikj
parents:
41653
diff
changeset
|
272 |
FindModuleInfosForSrcDir = \ |
14de1ab85d25
8062810: Examine src.zip in JDK image and decide if source classes should be organized by module
erikj
parents:
41653
diff
changeset
|
273 |
$(wildcard \ |
14de1ab85d25
8062810: Examine src.zip in JDK image and decide if source classes should be organized by module
erikj
parents:
41653
diff
changeset
|
274 |
$(foreach sub, $(SRC_SUBDIRS), \ |
14de1ab85d25
8062810: Examine src.zip in JDK image and decide if source classes should be organized by module
erikj
parents:
41653
diff
changeset
|
275 |
$(patsubst %,%/*/$(sub)/module-info.java, $(strip $1)) \ |
14de1ab85d25
8062810: Examine src.zip in JDK image and decide if source classes should be organized by module
erikj
parents:
41653
diff
changeset
|
276 |
) \ |
14de1ab85d25
8062810: Examine src.zip in JDK image and decide if source classes should be organized by module
erikj
parents:
41653
diff
changeset
|
277 |
$(patsubst %,%/*/module-info.java, $(strip $1)) \ |
14de1ab85d25
8062810: Examine src.zip in JDK image and decide if source classes should be organized by module
erikj
parents:
41653
diff
changeset
|
278 |
) |
14de1ab85d25
8062810: Examine src.zip in JDK image and decide if source classes should be organized by module
erikj
parents:
41653
diff
changeset
|
279 |
|
36506 | 280 |
# Extract the module names from the paths of module-info.java files. The |
281 |
# position of the module directory differs depending on if this is an imported |
|
282 |
# src dir or not. |
|
283 |
GetModuleNameFromModuleInfo = \ |
|
284 |
$(strip $(foreach mi, $1, \ |
|
285 |
$(if $(filter $(addsuffix %, $(IMPORT_MODULES_SRC)), $(mi)), \ |
|
286 |
$(notdir $(patsubst %/,%, $(dir $(mi)))), \ |
|
287 |
$(notdir $(patsubst %/,%, $(dir $(patsubst %/,%, $(dir $(patsubst %/,%, $(dir $(mi))))))))))) |
|
288 |
||
289 |
# Find all modules by looking for module-info.java files and looking at parent |
|
290 |
# directories. |
|
291 |
FindAllModules = \ |
|
292 |
$(sort $(filter-out $(MODULES_FILTER), \ |
|
293 |
$(call GetModuleNameFromModuleInfo, $(MODULE_INFOS)))) |
|
294 |
||
41658
14de1ab85d25
8062810: Examine src.zip in JDK image and decide if source classes should be organized by module
erikj
parents:
41653
diff
changeset
|
295 |
# Find all modules in a specific src dir |
14de1ab85d25
8062810: Examine src.zip in JDK image and decide if source classes should be organized by module
erikj
parents:
41653
diff
changeset
|
296 |
# Param 1 - Src dir to find modules in |
14de1ab85d25
8062810: Examine src.zip in JDK image and decide if source classes should be organized by module
erikj
parents:
41653
diff
changeset
|
297 |
FindModulesForSrcDir = \ |
14de1ab85d25
8062810: Examine src.zip in JDK image and decide if source classes should be organized by module
erikj
parents:
41653
diff
changeset
|
298 |
$(sort $(filter-out $(MODULES_FILTER), \ |
14de1ab85d25
8062810: Examine src.zip in JDK image and decide if source classes should be organized by module
erikj
parents:
41653
diff
changeset
|
299 |
$(call GetModuleNameFromModuleInfo, $(call FindModuleInfosForSrcDir, $1)) \ |
14de1ab85d25
8062810: Examine src.zip in JDK image and decide if source classes should be organized by module
erikj
parents:
41653
diff
changeset
|
300 |
)) |
14de1ab85d25
8062810: Examine src.zip in JDK image and decide if source classes should be organized by module
erikj
parents:
41653
diff
changeset
|
301 |
|
36506 | 302 |
FindImportedModules = \ |
37652
67e98335455c
8155629: MODULES_FILTER should apply to imported modules
erikj
parents:
37650
diff
changeset
|
303 |
$(filter-out $(MODULES_FILTER), \ |
67e98335455c
8155629: MODULES_FILTER should apply to imported modules
erikj
parents:
37650
diff
changeset
|
304 |
$(if $(IMPORT_MODULES_CLASSES), $(notdir $(wildcard $(IMPORT_MODULES_CLASSES)/*)))) |
26548 | 305 |
|
37030 | 306 |
# Find all source dirs for a particular module |
307 |
# $1 - Module to find source dirs for |
|
308 |
FindModuleSrcDirs = \ |
|
309 |
$(strip $(wildcard \ |
|
310 |
$(addsuffix /$(strip $1), $(GENERATED_SRC_DIRS) $(IMPORT_MODULES_SRC)) \ |
|
311 |
$(foreach sub, $(SRC_SUBDIRS), $(addsuffix /$(strip $1)/$(sub), $(TOP_SRC_DIRS))))) |
|
312 |
||
44733 | 313 |
# Find all specs dirs for a particular module |
314 |
# $1 - Module to find specs dirs for |
|
315 |
FindModuleSpecsDirs = \ |
|
316 |
$(strip $(wildcard \ |
|
317 |
$(foreach sub, $(SPEC_SUBDIRS), $(addsuffix /$(strip $1)/$(sub), $(TOP_SRC_DIRS))))) |
|
318 |
||
52714
2e52aa822c57
8178317: Create man pages using pandoc from markdown sources
ihse
parents:
52065
diff
changeset
|
319 |
# Find all man dirs for a particular module |
2e52aa822c57
8178317: Create man pages using pandoc from markdown sources
ihse
parents:
52065
diff
changeset
|
320 |
# $1 - Module to find man dirs for |
2e52aa822c57
8178317: Create man pages using pandoc from markdown sources
ihse
parents:
52065
diff
changeset
|
321 |
FindModuleManDirs = \ |
2e52aa822c57
8178317: Create man pages using pandoc from markdown sources
ihse
parents:
52065
diff
changeset
|
322 |
$(strip $(wildcard \ |
2e52aa822c57
8178317: Create man pages using pandoc from markdown sources
ihse
parents:
52065
diff
changeset
|
323 |
$(foreach sub, $(MAN_SUBDIRS), $(addsuffix /$(strip $1)/$(sub), $(TOP_SRC_DIRS))))) |
2e52aa822c57
8178317: Create man pages using pandoc from markdown sources
ihse
parents:
52065
diff
changeset
|
324 |
|
37030 | 325 |
# Construct the complete module source path |
326 |
GetModuleSrcPath = \ |
|
327 |
$(call PathList, \ |
|
328 |
$(addsuffix /*, $(GENERATED_SRC_DIRS) $(IMPORT_MODULES_SRC)) \ |
|
329 |
$(foreach sub, $(SRC_SUBDIRS), $(addsuffix /*/$(sub), $(TOP_SRC_DIRS)))) |
|
330 |
||
26548 | 331 |
################################################################################ |
45233
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45232
diff
changeset
|
332 |
# Extract module dependencies from module-info.java files, both normal |
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45232
diff
changeset
|
333 |
# dependencies ("requires"), and indirect exports ("requires transitive"). |
36506 | 334 |
|
26548 | 335 |
MODULE_DEPS_MAKEFILE := $(MAKESUPPORT_OUTPUTDIR)/module-deps.gmk |
36506 | 336 |
|
337 |
MODULE_INFOS := $(call FindAllModuleInfos, *) |
|
338 |
||
339 |
$(MODULE_DEPS_MAKEFILE): $(MODULE_INFOS) \ |
|
340 |
$(call DependOnVariable, MODULE_INFOS, $(MAKESUPPORT_OUTPUTDIR)/MODULE_INFOS.vardeps) |
|
52065
dea8a62cdfc3
8211724: Change mkdir -p to MakeDir macro where possible
erikj
parents:
51030
diff
changeset
|
341 |
$(call MakeTargetDir) |
36506 | 342 |
$(RM) $@ |
343 |
$(foreach m, $(MODULE_INFOS), \ |
|
344 |
( $(PRINTF) "DEPS_$(call GetModuleNameFromModuleInfo, $m) :=" && \ |
|
345 |
$(NAWK) -v MODULE=$(call GetModuleNameFromModuleInfo, $m) '\ |
|
346 |
BEGIN { if (MODULE != "java.base") printf(" java.base"); } \ |
|
44726
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
347 |
/^ *requires/ { sub(/;/, ""); \ |
47853
3e345eba9255
8191420: Changing "requires" to "requires static" in an application module results in build failure
erikj
parents:
47735
diff
changeset
|
348 |
sub(/requires /, " "); \ |
3e345eba9255
8191420: Changing "requires" to "requires static" in an application module results in build failure
erikj
parents:
47735
diff
changeset
|
349 |
sub(/ static /, " "); \ |
3e345eba9255
8191420: Changing "requires" to "requires static" in an application module results in build failure
erikj
parents:
47735
diff
changeset
|
350 |
sub(/ transitive /, " "); \ |
44726
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
351 |
sub(/\/\/.*/, ""); \ |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
352 |
sub(/\/\*.*\*\//, ""); \ |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
353 |
gsub(/^ +\*.*/, ""); \ |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
354 |
gsub(/ /, ""); \ |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
355 |
printf(" %s", $$0) } \ |
45233
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45232
diff
changeset
|
356 |
END { printf("\n") }' $m && \ |
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45232
diff
changeset
|
357 |
$(PRINTF) "TRANSITIVE_MODULES_$(call GetModuleNameFromModuleInfo, $m) :=" && \ |
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45232
diff
changeset
|
358 |
$(NAWK) -v MODULE=$(call GetModuleNameFromModuleInfo, $m) '\ |
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45232
diff
changeset
|
359 |
BEGIN { if (MODULE != "java.base") printf(" java.base"); } \ |
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45232
diff
changeset
|
360 |
/^ *requires *transitive/ { \ |
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45232
diff
changeset
|
361 |
sub(/;/, ""); \ |
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45232
diff
changeset
|
362 |
sub(/requires/, ""); \ |
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45232
diff
changeset
|
363 |
sub(/transitive/, ""); \ |
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45232
diff
changeset
|
364 |
sub(/\/\/.*/, ""); \ |
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45232
diff
changeset
|
365 |
sub(/\/\*.*\*\//, ""); \ |
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45232
diff
changeset
|
366 |
gsub(/^ +\*.*/, ""); \ |
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45232
diff
changeset
|
367 |
gsub(/ /, ""); \ |
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45232
diff
changeset
|
368 |
printf(" %s", $$0) } \ |
44726
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
369 |
END { printf("\n") }' $m \ |
36506 | 370 |
) >> $@ $(NEWLINE)) |
371 |
||
26116
f051bd253364
8055095: Improve "do nothing" incremental build performance after modularized source code integration
erikj
parents:
diff
changeset
|
372 |
-include $(MODULE_DEPS_MAKEFILE) |
f051bd253364
8055095: Improve "do nothing" incremental build performance after modularized source code integration
erikj
parents:
diff
changeset
|
373 |
|
45233
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45232
diff
changeset
|
374 |
# Find dependencies ("requires") for a given module. |
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45232
diff
changeset
|
375 |
# Param 1: Module to find dependencies for. |
36506 | 376 |
FindDepsForModule = \ |
26116
f051bd253364
8055095: Improve "do nothing" incremental build performance after modularized source code integration
erikj
parents:
diff
changeset
|
377 |
$(DEPS_$(strip $1)) |
36506 | 378 |
|
45233
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45232
diff
changeset
|
379 |
# Find dependencies ("requires") transitively in 3 levels for a given module. |
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45232
diff
changeset
|
380 |
# Param 1: Module to find dependencies for. |
36506 | 381 |
FindTransitiveDepsForModule = \ |
382 |
$(sort $(call FindDepsForModule, $1) \ |
|
383 |
$(foreach m, $(call FindDepsForModule, $1), \ |
|
384 |
$(call FindDepsForModule, $m) \ |
|
385 |
$(foreach n, $(call FindDepsForModule, $m), \ |
|
386 |
$(call FindDepsForModule, $n)))) |
|
26116
f051bd253364
8055095: Improve "do nothing" incremental build performance after modularized source code integration
erikj
parents:
diff
changeset
|
387 |
|
45233
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45232
diff
changeset
|
388 |
# Find dependencies ("requires") transitively in 3 levels for a set of modules. |
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45232
diff
changeset
|
389 |
# Param 1: List of modules to find dependencies for. |
44726
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
390 |
FindTransitiveDepsForModules = \ |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
391 |
$(sort $(foreach m, $1, $(call FindTransitiveDepsForModule, $m))) |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
392 |
|
45233
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45232
diff
changeset
|
393 |
# Find indirect exported modules ("requires transitive") for a given module . |
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45232
diff
changeset
|
394 |
# Param 1: Module to find indirect exported modules for. |
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45232
diff
changeset
|
395 |
FindIndirectExportsForModule = \ |
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45232
diff
changeset
|
396 |
$(TRANSITIVE_MODULES_$(strip $1)) |
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45232
diff
changeset
|
397 |
|
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45232
diff
changeset
|
398 |
# Finds indirect exported modules transitively in 3 levels for a given module. |
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45232
diff
changeset
|
399 |
# Param 1: Module to find indirect exported modules for. |
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45232
diff
changeset
|
400 |
FindTransitiveIndirectDepsForModule = \ |
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45232
diff
changeset
|
401 |
$(sort $(call FindIndirectExportsForModule, $1) \ |
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45232
diff
changeset
|
402 |
$(foreach m, $(call FindIndirectExportsForModule, $1), \ |
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45232
diff
changeset
|
403 |
$(call FindIndirectExportsForModule, $m) \ |
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45232
diff
changeset
|
404 |
$(foreach n, $(call FindIndirectExportsForModule, $m), \ |
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45232
diff
changeset
|
405 |
$(call FindIndirectExportsForModule, $n)))) |
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45232
diff
changeset
|
406 |
|
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45232
diff
changeset
|
407 |
# Finds indirect exported modules transitively in 3 levels for a set of modules. |
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45232
diff
changeset
|
408 |
# Param 1: List of modules to find indirect exported modules for. |
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45232
diff
changeset
|
409 |
FindTransitiveIndirectDepsForModules = \ |
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45232
diff
changeset
|
410 |
$(sort $(foreach m, $1, $(call FindTransitiveIndirectDepsForModule, $m))) |
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45232
diff
changeset
|
411 |
|
37975
551c5d86de79
8155786: Determine modules depending on upgradeable modules directly and indirectly
erikj
parents:
37973
diff
changeset
|
412 |
# Upgradeable modules are those that are either defined as upgradeable or that |
551c5d86de79
8155786: Determine modules depending on upgradeable modules directly and indirectly
erikj
parents:
37973
diff
changeset
|
413 |
# require an upradeable module. |
551c5d86de79
8155786: Determine modules depending on upgradeable modules directly and indirectly
erikj
parents:
37973
diff
changeset
|
414 |
FindAllUpgradeableModules = \ |
48841 | 415 |
$(sort $(filter-out $(MODULES_FILTER), $(UPGRADEABLE_MODULES))) |
45612 | 416 |
|
37975
551c5d86de79
8155786: Determine modules depending on upgradeable modules directly and indirectly
erikj
parents:
37973
diff
changeset
|
417 |
|
26116
f051bd253364
8055095: Improve "do nothing" incremental build performance after modularized source code integration
erikj
parents:
diff
changeset
|
418 |
################################################################################ |
f051bd253364
8055095: Improve "do nothing" incremental build performance after modularized source code integration
erikj
parents:
diff
changeset
|
419 |
|
42505
11439b0c0792
8169925: Organize licenses by module in source, JMOD file, and run-time image
mchung
parents:
42427
diff
changeset
|
420 |
LEGAL_SUBDIRS += $(OPENJDK_TARGET_OS)/legal |
11439b0c0792
8169925: Organize licenses by module in source, JMOD file, and run-time image
mchung
parents:
42427
diff
changeset
|
421 |
ifneq ($(OPENJDK_TARGET_OS), $(OPENJDK_TARGET_OS_TYPE)) |
11439b0c0792
8169925: Organize licenses by module in source, JMOD file, and run-time image
mchung
parents:
42427
diff
changeset
|
422 |
LEGAL_SUBDIRS += $(OPENJDK_TARGET_OS_TYPE)/legal |
11439b0c0792
8169925: Organize licenses by module in source, JMOD file, and run-time image
mchung
parents:
42427
diff
changeset
|
423 |
endif |
11439b0c0792
8169925: Organize licenses by module in source, JMOD file, and run-time image
mchung
parents:
42427
diff
changeset
|
424 |
LEGAL_SUBDIRS += share/legal |
11439b0c0792
8169925: Organize licenses by module in source, JMOD file, and run-time image
mchung
parents:
42427
diff
changeset
|
425 |
|
49537
149dc554808c
8199539: Provide a standard way for the build to filter un-needed legal .md files
erikj
parents:
49126
diff
changeset
|
426 |
# Find all legal src dirs for a particular module |
42505
11439b0c0792
8169925: Organize licenses by module in source, JMOD file, and run-time image
mchung
parents:
42427
diff
changeset
|
427 |
# $1 - Module to find legal dirs for |
49537
149dc554808c
8199539: Provide a standard way for the build to filter un-needed legal .md files
erikj
parents:
49126
diff
changeset
|
428 |
FindModuleLegalSrcDirs = \ |
42505
11439b0c0792
8169925: Organize licenses by module in source, JMOD file, and run-time image
mchung
parents:
42427
diff
changeset
|
429 |
$(strip $(wildcard \ |
49537
149dc554808c
8199539: Provide a standard way for the build to filter un-needed legal .md files
erikj
parents:
49126
diff
changeset
|
430 |
$(addsuffix /$(strip $1), $(IMPORT_MODULES_LEGAL)) \ |
47735
45af799ceb6a
8190725: Freetype license file provided with configure not included in images
erikj
parents:
47701
diff
changeset
|
431 |
$(foreach sub, $(LEGAL_SUBDIRS), $(addsuffix /$(strip $1)/$(sub), $(TOP_SRC_DIRS))) \ |
45af799ceb6a
8190725: Freetype license file provided with configure not included in images
erikj
parents:
47701
diff
changeset
|
432 |
)) |
42505
11439b0c0792
8169925: Organize licenses by module in source, JMOD file, and run-time image
mchung
parents:
42427
diff
changeset
|
433 |
|
11439b0c0792
8169925: Organize licenses by module in source, JMOD file, and run-time image
mchung
parents:
42427
diff
changeset
|
434 |
################################################################################ |
11439b0c0792
8169925: Organize licenses by module in source, JMOD file, and run-time image
mchung
parents:
42427
diff
changeset
|
435 |
|
36543
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
436 |
# Param 1 - Name of module |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
437 |
define ReadSingleImportMetaData |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
438 |
ifneq ($$(wildcard $(IMPORT_MODULES_MAKE)/$$(strip $1)/build.properties), ) |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
439 |
classloader := |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
440 |
include_in_jre := |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
441 |
include_in_jdk := |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
442 |
include $(IMPORT_MODULES_MAKE)/$$(strip $1)/build.properties |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
443 |
ifeq ($$(include_in_jre), true) |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
444 |
JRE_MODULES += $1 |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
445 |
endif |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
446 |
ifeq ($$(include_in_jdk), true) |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
447 |
JDK_MODULES += $1 |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
448 |
endif |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
449 |
ifeq ($$(classloader), boot) |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
450 |
BOOT_MODULES += $1 |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
451 |
else ifeq ($$(classloader), ext) |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
452 |
PLATFORM_MODULES += $1 |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
453 |
endif |
45098
4f30865c93b0
8179105: Respect "include_in_docs" property from imported modules.
ihse
parents:
44830
diff
changeset
|
454 |
ifneq ($$(include_in_docs), false) |
4f30865c93b0
8179105: Respect "include_in_docs" property from imported modules.
ihse
parents:
44830
diff
changeset
|
455 |
# defaults to true if unspecified |
4f30865c93b0
8179105: Respect "include_in_docs" property from imported modules.
ihse
parents:
44830
diff
changeset
|
456 |
DOCS_MODULES += $1 |
4f30865c93b0
8179105: Respect "include_in_docs" property from imported modules.
ihse
parents:
44830
diff
changeset
|
457 |
endif |
36543
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
458 |
else |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
459 |
# Default to include in all |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
460 |
JRE_MODULES += $1 |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
461 |
JDK_MODULES += $1 |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
462 |
endif |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
463 |
endef |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
464 |
|
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
465 |
# Reading the imported modules metadata has a cost, so to make it available, |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
466 |
# a makefile needs to eval-call this macro first. After calling this, the |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
467 |
# following variables are populated with data from the imported modules: |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
468 |
# * JRE_MODULES |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
469 |
# * JDK_MODULES |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
470 |
# * BOOT_MODULES |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
471 |
# * PLATFORM_MODULES |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
472 |
# * JRE_TOOL_MODULES |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
473 |
define ReadImportMetaData |
36725 | 474 |
IMPORTED_MODULES := $$(call FindImportedModules) |
475 |
$$(foreach m, $$(IMPORTED_MODULES), \ |
|
476 |
$$(eval $$(call ReadSingleImportMetaData, $$m))) |
|
36543
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
477 |
endef |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
478 |
|
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
479 |
################################################################################ |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
480 |
|
26116
f051bd253364
8055095: Improve "do nothing" incremental build performance after modularized source code integration
erikj
parents:
diff
changeset
|
481 |
endif # _MODULES_GMK |