< prev index next >

make/conf/jib-profiles.js

Print this page




 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  */
 181 var getJibProfiles = function (input) {
 182 
 183     var data = {};
 184 
 185     // Identifies the version of this format to the tool reading it.
 186     // 1.1 signifies that the publish, publish-src and get-src features are usable.
 187     // 1.2 signifies that artifact uploads should fail on missing artifacts by default.
 188     data.format_version = "1.2";


 189 
 190     // Organization, product and version are used when uploading/publishing build results
 191     data.organization = "";
 192     data.product = "jdk";
 193     data.version = getVersion();
 194 
 195     // The base directory for the build output. JIB will assume that the
 196     // actual build directory will be <output_basedir>/<configuration>
 197     data.output_basedir = "build";
 198     // The configure argument to use to specify the name of the configuration
 199     data.configuration_configure_arg = "--with-conf-name=";
 200     // The make argument to use to specify the name of the configuration
 201     data.configuration_make_arg = "CONF_NAME=";
 202 
 203     // Exclude list to use when Jib creates a source bundle
 204     data.src_bundle_excludes = [
 205         "build", "{,**/}webrev*", "{,**/}.hg", "{,**/}JTwork", "{,**/}JTreport",
 206         "{,**/}.git"
 207     ];
 208     // Include list to use when creating a minimal jib source bundle which


 346                     remote: [
 347                         "bundles/" + pf + "/jdk-" + data.version + "_" + pf + "_bin-tests-debug.tar.gz",
 348                         "bundles/" + pf + "/\\1"
 349                     ],
 350                     exploded: "images/test"
 351                 },
 352                 jdk_symbols: {
 353                     local: "bundles/\\(jdk.*bin-debug-symbols.tar.gz\\)",
 354                     remote: [
 355                         "bundles/" + pf + "/jdk-" + data.version + "_" + pf + "_bin-debug-symbols.tar.gz",
 356                         "bundles/" + pf + "/\\1"
 357                     ],
 358                     subdir: jdk_subdir,
 359                     exploded: "images/jdk"
 360                 },
 361             }
 362         };
 363     };
 364 
 365     common.boot_jdk_version = "11";
 366     common.boot_jdk_home = input.get("boot_jdk", "home_path") + "/jdk-"
 367         + common.boot_jdk_version
 368         + (input.build_os == "macosx" ? ".jdk/Contents/Home" : "");
 369 
 370     return common;
 371 };
 372 
 373 /**
 374  * Generates the profiles part of the configuration.
 375  *
 376  * @param input External data to use for generating the configuration
 377  * @param common The common values
 378  * @returns {{}} Profiles part of the configuration
 379  */
 380 var getJibProfilesProfiles = function (input, common, data) {
 381     // Main SE profiles
 382     var profiles = {
 383 
 384         "linux-x64": {
 385             target_os: "linux",
 386             target_cpu: "x64",




 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  */
 181 var getJibProfiles = function (input) {
 182 
 183     var data = {};
 184 
 185     // Identifies the version of this format to the tool reading it.
 186     // 1.1 signifies that the publish, publish-src and get-src features are usable.
 187     // 1.2 signifies that artifact uploads should fail on missing artifacts by default.
 188     // 1.3 input.get(<dep>, "home_path") automatically goes down into a single top
 189     //     dir just like default configure_args and environment_path variables.
 190     data.format_version = "1.3";
 191 
 192     // Organization, product and version are used when uploading/publishing build results
 193     data.organization = "";
 194     data.product = "jdk";
 195     data.version = getVersion();
 196 
 197     // The base directory for the build output. JIB will assume that the
 198     // actual build directory will be <output_basedir>/<configuration>
 199     data.output_basedir = "build";
 200     // The configure argument to use to specify the name of the configuration
 201     data.configuration_configure_arg = "--with-conf-name=";
 202     // The make argument to use to specify the name of the configuration
 203     data.configuration_make_arg = "CONF_NAME=";
 204 
 205     // Exclude list to use when Jib creates a source bundle
 206     data.src_bundle_excludes = [
 207         "build", "{,**/}webrev*", "{,**/}.hg", "{,**/}JTwork", "{,**/}JTreport",
 208         "{,**/}.git"
 209     ];
 210     // Include list to use when creating a minimal jib source bundle which


 348                     remote: [
 349                         "bundles/" + pf + "/jdk-" + data.version + "_" + pf + "_bin-tests-debug.tar.gz",
 350                         "bundles/" + pf + "/\\1"
 351                     ],
 352                     exploded: "images/test"
 353                 },
 354                 jdk_symbols: {
 355                     local: "bundles/\\(jdk.*bin-debug-symbols.tar.gz\\)",
 356                     remote: [
 357                         "bundles/" + pf + "/jdk-" + data.version + "_" + pf + "_bin-debug-symbols.tar.gz",
 358                         "bundles/" + pf + "/\\1"
 359                     ],
 360                     subdir: jdk_subdir,
 361                     exploded: "images/jdk"
 362                 },
 363             }
 364         };
 365     };
 366 
 367     common.boot_jdk_version = "11";
 368     common.boot_jdk_home = input.get("boot_jdk", "install_path") + "/jdk-"
 369         + common.boot_jdk_version
 370         + (input.build_os == "macosx" ? ".jdk/Contents/Home" : "");
 371 
 372     return common;
 373 };
 374 
 375 /**
 376  * Generates the profiles part of the configuration.
 377  *
 378  * @param input External data to use for generating the configuration
 379  * @param common The common values
 380  * @returns {{}} Profiles part of the configuration
 381  */
 382 var getJibProfilesProfiles = function (input, common, data) {
 383     // Main SE profiles
 384     var profiles = {
 385 
 386         "linux-x64": {
 387             target_os: "linux",
 388             target_cpu: "x64",


< prev index next >