author | vlivanov |
Thu, 18 Jan 2018 02:25:18 +0300 | |
changeset 48596 | 860326263d1f |
parent 48327 | d2a837cf9ff1 |
child 48357 | 63fb11c1550d |
child 48773 | 8a0181cb87d2 |
permissions | -rw-r--r-- |
34491 | 1 |
/* |
44727 | 2 |
* Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved. |
34491 | 3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
* |
|
5 |
* This code is free software; you can redistribute it and/or modify it |
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
|
7 |
* published by the Free Software Foundation. Oracle designates this |
|
8 |
* particular file as subject to the "Classpath" exception as provided |
|
9 |
* by Oracle in the LICENSE file that accompanied this code. |
|
10 |
* |
|
11 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
|
12 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
13 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
14 |
* version 2 for more details (a copy is included in the LICENSE file that |
|
15 |
* accompanied this code). |
|
16 |
* |
|
17 |
* You should have received a copy of the GNU General Public License version |
|
18 |
* 2 along with this work; if not, write to the Free Software Foundation, |
|
19 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
20 |
* |
|
21 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
|
22 |
* or visit www.oracle.com if you need additional information or have any |
|
23 |
* questions. |
|
24 |
*/ |
|
25 |
||
26 |
/* |
|
34496 | 27 |
* This file defines build profiles for the JIB tool and others. |
34491 | 28 |
* |
29 |
* A build profile defines a set of configuration options and external |
|
30 |
* dependencies that we for some reason or other care about specifically. |
|
31 |
* Typically, build profiles are defined for the build configurations we |
|
32 |
* build regularly. |
|
33 |
* |
|
34 |
* Contract against this file from the tools that use it, is to provide |
|
35 |
* a function on the form: |
|
36 |
* |
|
34496 | 37 |
* getJibProfiles(input) |
34491 | 38 |
* |
39 |
* which returns an object graph describing the profiles and their |
|
40 |
* dependencies. The name of the function is based on the name of this |
|
41 |
* file, minus the extension and the '-', camel cased and prefixed with |
|
42 |
* 'get'. |
|
43 |
* |
|
44 |
* |
|
45 |
* The parameter 'input' is an object that optionally contains some data. |
|
46 |
* Optionally because a tool may read the configuration for different purposes. |
|
47 |
* To initially get a list of available profiles, the active profile may not |
|
48 |
* yet be known for instance. |
|
49 |
* |
|
50 |
* Data that may be set on the input object: |
|
51 |
* |
|
52 |
* input.profile = <name of active profile> |
|
53 |
* |
|
54 |
* If the active profile is set, the following data from it must also |
|
55 |
* be provided: |
|
56 |
* |
|
57 |
* input.profile |
|
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
58 |
* input.build_id |
34491 | 59 |
* input.target_os |
60 |
* input.target_cpu |
|
61 |
* input.build_os |
|
62 |
* input.build_cpu |
|
63 |
* input.target_platform |
|
64 |
* input.build_platform |
|
65 |
* // The build_osenv_* variables describe the unix layer on Windows systems, |
|
66 |
* // i.e. Cygwin, which may also be 32 or 64 bit. |
|
67 |
* input.build_osenv |
|
68 |
* input.build_osenv_cpu |
|
69 |
* input.build_osenv_platform |
|
70 |
* |
|
71 |
* For more complex nested attributes, there is a method "get": |
|
72 |
* |
|
73 |
* input.get("<dependency>", "<attribute>") |
|
74 |
* |
|
75 |
* Valid attributes are: |
|
76 |
* install_path |
|
77 |
* download_path |
|
78 |
* download_dir |
|
79 |
* |
|
80 |
* |
|
81 |
* The output data generated by this configuration file has the following |
|
82 |
* format: |
|
83 |
* |
|
84 |
* data: { |
|
85 |
* // Identifies the version of this format to the tool reading it |
|
86 |
* format_version: "1.0", |
|
87 |
* |
|
34496 | 88 |
* // Name of base outputdir. JIB assumes the actual output dir is formed |
34491 | 89 |
* // by adding the configuration name: <output_basedir>/<config-name> |
90 |
* output_basedir: "build", |
|
91 |
* // Configure argument to use to specify configuration name |
|
92 |
* configuration_configure_arg: |
|
93 |
* // Make argument to use to specify configuration name |
|
94 |
* configuration_make_arg: |
|
95 |
* |
|
96 |
* profiles: { |
|
97 |
* <profile-name>: { |
|
98 |
* // Name of os the profile is built to run on |
|
99 |
* target_os; <string> |
|
100 |
* // Name of cpu the profile is built to run on |
|
101 |
* target_cpu; <string> |
|
102 |
* // Combination of target_os and target_cpu for convenience |
|
103 |
* target_platform; <string> |
|
104 |
* // Name of os the profile is built on |
|
105 |
* build_os; <string> |
|
106 |
* // Name of cpu the profile is built on |
|
107 |
* build_cpu; <string> |
|
108 |
* // Combination of build_os and build_cpu for convenience |
|
109 |
* build_platform; <string> |
|
110 |
* |
|
111 |
* // List of dependencies needed to build this profile |
|
112 |
* dependencies: <Array of strings> |
|
113 |
* |
|
114 |
* // List of configure args to use for this profile |
|
115 |
* configure_args: <Array of strings> |
|
116 |
* |
|
117 |
* // List of free form labels describing aspects of this profile |
|
118 |
* labels: <Array of strings> |
|
119 |
* } |
|
120 |
* } |
|
121 |
* |
|
122 |
* // Dependencies use a Maven like deployment structure |
|
123 |
* dependencies: { |
|
124 |
* <dependency-name>: { |
|
125 |
* // Organization part of path defining this dependency |
|
126 |
* organization: <string> |
|
127 |
* // File extension for this dependency |
|
128 |
* ext: <string> |
|
129 |
* // Module part of path for defining this dependency, |
|
130 |
* // defaults to <dependency-name> |
|
131 |
* module: <string> |
|
132 |
* // Revision part of path for defining this dependency |
|
133 |
* revision: <string> |
|
134 |
* |
|
135 |
* // List of configure args to add when using this dependency, |
|
136 |
* // defaults to |
|
137 |
* // "--with-<dependency-name>=input.get("<dependency-name", "install_path")" |
|
138 |
* configure_args: <array of strings> |
|
139 |
* |
|
140 |
* // Name of environment variable to set when using this dependency |
|
141 |
* // when running make |
|
142 |
* environment_name: <string> |
|
143 |
* // Value of environment variable to set when using this dependency |
|
144 |
* // when running make |
|
145 |
* environment_value: <string> |
|
146 |
* |
|
147 |
* // Value to add to the PATH variable when using this dependency, |
|
148 |
* // applies to both make and configure |
|
149 |
* environment_path: <string> |
|
150 |
* } |
|
151 |
* |
|
152 |
* <dependency-name>: { |
|
153 |
* // For certain dependencies where a legacy distribution mechanism is |
|
154 |
* // already in place, the "javare" server layout is also supported |
|
155 |
* // Indicate that an alternate server source and layout should be used |
|
156 |
* server: "javare" |
|
157 |
* |
|
158 |
* // For "javare", a combination of module, revision, |
|
159 |
* // build number (optional), files and checksum file is possible for |
|
160 |
* // artifacts following the standard layout. |
|
161 |
* module: <string> |
|
162 |
* revision: <string> |
|
163 |
* build_number: <string> |
|
164 |
* checksum_file: <string> |
|
165 |
* file: <string> |
|
166 |
* |
|
167 |
* // For other files, use checksum path and path instead |
|
168 |
* checksum_path: <string> |
|
169 |
* path: <string> |
|
170 |
* } |
|
171 |
* } |
|
172 |
* } |
|
173 |
*/ |
|
174 |
||
175 |
/** |
|
176 |
* Main entry to generate the profile configuration |
|
177 |
* |
|
178 |
* @param input External data to use for generating the configuration |
|
179 |
* @returns {{}} Profile configuration |
|
180 |
*/ |
|
34496 | 181 |
var getJibProfiles = function (input) { |
34491 | 182 |
|
183 |
var data = {}; |
|
184 |
||
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
185 |
// Identifies the version of this format to the tool reading it. |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
186 |
// 1.1 signifies that the publish, publish-src and get-src features are usable. |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
187 |
data.format_version = "1.1"; |
34491 | 188 |
|
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
189 |
// Organization, product and version are used when uploading/publishing build results |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
190 |
data.organization = ""; |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
191 |
data.product = "jdk"; |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
192 |
data.version = getVersion(); |
34491 | 193 |
|
34496 | 194 |
// The base directory for the build output. JIB will assume that the |
34491 | 195 |
// actual build directory will be <output_basedir>/<configuration> |
196 |
data.output_basedir = "build"; |
|
197 |
// The configure argument to use to specify the name of the configuration |
|
198 |
data.configuration_configure_arg = "--with-conf-name="; |
|
199 |
// The make argument to use to specify the name of the configuration |
|
200 |
data.configuration_make_arg = "CONF_NAME="; |
|
201 |
||
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
202 |
// Exclude list to use when Jib creates a source bundle |
46939
23c02a1b49ee
8186218: Make JIB exclude webrev from all sub-repo levels when creating source bundles
ctornqvi
parents:
46251
diff
changeset
|
203 |
data.src_bundle_excludes = "./build webrev* */webrev* */*/webrev* */*/*/webrev* .hg */.hg */*/.hg */*/*/.hg"; |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
204 |
// Include list to use when creating a minimal jib source bundle which |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
205 |
// contains just the jib configuration files. |
47928
fb62d4519338
8191715: Update documentation pointing to "common" directory
ihse
parents:
47825
diff
changeset
|
206 |
data.conf_bundle_includes = "*/conf/jib-profiles.* make/autoconf/version-numbers" |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
207 |
|
34491 | 208 |
// Define some common values |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
209 |
var common = getJibProfilesCommon(input, data); |
34491 | 210 |
// Generate the profiles part of the configuration |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
211 |
data.profiles = getJibProfilesProfiles(input, common, data); |
34491 | 212 |
// Generate the dependencies part of the configuration |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
213 |
data.dependencies = getJibProfilesDependencies(input, common, data); |
34491 | 214 |
|
215 |
return data; |
|
216 |
}; |
|
217 |
||
218 |
/** |
|
219 |
* Generates some common values |
|
220 |
* |
|
221 |
* @param input External data to use for generating the configuration |
|
222 |
* @returns Common values |
|
223 |
*/ |
|
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
224 |
var getJibProfilesCommon = function (input, data) { |
37649
3809534d4531
8154841: Let different Jib profiles have different default make targets
erikj
parents:
37407
diff
changeset
|
225 |
var common = {}; |
3809534d4531
8154841: Let different Jib profiles have different default make targets
erikj
parents:
37407
diff
changeset
|
226 |
|
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
227 |
common.organization = "jpg.infra.builddeps"; |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
228 |
common.build_id = getBuildId(input); |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
229 |
common.build_number = input.build_number != null ? input.build_number : "0"; |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
230 |
|
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
231 |
// List of the main profile names used for iteration |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
232 |
common.main_profile_names = [ |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
233 |
"linux-x64", "linux-x86", "macosx-x64", "solaris-x64", |
44625
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
234 |
"solaris-sparcv9", "windows-x64", "windows-x86", |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
235 |
"linux-arm64", "linux-arm-vfp-hflt", "linux-arm-vfp-hflt-dyn" |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
236 |
]; |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
237 |
|
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
238 |
// These are the base setttings for all the main build profiles. |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
239 |
common.main_profile_base = { |
46196
822ca950ddaa
8175300: Enable artifact resolution for jtreg tests
ctornqvi
parents:
46193
diff
changeset
|
240 |
dependencies: ["boot_jdk", "gnumake", "jtreg", "jib"], |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
241 |
default_make_targets: ["product-bundles", "test-bundles"], |
45048
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
242 |
configure_args: concat(["--enable-jtreg-failure-handler"], |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
243 |
versionArgs(input, common)) |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
244 |
}; |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
245 |
// Extra settings for debug profiles |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
246 |
common.debug_suffix = "-debug"; |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
247 |
common.debug_profile_base = { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
248 |
configure_args: ["--enable-debug"], |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
249 |
labels: "debug" |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
250 |
}; |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
251 |
// Extra settings for slowdebug profiles |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
252 |
common.slowdebug_suffix = "-slowdebug"; |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
253 |
common.slowdebug_profile_base = { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
254 |
configure_args: ["--with-debug-level=slowdebug"], |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
255 |
labels: "slowdebug" |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
256 |
}; |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
257 |
// Extra settings for openjdk only profiles |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
258 |
common.open_suffix = "-open"; |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
259 |
common.open_profile_base = { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
260 |
configure_args: ["--enable-openjdk-only"], |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
261 |
labels: "open" |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
262 |
}; |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
263 |
|
42980
4ab3d4b67cc0
8171500: Explicitly set --with-target-bits=64 in 64bit jib profiles
erikj
parents:
42848
diff
changeset
|
264 |
common.configure_args_64bit = ["--with-target-bits=64"]; |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
265 |
common.configure_args_32bit = ["--with-target-bits=32"]; |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
266 |
|
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
267 |
/** |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
268 |
* Define common artifacts template for all main profiles |
45048
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
269 |
* @param o - Object containing data for artifacts |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
270 |
*/ |
45048
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
271 |
common.main_profile_artifacts = function (o) { |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
272 |
var jdk_subdir = (o.jdk_subdir != null ? o.jdk_subdir : "jdk-" + data.version); |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
273 |
var jre_subdir = (o.jre_subdir != null ? o.jre_subdir : "jre-" + data.version); |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
274 |
var pf = o.platform |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
275 |
return { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
276 |
artifacts: { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
277 |
jdk: { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
278 |
local: "bundles/\\(jdk.*bin.tar.gz\\)", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
279 |
remote: [ |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
280 |
"bundles/" + pf + "/jdk-" + data.version + "_" + pf + "_bin.tar.gz", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
281 |
"bundles/" + pf + "/\\1" |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
282 |
], |
45048
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
283 |
subdir: jdk_subdir, |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
284 |
exploded: "images/jdk" |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
285 |
}, |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
286 |
jre: { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
287 |
local: "bundles/\\(jre.*bin.tar.gz\\)", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
288 |
remote: [ |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
289 |
"bundles/" + pf + "/jre-" + data.version + "_" + pf + "_bin.tar.gz", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
290 |
"bundles/" + pf + "/\\1" |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
291 |
], |
45048
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
292 |
subdir: jre_subdir, |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
293 |
exploded: "images/jre" |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
294 |
}, |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
295 |
test: { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
296 |
local: "bundles/\\(jdk.*bin-tests.tar.gz\\)", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
297 |
remote: [ |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
298 |
"bundles/" + pf + "/jdk-" + data.version + "_" + pf + "_bin-tests.tar.gz", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
299 |
"bundles/" + pf + "/\\1" |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
300 |
], |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
301 |
exploded: "images/test" |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
302 |
}, |
47440
963f70aa578d
8189682: JDK demos/tests should be in a separate bundle than hotspot ones
erikj
parents:
47433
diff
changeset
|
303 |
test_demos: { |
963f70aa578d
8189682: JDK demos/tests should be in a separate bundle than hotspot ones
erikj
parents:
47433
diff
changeset
|
304 |
local: "bundles/\\(jdk.*bin-tests-demos.tar.gz\\)", |
963f70aa578d
8189682: JDK demos/tests should be in a separate bundle than hotspot ones
erikj
parents:
47433
diff
changeset
|
305 |
remote: [ |
963f70aa578d
8189682: JDK demos/tests should be in a separate bundle than hotspot ones
erikj
parents:
47433
diff
changeset
|
306 |
"bundles/" + pf + "/jdk-" + data.version + "_" + pf + "_bin-tests-demos.tar.gz", |
963f70aa578d
8189682: JDK demos/tests should be in a separate bundle than hotspot ones
erikj
parents:
47433
diff
changeset
|
307 |
"bundles/" + pf + "/\\1" |
963f70aa578d
8189682: JDK demos/tests should be in a separate bundle than hotspot ones
erikj
parents:
47433
diff
changeset
|
308 |
], |
963f70aa578d
8189682: JDK demos/tests should be in a separate bundle than hotspot ones
erikj
parents:
47433
diff
changeset
|
309 |
exploded: "images/test" |
963f70aa578d
8189682: JDK demos/tests should be in a separate bundle than hotspot ones
erikj
parents:
47433
diff
changeset
|
310 |
}, |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
311 |
jdk_symbols: { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
312 |
local: "bundles/\\(jdk.*bin-symbols.tar.gz\\)", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
313 |
remote: [ |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
314 |
"bundles/" + pf + "/jdk-" + data.version + "_" + pf + "_bin-symbols.tar.gz", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
315 |
"bundles/" + pf + "/\\1" |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
316 |
], |
45048
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
317 |
subdir: jdk_subdir, |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
318 |
exploded: "images/jdk" |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
319 |
}, |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
320 |
jre_symbols: { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
321 |
local: "bundles/\\(jre.*bin-symbols.tar.gz\\)", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
322 |
remote: [ |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
323 |
"bundles/" + pf + "/jre-" + data.version + "_" + pf + "_bin-symbols.tar.gz", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
324 |
"bundles/" + pf + "/\\1" |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
325 |
], |
45048
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
326 |
subdir: jre_subdir, |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
327 |
exploded: "images/jre" |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
328 |
} |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
329 |
} |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
330 |
}; |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
331 |
}; |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
332 |
|
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
333 |
|
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
334 |
/** |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
335 |
* Define common artifacts template for all debug profiles |
45048
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
336 |
* @param o - Object containing data for artifacts |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
337 |
*/ |
45048
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
338 |
common.debug_profile_artifacts = function (o) { |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
339 |
var jdk_subdir = "jdk-" + data.version + "/fastdebug"; |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
340 |
var jre_subdir = "jre-" + data.version + "/fastdebug"; |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
341 |
var pf = o.platform |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
342 |
return { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
343 |
artifacts: { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
344 |
jdk: { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
345 |
local: "bundles/\\(jdk.*bin-debug.tar.gz\\)", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
346 |
remote: [ |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
347 |
"bundles/" + pf + "/jdk-" + data.version + "_" + pf + "_bin-debug.tar.gz", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
348 |
"bundles/" + pf + "/\\1" |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
349 |
], |
45048
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
350 |
subdir: jdk_subdir, |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
351 |
exploded: "images/jdk" |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
352 |
}, |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
353 |
jre: { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
354 |
local: "bundles/\\(jre.*bin-debug.tar.gz\\)", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
355 |
remote: [ |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
356 |
"bundles/" + pf + "/jre-" + data.version + "_" + pf + "_bin-debug.tar.gz", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
357 |
"bundles/" + pf + "/\\1" |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
358 |
], |
45048
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
359 |
subdir: jre_subdir, |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
360 |
exploded: "images/jre" |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
361 |
}, |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
362 |
test: { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
363 |
local: "bundles/\\(jdk.*bin-tests-debug.tar.gz\\)", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
364 |
remote: [ |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
365 |
"bundles/" + pf + "/jdk-" + data.version + "_" + pf + "_bin-tests-debug.tar.gz", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
366 |
"bundles/" + pf + "/\\1" |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
367 |
], |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
368 |
exploded: "images/test" |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
369 |
}, |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
370 |
jdk_symbols: { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
371 |
local: "bundles/\\(jdk.*bin-debug-symbols.tar.gz\\)", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
372 |
remote: [ |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
373 |
"bundles/" + pf + "/jdk-" + data.version + "_" + pf + "_bin-debug-symbols.tar.gz", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
374 |
"bundles/" + pf + "/\\1" |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
375 |
], |
45048
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
376 |
subdir: jdk_subdir, |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
377 |
exploded: "images/jdk" |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
378 |
}, |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
379 |
jre_symbols: { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
380 |
local: "bundles/\\(jre.*bin-debug-symbols.tar.gz\\)", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
381 |
remote: [ |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
382 |
"bundles/" + pf + "/jre-" + data.version + "_" + pf + "_bin-debug-symbols.tar.gz", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
383 |
"bundles/" + pf + "/\\1" |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
384 |
], |
45048
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
385 |
subdir: jre_subdir, |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
386 |
exploded: "images/jre" |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
387 |
} |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
388 |
} |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
389 |
}; |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
390 |
}; |
34491 | 391 |
|
47365 | 392 |
common.boot_jdk_version = "9"; |
393 |
common.boot_jdk_home = input.get("boot_jdk", "home_path") + "/jdk-" |
|
394 |
+ common.boot_jdk_version |
|
41047
de6f69208f82
8164301: jib should provide a JDK for running jtreg with
erikj
parents:
40241
diff
changeset
|
395 |
+ (input.build_os == "macosx" ? ".jdk/Contents/Home" : ""); |
de6f69208f82
8164301: jib should provide a JDK for running jtreg with
erikj
parents:
40241
diff
changeset
|
396 |
|
34491 | 397 |
return common; |
398 |
}; |
|
399 |
||
400 |
/** |
|
401 |
* Generates the profiles part of the configuration. |
|
402 |
* |
|
403 |
* @param input External data to use for generating the configuration |
|
404 |
* @param common The common values |
|
405 |
* @returns {{}} Profiles part of the configuration |
|
406 |
*/ |
|
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
407 |
var getJibProfilesProfiles = function (input, common, data) { |
34491 | 408 |
// Main SE profiles |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
409 |
var profiles = { |
34491 | 410 |
|
411 |
"linux-x64": { |
|
412 |
target_os: "linux", |
|
413 |
target_cpu: "x64", |
|
44734 | 414 |
dependencies: ["devkit", "graphviz", "pandoc"], |
44727 | 415 |
configure_args: concat(common.configure_args_64bit, |
416 |
"--enable-full-docs", "--with-zlib=system"), |
|
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
417 |
default_make_targets: ["docs-bundles"], |
34491 | 418 |
}, |
419 |
||
420 |
"linux-x86": { |
|
421 |
target_os: "linux", |
|
422 |
target_cpu: "x86", |
|
423 |
build_cpu: "x64", |
|
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
424 |
dependencies: ["devkit"], |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
425 |
configure_args: concat(common.configure_args_32bit, |
39190
a6b5b18fd06c
8154209: Remove client VM from default JIB profile on windows-x86 and linux-x86
lmesnik
parents:
37972
diff
changeset
|
426 |
"--with-jvm-variants=minimal,server", "--with-zlib=system"), |
34491 | 427 |
}, |
428 |
||
429 |
"macosx-x64": { |
|
430 |
target_os: "macosx", |
|
431 |
target_cpu: "x64", |
|
48035
69d409f1b81e
8190464: OpenJDK on macosx needs to bundle freetype
erikj
parents:
47928
diff
changeset
|
432 |
dependencies: ["devkit", "freetype"], |
45875 | 433 |
configure_args: concat(common.configure_args_64bit, "--with-zlib=system", |
434 |
"--with-macosx-version-max=10.7.0"), |
|
34491 | 435 |
}, |
436 |
||
437 |
"solaris-x64": { |
|
438 |
target_os: "solaris", |
|
439 |
target_cpu: "x64", |
|
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
440 |
dependencies: ["devkit", "cups"], |
42980
4ab3d4b67cc0
8171500: Explicitly set --with-target-bits=64 in 64bit jib profiles
erikj
parents:
42848
diff
changeset
|
441 |
configure_args: concat(common.configure_args_64bit, |
4ab3d4b67cc0
8171500: Explicitly set --with-target-bits=64 in 64bit jib profiles
erikj
parents:
42848
diff
changeset
|
442 |
"--with-zlib=system", "--enable-dtrace"), |
34491 | 443 |
}, |
444 |
||
445 |
"solaris-sparcv9": { |
|
446 |
target_os: "solaris", |
|
447 |
target_cpu: "sparcv9", |
|
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
448 |
dependencies: ["devkit", "cups"], |
42980
4ab3d4b67cc0
8171500: Explicitly set --with-target-bits=64 in 64bit jib profiles
erikj
parents:
42848
diff
changeset
|
449 |
configure_args: concat(common.configure_args_64bit, |
4ab3d4b67cc0
8171500: Explicitly set --with-target-bits=64 in 64bit jib profiles
erikj
parents:
42848
diff
changeset
|
450 |
"--with-zlib=system", "--enable-dtrace"), |
34491 | 451 |
}, |
452 |
||
453 |
"windows-x64": { |
|
454 |
target_os: "windows", |
|
455 |
target_cpu: "x64", |
|
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
456 |
dependencies: ["devkit", "freetype"], |
42980
4ab3d4b67cc0
8171500: Explicitly set --with-target-bits=64 in 64bit jib profiles
erikj
parents:
42848
diff
changeset
|
457 |
configure_args: concat(common.configure_args_64bit), |
34491 | 458 |
}, |
459 |
||
460 |
"windows-x86": { |
|
461 |
target_os: "windows", |
|
462 |
target_cpu: "x86", |
|
463 |
build_cpu: "x64", |
|
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
464 |
dependencies: ["devkit", "freetype"], |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
465 |
configure_args: concat(common.configure_args_32bit), |
44625
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
466 |
}, |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
467 |
|
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
468 |
"linux-arm64": { |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
469 |
target_os: "linux", |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
470 |
target_cpu: "aarch64", |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
471 |
build_cpu: "x64", |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
472 |
dependencies: ["devkit", "build_devkit", "cups", "headless_stubs"], |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
473 |
configure_args: [ |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
474 |
"--with-cpu-port=arm64", |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
475 |
"--with-jvm-variants=server", |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
476 |
"--openjdk-target=aarch64-linux-gnu", |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
477 |
"--enable-headless-only" |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
478 |
], |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
479 |
}, |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
480 |
|
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
481 |
"linux-arm-vfp-hflt": { |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
482 |
target_os: "linux", |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
483 |
target_cpu: "arm", |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
484 |
build_cpu: "x64", |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
485 |
dependencies: ["devkit", "build_devkit", "cups"], |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
486 |
configure_args: [ |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
487 |
"--with-jvm-variants=minimal1,client", |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
488 |
"--with-x=" + input.get("devkit", "install_path") + "/arm-linux-gnueabihf/libc/usr/X11R6-PI", |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
489 |
"--openjdk-target=arm-linux-gnueabihf", |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
490 |
"--with-abi-profile=arm-vfp-hflt" |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
491 |
], |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
492 |
}, |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
493 |
|
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
494 |
// Special version of the SE profile adjusted to be testable on arm64 hardware. |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
495 |
"linux-arm-vfp-hflt-dyn": { |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
496 |
configure_args: "--with-stdc++lib=dynamic" |
34491 | 497 |
} |
498 |
}; |
|
44625
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
499 |
// Let linux-arm-vfp-hflt-dyn inherit everything from linux-arm-vfp-hflt |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
500 |
profiles["linux-arm-vfp-hflt-dyn"] = concatObjects( |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
501 |
profiles["linux-arm-vfp-hflt-dyn"], profiles["linux-arm-vfp-hflt"]); |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
502 |
|
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
503 |
// Add the base settings to all the main profiles |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
504 |
common.main_profile_names.forEach(function (name) { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
505 |
profiles[name] = concatObjects(common.main_profile_base, profiles[name]); |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
506 |
}); |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
507 |
|
34491 | 508 |
// Generate debug versions of all the main profiles |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
509 |
common.main_profile_names.forEach(function (name) { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
510 |
var debugName = name + common.debug_suffix; |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
511 |
profiles[debugName] = concatObjects(profiles[name], |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
512 |
common.debug_profile_base); |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
513 |
}); |
36532 | 514 |
// Generate slowdebug versions of all the main profiles |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
515 |
common.main_profile_names.forEach(function (name) { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
516 |
var debugName = name + common.slowdebug_suffix; |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
517 |
profiles[debugName] = concatObjects(profiles[name], |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
518 |
common.slowdebug_profile_base); |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
519 |
}); |
34491 | 520 |
|
42425 | 521 |
// Profiles for building the zero jvm variant. These are used for verification |
522 |
// in JPRT. |
|
523 |
var zeroProfiles = { |
|
524 |
"linux-x64-zero": { |
|
525 |
target_os: "linux", |
|
526 |
target_cpu: "x64", |
|
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
527 |
dependencies: ["devkit"], |
42980
4ab3d4b67cc0
8171500: Explicitly set --with-target-bits=64 in 64bit jib profiles
erikj
parents:
42848
diff
changeset
|
528 |
configure_args: concat(common.configure_args_64bit, [ |
42425 | 529 |
"--with-zlib=system", |
530 |
"--with-jvm-variants=zero", |
|
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
531 |
"--enable-libffi-bundling" |
42980
4ab3d4b67cc0
8171500: Explicitly set --with-target-bits=64 in 64bit jib profiles
erikj
parents:
42848
diff
changeset
|
532 |
]) |
42425 | 533 |
}, |
534 |
||
535 |
"linux-x86-zero": { |
|
536 |
target_os: "linux", |
|
537 |
target_cpu: "x86", |
|
538 |
build_cpu: "x64", |
|
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
539 |
dependencies: ["devkit"], |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
540 |
configure_args: concat(common.configure_args_32bit, [ |
42425 | 541 |
"--with-zlib=system", |
542 |
"--with-jvm-variants=zero", |
|
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
543 |
"--enable-libffi-bundling" |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
544 |
]) |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
545 |
} |
42425 | 546 |
} |
547 |
profiles = concatObjects(profiles, zeroProfiles); |
|
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
548 |
|
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
549 |
// Add the base settings to the zero profiles and generate debug profiles |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
550 |
Object.keys(zeroProfiles).forEach(function (name) { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
551 |
var debugName = name + common.debug_suffix; |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
552 |
profiles[name] = concatObjects(common.main_profile_base, profiles[name]); |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
553 |
profiles[debugName] = concatObjects(profiles[name], common.debug_profile_base); |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
554 |
}); |
42425 | 555 |
|
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
556 |
// |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
557 |
// Define artifacts for profiles |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
558 |
// |
45048
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
559 |
// Macosx bundles are named osx |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
560 |
// tar.gz. |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
561 |
var artifactData = { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
562 |
"linux-x64": { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
563 |
platform: "linux-x64", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
564 |
}, |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
565 |
"linux-x86": { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
566 |
platform: "linux-x86", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
567 |
}, |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
568 |
"macosx-x64": { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
569 |
platform: "osx-x64", |
45048
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
570 |
jdk_subdir: "jdk-" + data.version + ".jdk/Contents/Home", |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
571 |
jre_subdir: "jre-" + data.version + ".jre/Contents/Home" |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
572 |
}, |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
573 |
"solaris-x64": { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
574 |
platform: "solaris-x64", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
575 |
}, |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
576 |
"solaris-sparcv9": { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
577 |
platform: "solaris-sparcv9", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
578 |
}, |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
579 |
"windows-x64": { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
580 |
platform: "windows-x64", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
581 |
}, |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
582 |
"windows-x86": { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
583 |
platform: "windows-x86", |
44625
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
584 |
}, |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
585 |
"linux-arm64": { |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
586 |
platform: "linux-arm64-vfp-hflt", |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
587 |
}, |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
588 |
"linux-arm-vfp-hflt": { |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
589 |
platform: "linux-arm32-vfp-hflt", |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
590 |
}, |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
591 |
"linux-arm-vfp-hflt-dyn": { |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
592 |
platform: "linux-arm32-vfp-hflt-dyn", |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
593 |
} |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
594 |
} |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
595 |
// Generate common artifacts for all main profiles |
44625
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
596 |
Object.keys(artifactData).forEach(function (name) { |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
597 |
profiles[name] = concatObjects(profiles[name], |
45048
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
598 |
common.main_profile_artifacts(artifactData[name])); |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
599 |
}); |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
600 |
|
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
601 |
// Generate common artifacts for all debug profiles |
44625
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
602 |
Object.keys(artifactData).forEach(function (name) { |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
603 |
var debugName = name + common.debug_suffix; |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
604 |
profiles[debugName] = concatObjects(profiles[debugName], |
45048
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
605 |
common.debug_profile_artifacts(artifactData[name])); |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
606 |
}); |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
607 |
|
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
608 |
profilesArtifacts = { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
609 |
"linux-x64": { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
610 |
artifacts: { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
611 |
doc_api_spec: { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
612 |
local: "bundles/\\(jdk.*doc-api-spec.tar.gz\\)", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
613 |
remote: [ |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
614 |
"bundles/common/jdk-" + data.version + "_doc-api-spec.tar.gz", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
615 |
"bundles/linux-x64/\\1" |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
616 |
], |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
617 |
}, |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
618 |
} |
47721
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
619 |
} |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
620 |
}; |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
621 |
profiles = concatObjects(profiles, profilesArtifacts); |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
622 |
|
47721
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
623 |
// Generate open only profiles for all the main and debug profiles. |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
624 |
// Rewrite artifact remote paths by adding "openjdk/GPL". |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
625 |
common.main_profile_names.forEach(function (name) { |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
626 |
var openName = name + common.open_suffix; |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
627 |
profiles[openName] = concatObjects(profiles[name], |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
628 |
common.open_profile_base); |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
629 |
for (artifactName in profiles[openName].artifacts) { |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
630 |
var artifact = profiles[openName].artifacts[artifactName]; |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
631 |
artifact.remote = replaceAll( |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
632 |
"bundles\/", "bundles/openjdk/GPL/", |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
633 |
(artifact.remote != null ? artifact.remote : artifact.local)); |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
634 |
} |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
635 |
var debugName = name + common.debug_suffix; |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
636 |
var openDebugName = name + common.open_suffix + common.debug_suffix; |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
637 |
profiles[openDebugName] = concatObjects(profiles[debugName], |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
638 |
common.open_profile_base); |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
639 |
for (artifactName in profiles[openDebugName].artifacts) { |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
640 |
var artifact = profiles[openDebugName].artifacts[artifactName]; |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
641 |
artifact.remote = replaceAll( |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
642 |
"bundles\/", "bundles/openjdk/GPL/", |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
643 |
(artifact.remote != null ? artifact.remote : artifact.local)); |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
644 |
} |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
645 |
}); |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
646 |
|
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
647 |
// Define the reference implementation profiles. These are basically the same |
47721
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
648 |
// as the open profiles, but upload artifacts to a different location. |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
649 |
common.main_profile_names.forEach(function (name) { |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
650 |
var riName = name + "-ri"; |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
651 |
var riDebugName = riName + common.debug_suffix; |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
652 |
var openName = name + common.open_suffix; |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
653 |
var openDebugName = openName + common.debug_suffix; |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
654 |
profiles[riName] = clone(profiles[openName]); |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
655 |
profiles[riDebugName] = clone(profiles[openDebugName]); |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
656 |
// Rewrite all remote dirs to "bundles/openjdk/BCL/..." |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
657 |
for (artifactName in profiles[riName].artifacts) { |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
658 |
var artifact = profiles[riName].artifacts[artifactName]; |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
659 |
artifact.remote = replaceAll( |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
660 |
"\/GPL\/", "/BCL/", |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
661 |
(artifact.remote != null ? artifact.remote : artifact.local)); |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
662 |
} |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
663 |
}); |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
664 |
|
48212
6a8ab8d1fb8b
8188789: Update JDK 9.0.1 and Future OpenJDK bundle names
erikj
parents:
48079
diff
changeset
|
665 |
// For open profiles, the non-debug jdk bundles, need an "open" prefix on the |
6a8ab8d1fb8b
8188789: Update JDK 9.0.1 and Future OpenJDK bundle names
erikj
parents:
48079
diff
changeset
|
666 |
// remote bundle names, forming the word "openjdk". See JDK-8188789. |
6a8ab8d1fb8b
8188789: Update JDK 9.0.1 and Future OpenJDK bundle names
erikj
parents:
48079
diff
changeset
|
667 |
common.main_profile_names.forEach(function (name) { |
6a8ab8d1fb8b
8188789: Update JDK 9.0.1 and Future OpenJDK bundle names
erikj
parents:
48079
diff
changeset
|
668 |
var openName = name + common.open_suffix; |
6a8ab8d1fb8b
8188789: Update JDK 9.0.1 and Future OpenJDK bundle names
erikj
parents:
48079
diff
changeset
|
669 |
profiles[openName].artifacts["jdk"].remote = replaceAll( |
6a8ab8d1fb8b
8188789: Update JDK 9.0.1 and Future OpenJDK bundle names
erikj
parents:
48079
diff
changeset
|
670 |
"\/jdk-", "/openjdk-", |
6a8ab8d1fb8b
8188789: Update JDK 9.0.1 and Future OpenJDK bundle names
erikj
parents:
48079
diff
changeset
|
671 |
replaceAll("\/\\1", "/open\\1", |
6a8ab8d1fb8b
8188789: Update JDK 9.0.1 and Future OpenJDK bundle names
erikj
parents:
48079
diff
changeset
|
672 |
profiles[openName].artifacts["jdk"].remote)); |
6a8ab8d1fb8b
8188789: Update JDK 9.0.1 and Future OpenJDK bundle names
erikj
parents:
48079
diff
changeset
|
673 |
}); |
6a8ab8d1fb8b
8188789: Update JDK 9.0.1 and Future OpenJDK bundle names
erikj
parents:
48079
diff
changeset
|
674 |
|
47721
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
675 |
// Profiles used to run tests. Used in JPRT and Mach 5. |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
676 |
var testOnlyProfiles = { |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
677 |
"run-test-jprt": { |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
678 |
target_os: input.build_os, |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
679 |
target_cpu: input.build_cpu, |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
680 |
dependencies: [ "jtreg", "gnumake", "boot_jdk", "devkit", "jib" ], |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
681 |
labels: "test", |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
682 |
environment: { |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
683 |
"JT_JAVA": common.boot_jdk_home |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
684 |
} |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
685 |
}, |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
686 |
|
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
687 |
"run-test": { |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
688 |
target_os: input.build_os, |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
689 |
target_cpu: input.build_cpu, |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
690 |
dependencies: [ "jtreg", "gnumake", "boot_jdk", "devkit", "jib" ], |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
691 |
labels: "test", |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
692 |
environment: { |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
693 |
"JT_JAVA": common.boot_jdk_home |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
694 |
} |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
695 |
} |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
696 |
}; |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
697 |
profiles = concatObjects(profiles, testOnlyProfiles); |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
698 |
|
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
699 |
// Profiles used to run tests using Jib for internal dependencies. |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
700 |
var testedProfile = input.testedProfile; |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
701 |
if (testedProfile == null) { |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
702 |
testedProfile = input.build_os + "-" + input.build_cpu; |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
703 |
} |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
704 |
var testOnlyProfilesPrebuilt = { |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
705 |
"run-test-prebuilt": { |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
706 |
target_os: input.build_os, |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
707 |
target_cpu: input.build_cpu, |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
708 |
src: "src.conf", |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
709 |
dependencies: [ "jtreg", "gnumake", "boot_jdk", "jib", testedProfile + ".jdk", |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
710 |
testedProfile + ".test", "src.full" |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
711 |
], |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
712 |
work_dir: input.get("src.full", "install_path") + "/test", |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
713 |
environment: { |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
714 |
"JT_JAVA": common.boot_jdk_home, |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
715 |
"PRODUCT_HOME": input.get(testedProfile + ".jdk", "home_path"), |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
716 |
"TEST_IMAGE_DIR": input.get(testedProfile + ".test", "home_path"), |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
717 |
"TEST_OUTPUT_DIR": input.src_top_dir |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
718 |
}, |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
719 |
labels: "test" |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
720 |
} |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
721 |
}; |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
722 |
|
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
723 |
// If actually running the run-test-prebuilt profile, verify that the input |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
724 |
// variable is valid and if so, add the appropriate target_* values from |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
725 |
// the tested profile. |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
726 |
if (input.profile == "run-test-prebuilt") { |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
727 |
if (profiles[testedProfile] == null) { |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
728 |
error("testedProfile is not defined: " + testedProfile); |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
729 |
} |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
730 |
} |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
731 |
if (profiles[testedProfile] != null) { |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
732 |
testOnlyProfilesPrebuilt["run-test-prebuilt"]["target_os"] |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
733 |
= profiles[testedProfile]["target_os"]; |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
734 |
testOnlyProfilesPrebuilt["run-test-prebuilt"]["target_cpu"] |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
735 |
= profiles[testedProfile]["target_cpu"]; |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
736 |
} |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
737 |
profiles = concatObjects(profiles, testOnlyProfilesPrebuilt); |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
738 |
|
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
739 |
// On macosx add the devkit bin dir to the path in all the run-test profiles. |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
740 |
// This gives us a guaranteed working version of lldb for the jtreg failure handler. |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
741 |
if (input.build_os == "macosx") { |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
742 |
macosxRunTestExtra = { |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
743 |
dependencies: [ "devkit" ], |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
744 |
environment_path: input.get("devkit", "install_path") |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
745 |
+ "/Xcode.app/Contents/Developer/usr/bin" |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
746 |
} |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
747 |
profiles["run-test"] = concatObjects(profiles["run-test"], macosxRunTestExtra); |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
748 |
profiles["run-test-jprt"] = concatObjects(profiles["run-test-jprt"], macosxRunTestExtra); |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
749 |
profiles["run-test-prebuilt"] = concatObjects(profiles["run-test-prebuilt"], macosxRunTestExtra); |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
750 |
} |
d2b306a70bf1
8190735: Define all base artifacts for all open/open-debug profiles
erikj
parents:
47701
diff
changeset
|
751 |
|
34491 | 752 |
// Generate the missing platform attributes |
753 |
profiles = generatePlatformAttributes(profiles); |
|
37649
3809534d4531
8154841: Let different Jib profiles have different default make targets
erikj
parents:
37407
diff
changeset
|
754 |
profiles = generateDefaultMakeTargetsConfigureArg(common, profiles); |
34491 | 755 |
return profiles; |
756 |
}; |
|
757 |
||
758 |
/** |
|
759 |
* Generate the dependencies part of the configuration |
|
760 |
* |
|
761 |
* @param input External data to use for generating the configuration |
|
762 |
* @param common The common values |
|
763 |
* @returns {{}} Dependencies part of configuration |
|
764 |
*/ |
|
34496 | 765 |
var getJibProfilesDependencies = function (input, common) { |
34491 | 766 |
|
767 |
var devkit_platform_revisions = { |
|
47433
6331ad007664
8189119: Devkit for Linux needs to include fontconfig-devel
erikj
parents:
47365
diff
changeset
|
768 |
linux_x64: "gcc4.9.2-OEL6.4+1.2", |
34491 | 769 |
macosx_x64: "Xcode6.3-MacOSX10.9+1.0", |
34595
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
34496
diff
changeset
|
770 |
solaris_x64: "SS12u4-Solaris11u1+1.0", |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
34496
diff
changeset
|
771 |
solaris_sparcv9: "SS12u4-Solaris11u1+1.0", |
44625
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
772 |
windows_x64: "VS2013SP4+1.0", |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
773 |
linux_aarch64: "gcc-linaro-aarch64-linux-gnu-4.8-2013.11_linux+1.0", |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
774 |
linux_arm: (input.profile != null && input.profile.indexOf("hflt") >= 0 |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
775 |
? "gcc-linaro-arm-linux-gnueabihf-raspbian-2012.09-20120921_linux+1.0" |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
776 |
: "arm-linaro-4.7+1.0") |
34491 | 777 |
}; |
778 |
||
779 |
var devkit_platform = (input.target_cpu == "x86" |
|
780 |
? input.target_os + "_x64" |
|
781 |
: input.target_platform); |
|
782 |
||
47364 | 783 |
var boot_jdk_platform = (input.build_os == "macosx" ? "osx" : input.build_os) |
784 |
+ "-" + input.build_cpu; |
|
785 |
||
48035
69d409f1b81e
8190464: OpenJDK on macosx needs to bundle freetype
erikj
parents:
47928
diff
changeset
|
786 |
var freetype_version = { |
69d409f1b81e
8190464: OpenJDK on macosx needs to bundle freetype
erikj
parents:
47928
diff
changeset
|
787 |
windows_x64: "2.7.1-v120+1.1", |
69d409f1b81e
8190464: OpenJDK on macosx needs to bundle freetype
erikj
parents:
47928
diff
changeset
|
788 |
windows_x86: "2.7.1-v120+1.1", |
69d409f1b81e
8190464: OpenJDK on macosx needs to bundle freetype
erikj
parents:
47928
diff
changeset
|
789 |
macosx_x64: "2.7.1-Xcode6.3-MacOSX10.9+1.0" |
69d409f1b81e
8190464: OpenJDK on macosx needs to bundle freetype
erikj
parents:
47928
diff
changeset
|
790 |
}[input.target_platform]; |
69d409f1b81e
8190464: OpenJDK on macosx needs to bundle freetype
erikj
parents:
47928
diff
changeset
|
791 |
|
48079
eaa406097d93
8193060: Set MAKE env variable in jib profile for gnumake
ihse
parents:
48035
diff
changeset
|
792 |
var makeBinDir = (input.build_os == "windows" |
eaa406097d93
8193060: Set MAKE env variable in jib profile for gnumake
ihse
parents:
48035
diff
changeset
|
793 |
? input.get("gnumake", "install_path") + "/cygwin/bin" |
eaa406097d93
8193060: Set MAKE env variable in jib profile for gnumake
ihse
parents:
48035
diff
changeset
|
794 |
: input.get("gnumake", "install_path") + "/bin"); |
eaa406097d93
8193060: Set MAKE env variable in jib profile for gnumake
ihse
parents:
48035
diff
changeset
|
795 |
|
34491 | 796 |
var dependencies = { |
797 |
||
798 |
boot_jdk: { |
|
47364 | 799 |
server: "jpg", |
800 |
product: "jdk", |
|
47365 | 801 |
version: common.boot_jdk_version, |
47364 | 802 |
build_number: "181", |
47365 | 803 |
file: "bundles/" + boot_jdk_platform + "/jdk-" + common.boot_jdk_version + "_" |
47364 | 804 |
+ boot_jdk_platform + "_bin.tar.gz", |
41047
de6f69208f82
8164301: jib should provide a JDK for running jtreg with
erikj
parents:
40241
diff
changeset
|
805 |
configure_args: "--with-boot-jdk=" + common.boot_jdk_home, |
43288
58b8748ef90d
8173476: Provide lldb from devkit when running tests on macosx
erikj
parents:
43049
diff
changeset
|
806 |
environment_path: common.boot_jdk_home + "/bin" |
34491 | 807 |
}, |
808 |
||
809 |
devkit: { |
|
810 |
organization: common.organization, |
|
811 |
ext: "tar.gz", |
|
812 |
module: "devkit-" + devkit_platform, |
|
813 |
revision: devkit_platform_revisions[devkit_platform] |
|
814 |
}, |
|
815 |
||
816 |
build_devkit: { |
|
817 |
organization: common.organization, |
|
818 |
ext: "tar.gz", |
|
819 |
module: "devkit-" + input.build_platform, |
|
820 |
revision: devkit_platform_revisions[input.build_platform] |
|
821 |
}, |
|
822 |
||
823 |
cups: { |
|
824 |
organization: common.organization, |
|
825 |
ext: "tar.gz", |
|
826 |
revision: "1.0118+1.0" |
|
827 |
}, |
|
828 |
||
829 |
jtreg: { |
|
830 |
server: "javare", |
|
36506 | 831 |
revision: "4.2", |
47723 | 832 |
build_number: "b10", |
34491 | 833 |
checksum_file: "MD5_VALUES", |
36506 | 834 |
file: "jtreg_bin-4.2.zip", |
41047
de6f69208f82
8164301: jib should provide a JDK for running jtreg with
erikj
parents:
40241
diff
changeset
|
835 |
environment_name: "JT_HOME", |
de6f69208f82
8164301: jib should provide a JDK for running jtreg with
erikj
parents:
40241
diff
changeset
|
836 |
environment_path: input.get("jtreg", "install_path") + "/jtreg/bin" |
34491 | 837 |
}, |
838 |
||
839 |
gnumake: { |
|
840 |
organization: common.organization, |
|
841 |
ext: "tar.gz", |
|
842 |
revision: "4.0+1.0", |
|
843 |
||
844 |
module: (input.build_os == "windows" |
|
845 |
? "gnumake-" + input.build_osenv_platform |
|
846 |
: "gnumake-" + input.build_platform), |
|
847 |
||
48079
eaa406097d93
8193060: Set MAKE env variable in jib profile for gnumake
ihse
parents:
48035
diff
changeset
|
848 |
configure_args: "MAKE=" + makeBinDir + "/make", |
34491 | 849 |
|
48079
eaa406097d93
8193060: Set MAKE env variable in jib profile for gnumake
ihse
parents:
48035
diff
changeset
|
850 |
environment: { |
eaa406097d93
8193060: Set MAKE env variable in jib profile for gnumake
ihse
parents:
48035
diff
changeset
|
851 |
"MAKE": makeBinDir + "/make" |
eaa406097d93
8193060: Set MAKE env variable in jib profile for gnumake
ihse
parents:
48035
diff
changeset
|
852 |
}, |
eaa406097d93
8193060: Set MAKE env variable in jib profile for gnumake
ihse
parents:
48035
diff
changeset
|
853 |
|
eaa406097d93
8193060: Set MAKE env variable in jib profile for gnumake
ihse
parents:
48035
diff
changeset
|
854 |
environment_path: makeBinDir |
34491 | 855 |
}, |
856 |
||
857 |
freetype: { |
|
858 |
organization: common.organization, |
|
859 |
ext: "tar.gz", |
|
48035
69d409f1b81e
8190464: OpenJDK on macosx needs to bundle freetype
erikj
parents:
47928
diff
changeset
|
860 |
revision: freetype_version, |
34491 | 861 |
module: "freetype-" + input.target_platform |
44727 | 862 |
}, |
863 |
||
864 |
graphviz: { |
|
865 |
organization: common.organization, |
|
866 |
ext: "tar.gz", |
|
867 |
revision: "2.38.0-1+1.1", |
|
868 |
module: "graphviz-" + input.target_platform, |
|
45107 | 869 |
configure_args: "DOT=" + input.get("graphviz", "install_path") + "/dot", |
870 |
environment_path: input.get("graphviz", "install_path") |
|
44727 | 871 |
}, |
44734 | 872 |
|
873 |
pandoc: { |
|
874 |
organization: common.organization, |
|
875 |
ext: "tar.gz", |
|
876 |
revision: "1.17.2+1.0", |
|
877 |
module: "pandoc-" + input.target_platform, |
|
45107 | 878 |
configure_args: "PANDOC=" + input.get("pandoc", "install_path") + "/pandoc/pandoc", |
879 |
environment_path: input.get("pandoc", "install_path") + "/pandoc" |
|
44734 | 880 |
}, |
46196
822ca950ddaa
8175300: Enable artifact resolution for jtreg tests
ctornqvi
parents:
46193
diff
changeset
|
881 |
// This adds java jib as a dependency for the test artifacts resolver |
822ca950ddaa
8175300: Enable artifact resolution for jtreg tests
ctornqvi
parents:
46193
diff
changeset
|
882 |
jib: { |
822ca950ddaa
8175300: Enable artifact resolution for jtreg tests
ctornqvi
parents:
46193
diff
changeset
|
883 |
organization: "com.oracle.java.jib", |
822ca950ddaa
8175300: Enable artifact resolution for jtreg tests
ctornqvi
parents:
46193
diff
changeset
|
884 |
ext: "zip", |
822ca950ddaa
8175300: Enable artifact resolution for jtreg tests
ctornqvi
parents:
46193
diff
changeset
|
885 |
classifier: "distribution", |
822ca950ddaa
8175300: Enable artifact resolution for jtreg tests
ctornqvi
parents:
46193
diff
changeset
|
886 |
revision: "3.0-SNAPSHOT", |
822ca950ddaa
8175300: Enable artifact resolution for jtreg tests
ctornqvi
parents:
46193
diff
changeset
|
887 |
environment_name: "JIB_JAR", |
822ca950ddaa
8175300: Enable artifact resolution for jtreg tests
ctornqvi
parents:
46193
diff
changeset
|
888 |
environment_value: input.get("jib", "install_path") |
822ca950ddaa
8175300: Enable artifact resolution for jtreg tests
ctornqvi
parents:
46193
diff
changeset
|
889 |
+ "/jib-3.0-SNAPSHOT-distribution/lib/jib-3.0-SNAPSHOT.jar" |
822ca950ddaa
8175300: Enable artifact resolution for jtreg tests
ctornqvi
parents:
46193
diff
changeset
|
890 |
} |
34491 | 891 |
}; |
892 |
||
46192 | 893 |
// Need to add a value for the Visual Studio tools variable to make |
894 |
// jaot be able to pick up the Visual Studio linker in testing. |
|
895 |
if (input.target_os == "windows") { |
|
896 |
dependencies.devkit.environment = { |
|
897 |
VS120COMNTOOLS: input.get("devkit", "install_path") + "/Common7/Tools" |
|
898 |
}; |
|
899 |
} |
|
900 |
||
34491 | 901 |
return dependencies; |
902 |
}; |
|
903 |
||
904 |
/** |
|
905 |
* Generate the missing platform attributes for profiles |
|
906 |
* |
|
907 |
* @param profiles Profiles map to generate attributes on |
|
908 |
* @returns {{}} New profiles map with platform attributes fully filled in |
|
909 |
*/ |
|
910 |
var generatePlatformAttributes = function (profiles) { |
|
911 |
var ret = concatObjects(profiles, {}); |
|
912 |
for (var profile in profiles) { |
|
913 |
if (ret[profile].build_os == null) { |
|
914 |
ret[profile].build_os = ret[profile].target_os; |
|
915 |
} |
|
916 |
if (ret[profile].build_cpu == null) { |
|
917 |
ret[profile].build_cpu = ret[profile].target_cpu; |
|
918 |
} |
|
919 |
ret[profile].target_platform = ret[profile].target_os + "_" + ret[profile].target_cpu; |
|
920 |
ret[profile].build_platform = ret[profile].build_os + "_" + ret[profile].build_cpu; |
|
921 |
} |
|
922 |
return ret; |
|
923 |
}; |
|
924 |
||
925 |
/** |
|
37649
3809534d4531
8154841: Let different Jib profiles have different default make targets
erikj
parents:
37407
diff
changeset
|
926 |
* The default_make_targets attribute on a profile is not a real Jib attribute. |
3809534d4531
8154841: Let different Jib profiles have different default make targets
erikj
parents:
37407
diff
changeset
|
927 |
* This function rewrites that attribute into the corresponding configure arg. |
3809534d4531
8154841: Let different Jib profiles have different default make targets
erikj
parents:
37407
diff
changeset
|
928 |
* Calling this function multiple times on the same profiles object is safe. |
3809534d4531
8154841: Let different Jib profiles have different default make targets
erikj
parents:
37407
diff
changeset
|
929 |
* |
3809534d4531
8154841: Let different Jib profiles have different default make targets
erikj
parents:
37407
diff
changeset
|
930 |
* @param common Common values |
3809534d4531
8154841: Let different Jib profiles have different default make targets
erikj
parents:
37407
diff
changeset
|
931 |
* @param profiles Profiles map to rewrite profiles for |
3809534d4531
8154841: Let different Jib profiles have different default make targets
erikj
parents:
37407
diff
changeset
|
932 |
* @returns {{}} New map of profiles with the make targets converted |
3809534d4531
8154841: Let different Jib profiles have different default make targets
erikj
parents:
37407
diff
changeset
|
933 |
*/ |
3809534d4531
8154841: Let different Jib profiles have different default make targets
erikj
parents:
37407
diff
changeset
|
934 |
var generateDefaultMakeTargetsConfigureArg = function (common, profiles) { |
3809534d4531
8154841: Let different Jib profiles have different default make targets
erikj
parents:
37407
diff
changeset
|
935 |
var ret = concatObjects(profiles, {}); |
3809534d4531
8154841: Let different Jib profiles have different default make targets
erikj
parents:
37407
diff
changeset
|
936 |
for (var profile in ret) { |
3809534d4531
8154841: Let different Jib profiles have different default make targets
erikj
parents:
37407
diff
changeset
|
937 |
if (ret[profile]["default_make_targets"] != null) { |
3809534d4531
8154841: Let different Jib profiles have different default make targets
erikj
parents:
37407
diff
changeset
|
938 |
var targetsString = concat(ret[profile].default_make_targets).join(" "); |
3809534d4531
8154841: Let different Jib profiles have different default make targets
erikj
parents:
37407
diff
changeset
|
939 |
// Iterate over all configure args and see if --with-default-make-target |
3809534d4531
8154841: Let different Jib profiles have different default make targets
erikj
parents:
37407
diff
changeset
|
940 |
// is already there and change it, otherwise add it. |
3809534d4531
8154841: Let different Jib profiles have different default make targets
erikj
parents:
37407
diff
changeset
|
941 |
var found = false; |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
942 |
for (var i in ret[profile].configure_args) { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
943 |
var arg = ret[profile].configure_args[i]; |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
944 |
if (arg != null && arg.startsWith("--with-default-make-target=")) { |
37649
3809534d4531
8154841: Let different Jib profiles have different default make targets
erikj
parents:
37407
diff
changeset
|
945 |
found = true; |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
946 |
ret[profile].configure_args[i] |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
947 |
= "--with-default-make-target=" + targetsString; |
37649
3809534d4531
8154841: Let different Jib profiles have different default make targets
erikj
parents:
37407
diff
changeset
|
948 |
} |
3809534d4531
8154841: Let different Jib profiles have different default make targets
erikj
parents:
37407
diff
changeset
|
949 |
} |
3809534d4531
8154841: Let different Jib profiles have different default make targets
erikj
parents:
37407
diff
changeset
|
950 |
if (!found) { |
3809534d4531
8154841: Let different Jib profiles have different default make targets
erikj
parents:
37407
diff
changeset
|
951 |
ret[profile].configure_args = concat( |
3809534d4531
8154841: Let different Jib profiles have different default make targets
erikj
parents:
37407
diff
changeset
|
952 |
ret[profile].configure_args, |
3809534d4531
8154841: Let different Jib profiles have different default make targets
erikj
parents:
37407
diff
changeset
|
953 |
"--with-default-make-target=" + targetsString); |
3809534d4531
8154841: Let different Jib profiles have different default make targets
erikj
parents:
37407
diff
changeset
|
954 |
} |
3809534d4531
8154841: Let different Jib profiles have different default make targets
erikj
parents:
37407
diff
changeset
|
955 |
} |
3809534d4531
8154841: Let different Jib profiles have different default make targets
erikj
parents:
37407
diff
changeset
|
956 |
} |
3809534d4531
8154841: Let different Jib profiles have different default make targets
erikj
parents:
37407
diff
changeset
|
957 |
return ret; |
3809534d4531
8154841: Let different Jib profiles have different default make targets
erikj
parents:
37407
diff
changeset
|
958 |
} |
3809534d4531
8154841: Let different Jib profiles have different default make targets
erikj
parents:
37407
diff
changeset
|
959 |
|
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
960 |
var getBuildId = function (input) { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
961 |
if (input.build_id != null) { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
962 |
return input.build_id; |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
963 |
} else { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
964 |
var topdir = new java.io.File(__DIR__, "../..").getCanonicalFile().getName(); |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
965 |
var userName = java.lang.System.getProperty("user.name"); |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
966 |
return userName + "." + topdir; |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
967 |
} |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
968 |
} |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
969 |
|
37649
3809534d4531
8154841: Let different Jib profiles have different default make targets
erikj
parents:
37407
diff
changeset
|
970 |
/** |
34491 | 971 |
* Deep clones an object tree. |
972 |
* |
|
973 |
* @param o Object to clone |
|
974 |
* @returns {{}} Clone of o |
|
975 |
*/ |
|
976 |
var clone = function (o) { |
|
977 |
return JSON.parse(JSON.stringify(o)); |
|
978 |
}; |
|
979 |
||
980 |
/** |
|
981 |
* Concatenates all arguments into a new array |
|
982 |
* |
|
983 |
* @returns {Array.<T>} New array containing all arguments |
|
984 |
*/ |
|
985 |
var concat = function () { |
|
986 |
return Array.prototype.concat.apply([], arguments); |
|
987 |
}; |
|
988 |
||
989 |
/** |
|
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
990 |
* Takes a String or Array of Strings and does a replace operation on each |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
991 |
* of them. |
34491 | 992 |
* |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
993 |
* @param pattern Pattern to look for |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
994 |
* @param replacement Replacement text to insert |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
995 |
* @param a String or Array of Strings to replace |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
996 |
* @returns {Array} Either a new array or a new string depending on the input |
34491 | 997 |
*/ |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
998 |
var replaceAll = function (pattern, replacement, a) { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
999 |
// If a is an array |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1000 |
if (Array === a.constructor) { |
34491 | 1001 |
var newA = []; |
1002 |
for (var i in a) { |
|
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1003 |
newA.push(a[i].replace(pattern, replacement)); |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1004 |
} |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1005 |
return newA; |
34491 | 1006 |
} else { |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1007 |
return a.replace(pattern, replacement); |
34491 | 1008 |
} |
1009 |
}; |
|
1010 |
||
1011 |
/** |
|
1012 |
* Deep concatenation of two objects. For each node encountered, merge |
|
1013 |
* the contents with the corresponding node in the other object tree, |
|
1014 |
* treating all strings as array elements. |
|
1015 |
* |
|
1016 |
* @param o1 Object to concatenate |
|
1017 |
* @param o2 Object to concatenate |
|
1018 |
* @returns {{}} New object tree containing the concatenation of o1 and o2 |
|
1019 |
*/ |
|
1020 |
var concatObjects = function (o1, o2) { |
|
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1021 |
if (o1 == null) { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1022 |
return clone(o2); |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1023 |
} |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1024 |
if (o2 == null) { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1025 |
return clone(o1); |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1026 |
} |
34491 | 1027 |
var ret = {}; |
1028 |
for (var a in o1) { |
|
1029 |
if (o2[a] == null) { |
|
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1030 |
ret[a] = clone(o1[a]); |
34491 | 1031 |
} |
1032 |
} |
|
1033 |
for (var a in o2) { |
|
1034 |
if (o1[a] == null) { |
|
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1035 |
ret[a] = clone(o2[a]); |
34491 | 1036 |
} else { |
1037 |
if (typeof o1[a] == 'string') { |
|
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1038 |
ret[a] = clone([o1[a]].concat(o2[a])); |
34491 | 1039 |
} else if (Array.isArray(o1[a])) { |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1040 |
ret[a] = clone(o1[a].concat(o2[a])); |
34491 | 1041 |
} else if (typeof o1[a] == 'object') { |
1042 |
ret[a] = concatObjects(o1[a], o2[a]); |
|
1043 |
} |
|
1044 |
} |
|
1045 |
} |
|
1046 |
return ret; |
|
1047 |
}; |
|
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1048 |
|
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1049 |
/** |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1050 |
* Constructs the numeric version string from reading the |
47928
fb62d4519338
8191715: Update documentation pointing to "common" directory
ihse
parents:
47825
diff
changeset
|
1051 |
* make/autoconf/version-numbers file and removing all trailing ".0". |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1052 |
* |
48327 | 1053 |
* @param feature Override feature version |
1054 |
* @param interim Override interim version |
|
1055 |
* @param update Override update version |
|
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1056 |
* @param patch Override patch version |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1057 |
* @returns {String} The numeric version string |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1058 |
*/ |
48327 | 1059 |
var getVersion = function (feature, interim, update, patch) { |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1060 |
var version_numbers = getVersionNumbers(); |
48327 | 1061 |
var version = (feature != null ? feature : version_numbers.get("DEFAULT_VERSION_FEATURE")) |
1062 |
+ "." + (interim != null ? interim : version_numbers.get("DEFAULT_VERSION_INTERIM")) |
|
1063 |
+ "." + (update != null ? update : version_numbers.get("DEFAULT_VERSION_UPDATE")) |
|
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1064 |
+ "." + (patch != null ? patch : version_numbers.get("DEFAULT_VERSION_PATCH")); |
43600 | 1065 |
while (version.match(".*\\.0$")) { |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1066 |
version = version.substring(0, version.length - 2); |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1067 |
} |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1068 |
return version; |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1069 |
}; |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1070 |
|
45048
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
1071 |
/** |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
1072 |
* Constructs the common version configure args based on build type and |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
1073 |
* other version inputs |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
1074 |
*/ |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
1075 |
var versionArgs = function(input, common) { |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
1076 |
var args = ["--with-version-build=" + common.build_number]; |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
1077 |
if (input.build_type == "promoted") { |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
1078 |
args = concat(args, |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
1079 |
// This needs to be changed when we start building release candidates |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
1080 |
"--with-version-pre=ea", |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
1081 |
"--without-version-opt"); |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
1082 |
} else { |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
1083 |
args = concat(args, "--with-version-opt=" + common.build_id); |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
1084 |
} |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
1085 |
return args; |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
1086 |
} |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
1087 |
|
47928
fb62d4519338
8191715: Update documentation pointing to "common" directory
ihse
parents:
47825
diff
changeset
|
1088 |
// Properties representation of the make/autoconf/version-numbers file. Lazily |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1089 |
// initiated by the function below. |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1090 |
var version_numbers; |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1091 |
|
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1092 |
/** |
47928
fb62d4519338
8191715: Update documentation pointing to "common" directory
ihse
parents:
47825
diff
changeset
|
1093 |
* Read the make/autoconf/version-numbers file into a Properties object. |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1094 |
* |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1095 |
* @returns {java.utilProperties} |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1096 |
*/ |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1097 |
var getVersionNumbers = function () { |
47928
fb62d4519338
8191715: Update documentation pointing to "common" directory
ihse
parents:
47825
diff
changeset
|
1098 |
// Read version information from make/autoconf/version-numbers |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1099 |
if (version_numbers == null) { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1100 |
version_numbers = new java.util.Properties(); |
47217 | 1101 |
var stream = new java.io.FileInputStream(__DIR__ + "/../autoconf/version-numbers"); |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1102 |
version_numbers.load(stream); |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1103 |
stream.close(); |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1104 |
} |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1105 |
return version_numbers; |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1106 |
} |