< prev index next >

make/conf/jib-profiles.js

Print this page

 399         + common.boot_jdk_version
 400         + (input.build_os == "macosx" ? ".jdk/Contents/Home" : "");
 401 
 402     return common;
 403 };
 404 
 405 /**
 406  * Generates the profiles part of the configuration.
 407  *
 408  * @param input External data to use for generating the configuration
 409  * @param common The common values
 410  * @returns {{}} Profiles part of the configuration
 411  */
 412 var getJibProfilesProfiles = function (input, common, data) {
 413     // Main SE profiles
 414     var profiles = {
 415 
 416         "linux-x64": {
 417             target_os: "linux",
 418             target_cpu: "x64",
 419             dependencies: ["devkit", "gtest", "build_devkit", "graphviz", "pandoc"],
 420             configure_args: concat(
 421                 (input.build_cpu == "x64" ? common.configure_args_64bit
 422                  : "--openjdk-target=x86_64-linux-gnu"),
 423                 "--with-zlib=system", "--disable-dtrace",
 424                 (isWsl(input) ? [ "--host=x86_64-unknown-linux-gnu",
 425                     "--build=x86_64-unknown-linux-gnu" ] : [])),
 426         },
 427 
 428         "linux-x86": {
 429             target_os: "linux",
 430             target_cpu: "x86",
 431             build_cpu: "x64",
 432             dependencies: ["devkit", "gtest"],
 433             configure_args: concat(common.configure_args_32bit,
 434                 "--with-jvm-variants=minimal,server", "--with-zlib=system"),
 435         },
 436 
 437         "macosx-x64": {
 438             target_os: "macosx",
 439             target_cpu: "x64",
 440             dependencies: ["devkit", "gtest", "pandoc"],
 441             configure_args: concat(common.configure_args_64bit, "--with-zlib=system",
 442                 "--with-macosx-version-max=10.12.00",
 443                 "--enable-compatible-cds-alignment",
 444                 // Use system SetFile instead of the one in the devkit as the
 445                 // devkit one may not work on Catalina.
 446                 "SETFILE=/usr/bin/SetFile"),
 447         },
 448 
 449         "macosx-aarch64": {
 450             target_os: "macosx",
 451             target_cpu: "aarch64",
 452             dependencies: ["devkit", "gtest", "pandoc"],
 453             configure_args: concat(common.configure_args_64bit,
 454                 "--with-macosx-version-max=11.00.00"),
 455         },
 456 
 457         "windows-x64": {
 458             target_os: "windows",
 459             target_cpu: "x64",
 460             dependencies: ["devkit", "gtest", "pandoc"],
 461             configure_args: concat(common.configure_args_64bit),
 462         },
 463 
 464         "windows-x86": {
 465             target_os: "windows",
 466             target_cpu: "x86",
 467             build_cpu: "x64",
 468             dependencies: ["devkit", "gtest"],
 469             configure_args: concat(common.configure_args_32bit),
 470         },
 471 
 472         "windows-aarch64": {
 473             target_os: "windows",
 474             target_cpu: "aarch64",
 475             dependencies: ["devkit", "gtest", "build_devkit"],
 476             configure_args: [
 477                 "--openjdk-target=aarch64-unknown-cygwin",
 478             ],
 479         },
 480 

 722     }
 723     // Generate common artifacts for all main profiles
 724     Object.keys(artifactData).forEach(function (name) {
 725         profiles[name] = concatObjects(profiles[name],
 726             common.main_profile_artifacts(artifactData[name]));
 727     });
 728 
 729     // Generate common artifacts for all debug profiles
 730     Object.keys(artifactData).forEach(function (name) {
 731         var debugName = name + common.debug_suffix;
 732         profiles[debugName] = concatObjects(profiles[debugName],
 733             common.debug_profile_artifacts(artifactData[name]));
 734     });
 735 
 736     buildJdkDep = input.build_os + "-" + input.build_cpu + ".jdk";
 737     docsProfiles = {
 738         "docs": {
 739             target_os: input.build_os,
 740             target_cpu: input.build_cpu,
 741             dependencies: [
 742                 "boot_jdk", "devkit", "graphviz", "pandoc", buildJdkDep,
 743             ],
 744             configure_args: concat(
 745                 "--enable-full-docs",
 746                 versionArgs(input, common),
 747                 "--with-build-jdk=" + input.get(buildJdkDep, "home_path"),
 748                 // Provide an explicit JDK for the docs-reference target to
 749                 // mimic the running conditions of when it's run for real as
 750                 // closely as possible.
 751                 "--with-docs-reference-jdk=" + input.get(buildJdkDep, "home_path")
 752             ),
 753             default_make_targets: ["all-docs-bundles"],
 754             artifacts: {
 755                 doc_api_spec: {
 756                     local: "bundles/\\(jdk-" + data.version + ".*doc-api-spec.tar.gz\\)",
 757                     remote: [
 758                         "bundles/common/jdk-" + data.version + "_doc-api-spec.tar.gz",
 759                         "bundles/common/\\1"
 760                     ],
 761                 },
 762                 javase_doc_api_spec: {

1133             module: "devkit-" + input.build_platform,
1134             revision: devkit_platform_revisions[input.build_platform],
1135             // Only set --with-build-devkit when cross compiling.
1136             configure_args: (input.build_cpu == input.target_cpu ? false
1137                 : "--with-build-devkit=" + input.get("build_devkit", "home_path"))
1138         },
1139 
1140         lldb: {
1141             organization: common.organization,
1142             ext: "tar.gz",
1143             module: "devkit-macosx" + (input.build_cpu == "x64" ? "_x64" : ""),
1144             revision: (input.build_cpu == "x64" ? "Xcode11.3.1-MacOSX10.15+1.1" : devkit_platform_revisions[devkit_platform])
1145         },
1146 
1147         cups: {
1148             organization: common.organization,
1149             ext: "tar.gz",
1150             revision: "1.0118+1.0"
1151         },
1152 







1153         jtreg: {
1154             server: "jpg",
1155             product: "jtreg",
1156             version: "6.1",
1157             build_number: "1",
1158             file: "bundles/jtreg-6.1+1.zip",
1159             environment_name: "JT_HOME",
1160             environment_path: input.get("jtreg", "home_path") + "/bin",
1161             configure_args: "--with-jtreg=" + input.get("jtreg", "home_path"),
1162         },
1163 
1164         jmh: {
1165             organization: common.organization,
1166             ext: "tar.gz",
1167             revision: "1.34+1.0"
1168         },
1169 
1170         jcov: {
1171             organization: common.organization,
1172             revision: "3.0-12-jdk-asm+1.0",

 399         + common.boot_jdk_version
 400         + (input.build_os == "macosx" ? ".jdk/Contents/Home" : "");
 401 
 402     return common;
 403 };
 404 
 405 /**
 406  * Generates the profiles part of the configuration.
 407  *
 408  * @param input External data to use for generating the configuration
 409  * @param common The common values
 410  * @returns {{}} Profiles part of the configuration
 411  */
 412 var getJibProfilesProfiles = function (input, common, data) {
 413     // Main SE profiles
 414     var profiles = {
 415 
 416         "linux-x64": {
 417             target_os: "linux",
 418             target_cpu: "x64",
 419             dependencies: ["devkit", "gtest", "build_devkit", "graphviz", "pandoc", "libclang"],
 420             configure_args: concat(
 421                 (input.build_cpu == "x64" ? common.configure_args_64bit
 422                  : "--openjdk-target=x86_64-linux-gnu"),
 423                 "--with-zlib=system", "--disable-dtrace",
 424                 (isWsl(input) ? [ "--host=x86_64-unknown-linux-gnu",
 425                     "--build=x86_64-unknown-linux-gnu" ] : [])),
 426         },
 427 
 428         "linux-x86": {
 429             target_os: "linux",
 430             target_cpu: "x86",
 431             build_cpu: "x64",
 432             dependencies: ["devkit", "gtest"],
 433             configure_args: concat(common.configure_args_32bit,
 434                 "--with-jvm-variants=minimal,server", "--with-zlib=system"),
 435         },
 436 
 437         "macosx-x64": {
 438             target_os: "macosx",
 439             target_cpu: "x64",
 440             dependencies: ["devkit", "gtest", "pandoc", "libclang"],
 441             configure_args: concat(common.configure_args_64bit, "--with-zlib=system",
 442                 "--with-macosx-version-max=10.12.00",
 443                 "--enable-compatible-cds-alignment",
 444                 // Use system SetFile instead of the one in the devkit as the
 445                 // devkit one may not work on Catalina.
 446                 "SETFILE=/usr/bin/SetFile"),
 447         },
 448 
 449         "macosx-aarch64": {
 450             target_os: "macosx",
 451             target_cpu: "aarch64",
 452             dependencies: ["devkit", "gtest", "pandoc"],
 453             configure_args: concat(common.configure_args_64bit,
 454                 "--with-macosx-version-max=11.00.00"),
 455         },
 456 
 457         "windows-x64": {
 458             target_os: "windows",
 459             target_cpu: "x64",
 460             dependencies: ["devkit", "gtest", "pandoc", "libclang"],
 461             configure_args: concat(common.configure_args_64bit),
 462         },
 463 
 464         "windows-x86": {
 465             target_os: "windows",
 466             target_cpu: "x86",
 467             build_cpu: "x64",
 468             dependencies: ["devkit", "gtest"],
 469             configure_args: concat(common.configure_args_32bit),
 470         },
 471 
 472         "windows-aarch64": {
 473             target_os: "windows",
 474             target_cpu: "aarch64",
 475             dependencies: ["devkit", "gtest", "build_devkit"],
 476             configure_args: [
 477                 "--openjdk-target=aarch64-unknown-cygwin",
 478             ],
 479         },
 480 

 722     }
 723     // Generate common artifacts for all main profiles
 724     Object.keys(artifactData).forEach(function (name) {
 725         profiles[name] = concatObjects(profiles[name],
 726             common.main_profile_artifacts(artifactData[name]));
 727     });
 728 
 729     // Generate common artifacts for all debug profiles
 730     Object.keys(artifactData).forEach(function (name) {
 731         var debugName = name + common.debug_suffix;
 732         profiles[debugName] = concatObjects(profiles[debugName],
 733             common.debug_profile_artifacts(artifactData[name]));
 734     });
 735 
 736     buildJdkDep = input.build_os + "-" + input.build_cpu + ".jdk";
 737     docsProfiles = {
 738         "docs": {
 739             target_os: input.build_os,
 740             target_cpu: input.build_cpu,
 741             dependencies: [
 742                 "boot_jdk", "devkit", "graphviz", "pandoc", buildJdkDep, "libclang"
 743             ],
 744             configure_args: concat(
 745                 "--enable-full-docs",
 746                 versionArgs(input, common),
 747                 "--with-build-jdk=" + input.get(buildJdkDep, "home_path"),
 748                 // Provide an explicit JDK for the docs-reference target to
 749                 // mimic the running conditions of when it's run for real as
 750                 // closely as possible.
 751                 "--with-docs-reference-jdk=" + input.get(buildJdkDep, "home_path")
 752             ),
 753             default_make_targets: ["all-docs-bundles"],
 754             artifacts: {
 755                 doc_api_spec: {
 756                     local: "bundles/\\(jdk-" + data.version + ".*doc-api-spec.tar.gz\\)",
 757                     remote: [
 758                         "bundles/common/jdk-" + data.version + "_doc-api-spec.tar.gz",
 759                         "bundles/common/\\1"
 760                     ],
 761                 },
 762                 javase_doc_api_spec: {

1133             module: "devkit-" + input.build_platform,
1134             revision: devkit_platform_revisions[input.build_platform],
1135             // Only set --with-build-devkit when cross compiling.
1136             configure_args: (input.build_cpu == input.target_cpu ? false
1137                 : "--with-build-devkit=" + input.get("build_devkit", "home_path"))
1138         },
1139 
1140         lldb: {
1141             organization: common.organization,
1142             ext: "tar.gz",
1143             module: "devkit-macosx" + (input.build_cpu == "x64" ? "_x64" : ""),
1144             revision: (input.build_cpu == "x64" ? "Xcode11.3.1-MacOSX10.15+1.1" : devkit_platform_revisions[devkit_platform])
1145         },
1146 
1147         cups: {
1148             organization: common.organization,
1149             ext: "tar.gz",
1150             revision: "1.0118+1.0"
1151         },
1152 
1153         libclang: {
1154             organization: common.organization,
1155             module: "libclang-" + input.build_platform,
1156             ext: "tar.gz",
1157             revision: "9.0.0+" + (input.build_platform == "macosx_x64" ? "2.0" : "1.0")
1158         },
1159 
1160         jtreg: {
1161             server: "jpg",
1162             product: "jtreg",
1163             version: "6.1",
1164             build_number: "1",
1165             file: "bundles/jtreg-6.1+1.zip",
1166             environment_name: "JT_HOME",
1167             environment_path: input.get("jtreg", "home_path") + "/bin",
1168             configure_args: "--with-jtreg=" + input.get("jtreg", "home_path"),
1169         },
1170 
1171         jmh: {
1172             organization: common.organization,
1173             ext: "tar.gz",
1174             revision: "1.34+1.0"
1175         },
1176 
1177         jcov: {
1178             organization: common.organization,
1179             revision: "3.0-12-jdk-asm+1.0",
< prev index next >