< prev index next >

make/conf/jib-profiles.js

Print this page

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

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

1112             module: "devkit-" + input.build_platform,
1113             revision: devkit_platform_revisions[input.build_platform],
1114             // Only set --with-build-devkit when cross compiling.
1115             configure_args: (input.build_cpu == input.target_cpu ? false
1116                 : "--with-build-devkit=" + input.get("build_devkit", "home_path"))
1117         },
1118 
1119         lldb: {
1120             organization: common.organization,
1121             ext: "tar.gz",
1122             module: "devkit-macosx" + (input.build_cpu == "x64" ? "_x64" : ""),
1123             revision: (input.build_cpu == "x64" ? "Xcode11.3.1-MacOSX10.15+1.1" : devkit_platform_revisions[devkit_platform])
1124         },
1125 
1126         cups: {
1127             organization: common.organization,
1128             ext: "tar.gz",
1129             revision: "1.0118+1.0"
1130         },
1131 







1132         jtreg: {
1133             server: "jpg",
1134             product: "jtreg",
1135             version: "6",
1136             build_number: "1",
1137             file: "bundles/jtreg-6+1.zip",
1138             environment_name: "JT_HOME",
1139             environment_path: input.get("jtreg", "home_path") + "/bin",
1140             configure_args: "--with-jtreg=" + input.get("jtreg", "home_path"),
1141         },
1142 
1143         jmh: {
1144             organization: common.organization,
1145             ext: "tar.gz",
1146             revision: "1.28+1.0"
1147         },
1148 
1149         jcov: {
1150             // Use custom build of JCov
1151             // See CODETOOLS-7902734 for more info.

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

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

1112             module: "devkit-" + input.build_platform,
1113             revision: devkit_platform_revisions[input.build_platform],
1114             // Only set --with-build-devkit when cross compiling.
1115             configure_args: (input.build_cpu == input.target_cpu ? false
1116                 : "--with-build-devkit=" + input.get("build_devkit", "home_path"))
1117         },
1118 
1119         lldb: {
1120             organization: common.organization,
1121             ext: "tar.gz",
1122             module: "devkit-macosx" + (input.build_cpu == "x64" ? "_x64" : ""),
1123             revision: (input.build_cpu == "x64" ? "Xcode11.3.1-MacOSX10.15+1.1" : devkit_platform_revisions[devkit_platform])
1124         },
1125 
1126         cups: {
1127             organization: common.organization,
1128             ext: "tar.gz",
1129             revision: "1.0118+1.0"
1130         },
1131 
1132         libclang: {
1133             organization: common.organization,
1134             module: "libclang-" + input.build_platform,
1135             ext: "tar.gz",
1136             revision: "9.0.0+" + (input.build_platform == "macosx_x64" ? "2.0" : "1.0")
1137         },
1138 
1139         jtreg: {
1140             server: "jpg",
1141             product: "jtreg",
1142             version: "6",
1143             build_number: "1",
1144             file: "bundles/jtreg-6+1.zip",
1145             environment_name: "JT_HOME",
1146             environment_path: input.get("jtreg", "home_path") + "/bin",
1147             configure_args: "--with-jtreg=" + input.get("jtreg", "home_path"),
1148         },
1149 
1150         jmh: {
1151             organization: common.organization,
1152             ext: "tar.gz",
1153             revision: "1.28+1.0"
1154         },
1155 
1156         jcov: {
1157             // Use custom build of JCov
1158             // See CODETOOLS-7902734 for more info.
< prev index next >