author | mli |
Tue, 26 Sep 2017 12:47:49 +0800 | |
changeset 47263 | 65640af28197 |
parent 47224 | e81f9ee4df7f |
child 47267 | b3a91921bafc |
child 47557 | 8b2054b7d02c |
permissions | -rw-r--r-- |
26116
f051bd253364
8055095: Improve "do nothing" incremental build performance after modularized source code integration
erikj
parents:
diff
changeset
|
1 |
# |
43176
1da1ffe0c6fd
8172527: Rename jdk.crypto.token to jdk.crypto.cryptoki
ascarpino
parents:
42534
diff
changeset
|
2 |
# Copyright (c) 2014, 2017, 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. |
46 |
$(eval $(call IncludeCustomExtension, , common/Modules.gmk)) |
|
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 \ |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
61 |
jdk.httpserver \ |
44725
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
62 |
jdk.internal.vm.ci \ |
36543
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
63 |
jdk.management \ |
43382
8e0c4b44e4c0
8173608: Separate JDK management agent from java.management module
mchung
parents:
43287
diff
changeset
|
64 |
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
|
65 |
jdk.net \ |
36543
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
66 |
jdk.sctp \ |
36793 | 67 |
jdk.unsupported \ |
36543
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
68 |
# |
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 |
# to be deprivileged |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
71 |
BOOT_MODULES += \ |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
72 |
jdk.naming.rmi \ |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
73 |
# |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
74 |
|
45612 | 75 |
# Modules that directly or indirectly requiring upgradeable modules |
76 |
# 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
|
77 |
UPGRADEABLE_MODULES += \ |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
78 |
java.activation \ |
45612 | 79 |
java.compiler \ |
36543
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
80 |
java.corba \ |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
81 |
java.transaction \ |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
82 |
java.xml.bind \ |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
83 |
java.xml.ws \ |
43398
3cecfaef55fe
8173604: Rename module 8173604 java.annotations.common to java.xml.ws.annoations
lancea
parents:
43384
diff
changeset
|
84 |
java.xml.ws.annotation \ |
44830 | 85 |
jdk.internal.vm.compiler \ |
36543
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
86 |
# |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
87 |
|
45612 | 88 |
UPGRADEABLE_TOOL_MODULES += \ |
89 |
jdk.xml.bind \ |
|
90 |
jdk.xml.ws \ |
|
44830 | 91 |
# |
37975
551c5d86de79
8155786: Determine modules depending on upgradeable modules directly and indirectly
erikj
parents:
37973
diff
changeset
|
92 |
|
36543
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
93 |
AGGREGATOR_MODULES += \ |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
94 |
java.se \ |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
95 |
java.se.ee \ |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
96 |
# |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
97 |
|
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
98 |
PLATFORM_MODULES += \ |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
99 |
$(UPGRADEABLE_MODULES) \ |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
100 |
$(AGGREGATOR_MODULES) |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
101 |
# |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
102 |
|
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
103 |
PLATFORM_MODULES += \ |
37973 | 104 |
java.scripting \ |
39820
428c076d7ddf
8159528: Deprivilege java.security.jgss, jdk.security.jgss and jdk.security.auth
weijun
parents:
39817
diff
changeset
|
105 |
java.security.jgss \ |
39612
00cf8f38916f
8161171: Missed the make/common/Modules.gmk file when integrating JDK-8154191
valeriep
parents:
38626
diff
changeset
|
106 |
java.smartcardio \ |
38626
68d286c03952
8154189: Deprivilege java.sql and java.sql.rowset module
lancea
parents:
37975
diff
changeset
|
107 |
java.sql \ |
68d286c03952
8154189: Deprivilege java.sql and java.sql.rowset module
lancea
parents:
37975
diff
changeset
|
108 |
java.sql.rowset \ |
39817 | 109 |
java.xml.crypto \ |
36543
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
110 |
jdk.accessibility \ |
37769 | 111 |
jdk.charsets \ |
44725
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
112 |
jdk.crypto.cryptoki \ |
36543
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
113 |
jdk.crypto.ec \ |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
114 |
jdk.dynalink \ |
44725
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
115 |
jdk.incubator.httpclient \ |
36543
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
116 |
jdk.jsobject \ |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
117 |
jdk.localedata \ |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
118 |
jdk.naming.dns \ |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
119 |
jdk.scripting.nashorn \ |
39820
428c076d7ddf
8159528: Deprivilege java.security.jgss, jdk.security.jgss and jdk.security.auth
weijun
parents:
39817
diff
changeset
|
120 |
jdk.security.auth \ |
428c076d7ddf
8159528: Deprivilege java.security.jgss, jdk.security.jgss and jdk.security.auth
weijun
parents:
39817
diff
changeset
|
121 |
jdk.security.jgss \ |
428c076d7ddf
8159528: Deprivilege java.security.jgss, jdk.security.jgss and jdk.security.auth
weijun
parents:
39817
diff
changeset
|
122 |
jdk.xml.dom \ |
36543
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
123 |
jdk.zipfs \ |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
124 |
# |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
125 |
|
44725
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
126 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
127 |
PLATFORM_MODULES += jdk.crypto.mscapi |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
128 |
endif |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
129 |
|
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
130 |
ifeq ($(OPENJDK_TARGET_OS), solaris) |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
131 |
PLATFORM_MODULES += jdk.crypto.ucrypto |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
132 |
endif |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
133 |
|
36543
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
134 |
JRE_TOOL_MODULES += \ |
36790 | 135 |
jdk.jdwp.agent \ |
42514 | 136 |
jdk.pack \ |
36543
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
137 |
jdk.scripting.nashorn.shell \ |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
138 |
# |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
139 |
|
44725
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
140 |
################################################################################ |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
141 |
|
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
142 |
# 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
|
143 |
# 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
|
144 |
DOCS_MODULES += \ |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
145 |
java.se.ee \ |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
146 |
java.smartcardio \ |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
147 |
jdk.accessibility \ |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
148 |
jdk.attach \ |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
149 |
jdk.charsets \ |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
150 |
jdk.compiler \ |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
151 |
jdk.crypto.cryptoki \ |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
152 |
jdk.crypto.ec \ |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
153 |
jdk.dynalink \ |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
154 |
jdk.editpad \ |
45232
1e2ad0809162
8175845: Provide javadoc descriptions for jdk.hotspot.agent module
uvangapally
parents:
45098
diff
changeset
|
155 |
jdk.hotspot.agent \ |
44725
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
156 |
jdk.httpserver \ |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
157 |
jdk.incubator.httpclient \ |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
158 |
jdk.jartool \ |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
159 |
jdk.javadoc \ |
44730 | 160 |
jdk.jcmd \ |
44725
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
161 |
jdk.jconsole \ |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
162 |
jdk.jdeps \ |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
163 |
jdk.jdi \ |
44730 | 164 |
jdk.jdwp.agent \ |
44725
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
165 |
jdk.jlink \ |
44730 | 166 |
jdk.jsobject \ |
44725
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
167 |
jdk.jshell \ |
44730 | 168 |
jdk.jstatd \ |
44725
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
169 |
jdk.localedata \ |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
170 |
jdk.management \ |
44730 | 171 |
jdk.management.agent \ |
44725
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
172 |
jdk.naming.dns \ |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
173 |
jdk.naming.rmi \ |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
174 |
jdk.net \ |
44730 | 175 |
jdk.pack \ |
176 |
jdk.rmic \ |
|
44725
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
177 |
jdk.scripting.nashorn \ |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
178 |
jdk.sctp \ |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
179 |
jdk.security.auth \ |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
180 |
jdk.security.jgss \ |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
181 |
jdk.xml.dom \ |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
182 |
jdk.zipfs \ |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
43925
diff
changeset
|
183 |
# |
36543
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
184 |
|
37770 | 185 |
# These modules are included in the interim image which is used to run profiling |
186 |
# before building the real images. |
|
187 |
INTERIM_IMAGE_MODULES := java.base java.logging |
|
188 |
||
47217 | 189 |
LANGTOOLS_MODULES := \ |
190 |
java.compiler \ |
|
191 |
jdk.compiler \ |
|
192 |
jdk.javadoc \ |
|
193 |
jdk.jdeps \ |
|
194 |
jdk.jshell \ |
|
195 |
# |
|
196 |
||
197 |
CORBA_MODULES := java.corba |
|
198 |
||
199 |
HOTSPOT_MODULES := \ |
|
200 |
jdk.aot \ |
|
201 |
jdk.hotspot.agent \ |
|
202 |
jdk.internal.vm.ci \ |
|
203 |
jdk.internal.vm.compiler \ |
|
204 |
# |
|
205 |
||
26116
f051bd253364
8055095: Improve "do nothing" incremental build performance after modularized source code integration
erikj
parents:
diff
changeset
|
206 |
################################################################################ |
34116
b746e382da18
8142336: Convert the SA agent build to modular build-infra makefiles
erikj
parents:
33045
diff
changeset
|
207 |
# 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
|
208 |
|
34116
b746e382da18
8142336: Convert the SA agent build to modular build-infra makefiles
erikj
parents:
33045
diff
changeset
|
209 |
ifeq ($(INCLUDE_SA), false) |
b746e382da18
8142336: Convert the SA agent build to modular build-infra makefiles
erikj
parents:
33045
diff
changeset
|
210 |
MODULES_FILTER += jdk.hotspot.agent |
b746e382da18
8142336: Convert the SA agent build to modular build-infra makefiles
erikj
parents:
33045
diff
changeset
|
211 |
endif |
b746e382da18
8142336: Convert the SA agent build to modular build-infra makefiles
erikj
parents:
33045
diff
changeset
|
212 |
|
b746e382da18
8142336: Convert the SA agent build to modular build-infra makefiles
erikj
parents:
33045
diff
changeset
|
213 |
################################################################################ |
42532 | 214 |
# Filter out Graal specific modules if Graal build is disabled |
42531
37ee95196b17
8166417: Integrate Graal-core into JDK for AOT compiler
kvn
parents:
42289
diff
changeset
|
215 |
|
37ee95196b17
8166417: Integrate Graal-core into JDK for AOT compiler
kvn
parents:
42289
diff
changeset
|
216 |
ifeq ($(INCLUDE_GRAAL), false) |
43925 | 217 |
MODULES_FILTER += jdk.internal.vm.compiler |
42531
37ee95196b17
8166417: Integrate Graal-core into JDK for AOT compiler
kvn
parents:
42289
diff
changeset
|
218 |
endif |
37ee95196b17
8166417: Integrate Graal-core into JDK for AOT compiler
kvn
parents:
42289
diff
changeset
|
219 |
|
37ee95196b17
8166417: Integrate Graal-core into JDK for AOT compiler
kvn
parents:
42289
diff
changeset
|
220 |
################################################################################ |
42532 | 221 |
# Filter out aot specific modules if aot is disabled |
222 |
||
223 |
ifeq ($(ENABLE_AOT), false) |
|
224 |
MODULES_FILTER += jdk.aot |
|
225 |
endif |
|
226 |
||
227 |
################################################################################ |
|
26116
f051bd253364
8055095: Improve "do nothing" incremental build performance after modularized source code integration
erikj
parents:
diff
changeset
|
228 |
# Module list macros |
f051bd253364
8055095: Improve "do nothing" incremental build performance after modularized source code integration
erikj
parents:
diff
changeset
|
229 |
|
37030 | 230 |
# Use append so that the custom extension may add to these variables |
36506 | 231 |
|
37030 | 232 |
GENERATED_SRC_DIRS += \ |
233 |
$(SUPPORT_OUTPUTDIR)/gensrc \ |
|
234 |
# |
|
235 |
||
236 |
TOP_SRC_DIRS += \ |
|
47217 | 237 |
$(TOPDIR)/src \ |
26116
f051bd253364
8055095: Improve "do nothing" incremental build performance after modularized source code integration
erikj
parents:
diff
changeset
|
238 |
# |
f051bd253364
8055095: Improve "do nothing" incremental build performance after modularized source code integration
erikj
parents:
diff
changeset
|
239 |
|
37030 | 240 |
SRC_SUBDIRS += $(OPENJDK_TARGET_OS)/classes |
241 |
ifneq ($(OPENJDK_TARGET_OS), $(OPENJDK_TARGET_OS_TYPE)) |
|
242 |
SRC_SUBDIRS += $(OPENJDK_TARGET_OS_TYPE)/classes |
|
243 |
endif |
|
244 |
SRC_SUBDIRS += share/classes |
|
245 |
||
44733 | 246 |
SPEC_SUBDIRS += share/specs |
247 |
||
36506 | 248 |
# Find all module-info.java files for the current build target platform and |
249 |
# configuration. |
|
250 |
# Param 1 - Module to find for, set to * for finding all |
|
251 |
FindAllModuleInfos = \ |
|
252 |
$(wildcard \ |
|
37030 | 253 |
$(foreach sub, $(SRC_SUBDIRS), \ |
254 |
$(patsubst %,%/$(strip $1)/$(sub)/module-info.java, $(TOP_SRC_DIRS))) \ |
|
43287
0ac98135a64b
8170483: Remove modules_src_jake workaround for JavaFX transition to new module-info syntax
erikj
parents:
43176
diff
changeset
|
255 |
$(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
|
256 |
|
41658
14de1ab85d25
8062810: Examine src.zip in JDK image and decide if source classes should be organized by module
erikj
parents:
41653
diff
changeset
|
257 |
# 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
|
258 |
# 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
|
259 |
FindModuleInfosForSrcDir = \ |
14de1ab85d25
8062810: Examine src.zip in JDK image and decide if source classes should be organized by module
erikj
parents:
41653
diff
changeset
|
260 |
$(wildcard \ |
14de1ab85d25
8062810: Examine src.zip in JDK image and decide if source classes should be organized by module
erikj
parents:
41653
diff
changeset
|
261 |
$(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
|
262 |
$(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
|
263 |
) \ |
14de1ab85d25
8062810: Examine src.zip in JDK image and decide if source classes should be organized by module
erikj
parents:
41653
diff
changeset
|
264 |
$(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
|
265 |
) |
14de1ab85d25
8062810: Examine src.zip in JDK image and decide if source classes should be organized by module
erikj
parents:
41653
diff
changeset
|
266 |
|
36506 | 267 |
# Extract the module names from the paths of module-info.java files. The |
268 |
# position of the module directory differs depending on if this is an imported |
|
269 |
# src dir or not. |
|
270 |
GetModuleNameFromModuleInfo = \ |
|
271 |
$(strip $(foreach mi, $1, \ |
|
272 |
$(if $(filter $(addsuffix %, $(IMPORT_MODULES_SRC)), $(mi)), \ |
|
273 |
$(notdir $(patsubst %/,%, $(dir $(mi)))), \ |
|
274 |
$(notdir $(patsubst %/,%, $(dir $(patsubst %/,%, $(dir $(patsubst %/,%, $(dir $(mi))))))))))) |
|
275 |
||
276 |
# Find all modules by looking for module-info.java files and looking at parent |
|
277 |
# directories. |
|
278 |
FindAllModules = \ |
|
279 |
$(sort $(filter-out $(MODULES_FILTER), \ |
|
280 |
$(call GetModuleNameFromModuleInfo, $(MODULE_INFOS)))) |
|
281 |
||
41658
14de1ab85d25
8062810: Examine src.zip in JDK image and decide if source classes should be organized by module
erikj
parents:
41653
diff
changeset
|
282 |
# 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
|
283 |
# 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
|
284 |
FindModulesForSrcDir = \ |
14de1ab85d25
8062810: Examine src.zip in JDK image and decide if source classes should be organized by module
erikj
parents:
41653
diff
changeset
|
285 |
$(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
|
286 |
$(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
|
287 |
)) |
14de1ab85d25
8062810: Examine src.zip in JDK image and decide if source classes should be organized by module
erikj
parents:
41653
diff
changeset
|
288 |
|
36506 | 289 |
FindImportedModules = \ |
37652
67e98335455c
8155629: MODULES_FILTER should apply to imported modules
erikj
parents:
37650
diff
changeset
|
290 |
$(filter-out $(MODULES_FILTER), \ |
67e98335455c
8155629: MODULES_FILTER should apply to imported modules
erikj
parents:
37650
diff
changeset
|
291 |
$(if $(IMPORT_MODULES_CLASSES), $(notdir $(wildcard $(IMPORT_MODULES_CLASSES)/*)))) |
26548 | 292 |
|
37030 | 293 |
# Find all source dirs for a particular module |
294 |
# $1 - Module to find source dirs for |
|
295 |
FindModuleSrcDirs = \ |
|
296 |
$(strip $(wildcard \ |
|
297 |
$(addsuffix /$(strip $1), $(GENERATED_SRC_DIRS) $(IMPORT_MODULES_SRC)) \ |
|
298 |
$(foreach sub, $(SRC_SUBDIRS), $(addsuffix /$(strip $1)/$(sub), $(TOP_SRC_DIRS))))) |
|
299 |
||
44733 | 300 |
# Find all specs dirs for a particular module |
301 |
# $1 - Module to find specs dirs for |
|
302 |
FindModuleSpecsDirs = \ |
|
303 |
$(strip $(wildcard \ |
|
304 |
$(foreach sub, $(SPEC_SUBDIRS), $(addsuffix /$(strip $1)/$(sub), $(TOP_SRC_DIRS))))) |
|
305 |
||
37030 | 306 |
# Construct the complete module source path |
307 |
GetModuleSrcPath = \ |
|
308 |
$(call PathList, \ |
|
309 |
$(addsuffix /*, $(GENERATED_SRC_DIRS) $(IMPORT_MODULES_SRC)) \ |
|
310 |
$(foreach sub, $(SRC_SUBDIRS), $(addsuffix /*/$(sub), $(TOP_SRC_DIRS)))) |
|
311 |
||
26548 | 312 |
################################################################################ |
45233
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45232
diff
changeset
|
313 |
# 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
|
314 |
# dependencies ("requires"), and indirect exports ("requires transitive"). |
36506 | 315 |
|
26548 | 316 |
MODULE_DEPS_MAKEFILE := $(MAKESUPPORT_OUTPUTDIR)/module-deps.gmk |
36506 | 317 |
|
318 |
MODULE_INFOS := $(call FindAllModuleInfos, *) |
|
319 |
||
320 |
$(MODULE_DEPS_MAKEFILE): $(MODULE_INFOS) \ |
|
321 |
$(call DependOnVariable, MODULE_INFOS, $(MAKESUPPORT_OUTPUTDIR)/MODULE_INFOS.vardeps) |
|
322 |
$(MKDIR) -p $(@D) |
|
323 |
$(RM) $@ |
|
324 |
$(foreach m, $(MODULE_INFOS), \ |
|
325 |
( $(PRINTF) "DEPS_$(call GetModuleNameFromModuleInfo, $m) :=" && \ |
|
326 |
$(NAWK) -v MODULE=$(call GetModuleNameFromModuleInfo, $m) '\ |
|
327 |
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
|
328 |
/^ *requires/ { sub(/;/, ""); \ |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
329 |
sub(/requires/, ""); \ |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
330 |
sub(/transitive/, ""); \ |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
331 |
sub(/\/\/.*/, ""); \ |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
332 |
sub(/\/\*.*\*\//, ""); \ |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
333 |
gsub(/^ +\*.*/, ""); \ |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
334 |
gsub(/ /, ""); \ |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
335 |
printf(" %s", $$0) } \ |
45233
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45232
diff
changeset
|
336 |
END { printf("\n") }' $m && \ |
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45232
diff
changeset
|
337 |
$(PRINTF) "TRANSITIVE_MODULES_$(call GetModuleNameFromModuleInfo, $m) :=" && \ |
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45232
diff
changeset
|
338 |
$(NAWK) -v MODULE=$(call GetModuleNameFromModuleInfo, $m) '\ |
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45232
diff
changeset
|
339 |
BEGIN { if (MODULE != "java.base") printf(" java.base"); } \ |
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45232
diff
changeset
|
340 |
/^ *requires *transitive/ { \ |
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45232
diff
changeset
|
341 |
sub(/;/, ""); \ |
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45232
diff
changeset
|
342 |
sub(/requires/, ""); \ |
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45232
diff
changeset
|
343 |
sub(/transitive/, ""); \ |
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45232
diff
changeset
|
344 |
sub(/\/\/.*/, ""); \ |
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45232
diff
changeset
|
345 |
sub(/\/\*.*\*\//, ""); \ |
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45232
diff
changeset
|
346 |
gsub(/^ +\*.*/, ""); \ |
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45232
diff
changeset
|
347 |
gsub(/ /, ""); \ |
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45232
diff
changeset
|
348 |
printf(" %s", $$0) } \ |
44726
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
349 |
END { printf("\n") }' $m \ |
36506 | 350 |
) >> $@ $(NEWLINE)) |
351 |
||
26116
f051bd253364
8055095: Improve "do nothing" incremental build performance after modularized source code integration
erikj
parents:
diff
changeset
|
352 |
-include $(MODULE_DEPS_MAKEFILE) |
f051bd253364
8055095: Improve "do nothing" incremental build performance after modularized source code integration
erikj
parents:
diff
changeset
|
353 |
|
45233
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45232
diff
changeset
|
354 |
# Find dependencies ("requires") for a given module. |
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45232
diff
changeset
|
355 |
# Param 1: Module to find dependencies for. |
36506 | 356 |
FindDepsForModule = \ |
26116
f051bd253364
8055095: Improve "do nothing" incremental build performance after modularized source code integration
erikj
parents:
diff
changeset
|
357 |
$(DEPS_$(strip $1)) |
36506 | 358 |
|
45233
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45232
diff
changeset
|
359 |
# 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
|
360 |
# Param 1: Module to find dependencies for. |
36506 | 361 |
FindTransitiveDepsForModule = \ |
362 |
$(sort $(call FindDepsForModule, $1) \ |
|
363 |
$(foreach m, $(call FindDepsForModule, $1), \ |
|
364 |
$(call FindDepsForModule, $m) \ |
|
365 |
$(foreach n, $(call FindDepsForModule, $m), \ |
|
366 |
$(call FindDepsForModule, $n)))) |
|
26116
f051bd253364
8055095: Improve "do nothing" incremental build performance after modularized source code integration
erikj
parents:
diff
changeset
|
367 |
|
45233
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45232
diff
changeset
|
368 |
# 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
|
369 |
# 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
|
370 |
FindTransitiveDepsForModules = \ |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
371 |
$(sort $(foreach m, $1, $(call FindTransitiveDepsForModule, $m))) |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
372 |
|
45233
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45232
diff
changeset
|
373 |
# 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
|
374 |
# 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
|
375 |
FindIndirectExportsForModule = \ |
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45232
diff
changeset
|
376 |
$(TRANSITIVE_MODULES_$(strip $1)) |
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45232
diff
changeset
|
377 |
|
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45232
diff
changeset
|
378 |
# 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
|
379 |
# 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
|
380 |
FindTransitiveIndirectDepsForModule = \ |
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45232
diff
changeset
|
381 |
$(sort $(call FindIndirectExportsForModule, $1) \ |
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45232
diff
changeset
|
382 |
$(foreach m, $(call FindIndirectExportsForModule, $1), \ |
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45232
diff
changeset
|
383 |
$(call FindIndirectExportsForModule, $m) \ |
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45232
diff
changeset
|
384 |
$(foreach n, $(call FindIndirectExportsForModule, $m), \ |
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45232
diff
changeset
|
385 |
$(call FindIndirectExportsForModule, $n)))) |
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45232
diff
changeset
|
386 |
|
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45232
diff
changeset
|
387 |
# 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
|
388 |
# 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
|
389 |
FindTransitiveIndirectDepsForModules = \ |
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45232
diff
changeset
|
390 |
$(sort $(foreach m, $1, $(call FindTransitiveIndirectDepsForModule, $m))) |
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45232
diff
changeset
|
391 |
|
37975
551c5d86de79
8155786: Determine modules depending on upgradeable modules directly and indirectly
erikj
parents:
37973
diff
changeset
|
392 |
# 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
|
393 |
# require an upradeable module. |
551c5d86de79
8155786: Determine modules depending on upgradeable modules directly and indirectly
erikj
parents:
37973
diff
changeset
|
394 |
FindAllUpgradeableModules = \ |
45612 | 395 |
$(sort $(filter-out $(MODULES_FILTER), $(UPGRADEABLE_MODULES) $(UPGRADEABLE_TOOL_MODULES))) |
396 |
||
37975
551c5d86de79
8155786: Determine modules depending on upgradeable modules directly and indirectly
erikj
parents:
37973
diff
changeset
|
397 |
|
26116
f051bd253364
8055095: Improve "do nothing" incremental build performance after modularized source code integration
erikj
parents:
diff
changeset
|
398 |
################################################################################ |
f051bd253364
8055095: Improve "do nothing" incremental build performance after modularized source code integration
erikj
parents:
diff
changeset
|
399 |
|
42505
11439b0c0792
8169925: Organize licenses by module in source, JMOD file, and run-time image
mchung
parents:
42427
diff
changeset
|
400 |
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
|
401 |
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
|
402 |
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
|
403 |
endif |
11439b0c0792
8169925: Organize licenses by module in source, JMOD file, and run-time image
mchung
parents:
42427
diff
changeset
|
404 |
LEGAL_SUBDIRS += share/legal |
11439b0c0792
8169925: Organize licenses by module in source, JMOD file, and run-time image
mchung
parents:
42427
diff
changeset
|
405 |
|
11439b0c0792
8169925: Organize licenses by module in source, JMOD file, and run-time image
mchung
parents:
42427
diff
changeset
|
406 |
# Find all legal dirs for a particular module |
11439b0c0792
8169925: Organize licenses by module in source, JMOD file, and run-time image
mchung
parents:
42427
diff
changeset
|
407 |
# $1 - Module to find legal dirs for |
11439b0c0792
8169925: Organize licenses by module in source, JMOD file, and run-time image
mchung
parents:
42427
diff
changeset
|
408 |
FindModuleLegalDirs = \ |
11439b0c0792
8169925: Organize licenses by module in source, JMOD file, and run-time image
mchung
parents:
42427
diff
changeset
|
409 |
$(strip $(wildcard \ |
11439b0c0792
8169925: Organize licenses by module in source, JMOD file, and run-time image
mchung
parents:
42427
diff
changeset
|
410 |
$(addsuffix /$(strip $1), $(IMPORT_MODULES_LEGAL)) \ |
11439b0c0792
8169925: Organize licenses by module in source, JMOD file, and run-time image
mchung
parents:
42427
diff
changeset
|
411 |
$(foreach sub, $(LEGAL_SUBDIRS), $(addsuffix /$(strip $1)/$(sub), $(TOP_SRC_DIRS))))) |
11439b0c0792
8169925: Organize licenses by module in source, JMOD file, and run-time image
mchung
parents:
42427
diff
changeset
|
412 |
|
11439b0c0792
8169925: Organize licenses by module in source, JMOD file, and run-time image
mchung
parents:
42427
diff
changeset
|
413 |
################################################################################ |
11439b0c0792
8169925: Organize licenses by module in source, JMOD file, and run-time image
mchung
parents:
42427
diff
changeset
|
414 |
|
36543
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
415 |
# Param 1 - Name of module |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
416 |
define ReadSingleImportMetaData |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
417 |
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
|
418 |
classloader := |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
419 |
include_in_jre := |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
420 |
include_in_jdk := |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
421 |
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
|
422 |
ifeq ($$(include_in_jre), true) |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
423 |
JRE_MODULES += $1 |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
424 |
endif |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
425 |
ifeq ($$(include_in_jdk), true) |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
426 |
JDK_MODULES += $1 |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
427 |
endif |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
428 |
ifeq ($$(classloader), boot) |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
429 |
BOOT_MODULES += $1 |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
430 |
else ifeq ($$(classloader), ext) |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
431 |
PLATFORM_MODULES += $1 |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
432 |
endif |
45098
4f30865c93b0
8179105: Respect "include_in_docs" property from imported modules.
ihse
parents:
44830
diff
changeset
|
433 |
ifneq ($$(include_in_docs), false) |
4f30865c93b0
8179105: Respect "include_in_docs" property from imported modules.
ihse
parents:
44830
diff
changeset
|
434 |
# defaults to true if unspecified |
4f30865c93b0
8179105: Respect "include_in_docs" property from imported modules.
ihse
parents:
44830
diff
changeset
|
435 |
DOCS_MODULES += $1 |
4f30865c93b0
8179105: Respect "include_in_docs" property from imported modules.
ihse
parents:
44830
diff
changeset
|
436 |
endif |
36543
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
437 |
else |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
438 |
# Default to include in all |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
439 |
JRE_MODULES += $1 |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
440 |
JDK_MODULES += $1 |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
441 |
endif |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
442 |
endef |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
443 |
|
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
444 |
# 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
|
445 |
# 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
|
446 |
# 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
|
447 |
# * JRE_MODULES |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
448 |
# * JDK_MODULES |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
449 |
# * BOOT_MODULES |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
450 |
# * PLATFORM_MODULES |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
451 |
# * JRE_TOOL_MODULES |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
452 |
define ReadImportMetaData |
36725 | 453 |
IMPORTED_MODULES := $$(call FindImportedModules) |
454 |
$$(foreach m, $$(IMPORTED_MODULES), \ |
|
455 |
$$(eval $$(call ReadSingleImportMetaData, $$m))) |
|
36543
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
456 |
endef |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
457 |
|
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
458 |
################################################################################ |
a8ce27ddc757
8152197: Single place to specify module-specific information for images build
mchung
parents:
36506
diff
changeset
|
459 |
|
26116
f051bd253364
8055095: Improve "do nothing" incremental build performance after modularized source code integration
erikj
parents:
diff
changeset
|
460 |
endif # _MODULES_GMK |