< prev index next >

make/conf/jib-profiles.js

Print this page




 222  * @param input External data to use for generating the configuration
 223  * @returns Common values
 224  */
 225 var getJibProfilesCommon = function (input, data) {
 226     var common = {};
 227 
 228     common.organization = "jpg.infra.builddeps";
 229     common.build_id = getBuildId(input);
 230     common.build_number = input.build_number != null ? input.build_number : "0";
 231 
 232     // List of the main profile names used for iteration
 233     common.main_profile_names = [
 234         "linux-x64", "linux-x86", "macosx-x64", "solaris-x64",
 235         "solaris-sparcv9", "windows-x64", "windows-x86",
 236         "linux-aarch64", "linux-arm32", "linux-arm64", "linux-arm-vfp-hflt",
 237         "linux-arm-vfp-hflt-dyn"
 238     ];
 239 
 240     // These are the base setttings for all the main build profiles.
 241     common.main_profile_base = {
 242         dependencies: ["boot_jdk", "gnumake", "jtreg", "jib"],
 243         default_make_targets: ["product-bundles", "test-bundles"],
 244         configure_args: concat(["--enable-jtreg-failure-handler"],
 245             "--with-exclude-translations=de,es,fr,it,ko,pt_BR,sv,ca,tr,cs,sk,ja_JP_A,ja_JP_HA,ja_JP_HI,ja_JP_I",
 246             versionArgs(input, common))
 247     };
 248     // Extra settings for debug profiles
 249     common.debug_suffix = "-debug";
 250     common.debug_profile_base = {
 251         configure_args: ["--enable-debug"],
 252         labels: "debug"
 253     };
 254     // Extra settings for slowdebug profiles
 255     common.slowdebug_suffix = "-slowdebug";
 256     common.slowdebug_profile_base = {
 257         configure_args: ["--with-debug-level=slowdebug"],
 258         labels: "slowdebug"
 259     };
 260     // Extra settings for openjdk only profiles
 261     common.open_suffix = "-open";
 262     common.open_profile_base = {


 361         + common.boot_jdk_version
 362         + (input.build_os == "macosx" ? ".jdk/Contents/Home" : "");
 363 
 364     return common;
 365 };
 366 
 367 /**
 368  * Generates the profiles part of the configuration.
 369  *
 370  * @param input External data to use for generating the configuration
 371  * @param common The common values
 372  * @returns {{}} Profiles part of the configuration
 373  */
 374 var getJibProfilesProfiles = function (input, common, data) {
 375     // Main SE profiles
 376     var profiles = {
 377 
 378         "linux-x64": {
 379             target_os: "linux",
 380             target_cpu: "x64",
 381             dependencies: ["devkit", "autoconf", "graphviz", "pandoc", "graalunit_lib"],
 382             configure_args: concat(common.configure_args_64bit,
 383                 "--enable-full-docs", "--with-zlib=system"),
 384             default_make_targets: ["docs-bundles"],
 385         },
 386 
 387         "linux-x86": {
 388             target_os: "linux",
 389             target_cpu: "x86",
 390             build_cpu: "x64",
 391             dependencies: ["devkit", "autoconf"],
 392             configure_args: concat(common.configure_args_32bit,
 393                 "--with-jvm-variants=minimal,server", "--with-zlib=system"),
 394         },
 395 
 396         "macosx-x64": {
 397             target_os: "macosx",
 398             target_cpu: "x64",
 399             dependencies: ["devkit", "autoconf", "graalunit_lib"],
 400             configure_args: concat(common.configure_args_64bit, "--with-zlib=system",
 401                 "--with-macosx-version-max=10.9.0"),
 402         },
 403 
 404         "solaris-x64": {
 405             target_os: "solaris",
 406             target_cpu: "x64",
 407             dependencies: ["devkit", "autoconf", "cups"],
 408             configure_args: concat(common.configure_args_64bit,
 409                 "--with-zlib=system", "--enable-dtrace"),
 410         },
 411 
 412         "solaris-sparcv9": {
 413             target_os: "solaris",
 414             target_cpu: "sparcv9",
 415             dependencies: ["devkit", "autoconf", "cups"],
 416             configure_args: concat(common.configure_args_64bit,
 417                 "--with-zlib=system", "--enable-dtrace"),
 418         },
 419 
 420         "windows-x64": {
 421             target_os: "windows",
 422             target_cpu: "x64",
 423             dependencies: ["devkit", "autoconf", "graalunit_lib"],
 424             configure_args: concat(common.configure_args_64bit),
 425         },
 426 
 427         "windows-x86": {
 428             target_os: "windows",
 429             target_cpu: "x86",
 430             build_cpu: "x64",
 431             dependencies: ["devkit", "autoconf"],
 432             configure_args: concat(common.configure_args_32bit),
 433         },
 434 
 435         "linux-aarch64": {
 436             target_os: "linux",
 437             target_cpu: "aarch64",
 438             build_cpu: "x64",
 439             dependencies: ["devkit", "autoconf", "build_devkit", "cups"],
 440             configure_args: [
 441                 "--openjdk-target=aarch64-linux-gnu", "--with-freetype=bundled",
 442                 "--disable-warnings-as-errors", "--with-cpu-port=aarch64",
 443             ],
 444         },
 445 
 446         "linux-arm64": {
 447             target_os: "linux",
 448             target_cpu: "aarch64",
 449             build_cpu: "x64",
 450             dependencies: ["devkit", "autoconf", "build_devkit", "cups", "headless_stubs"],
 451             configure_args: [
 452                 "--with-cpu-port=arm64",
 453                 "--with-jvm-variants=server",
 454                 "--openjdk-target=aarch64-linux-gnu",
 455                 "--enable-headless-only"
 456             ],
 457         },
 458 
 459         "linux-arm32": {
 460             target_os: "linux",
 461             target_cpu: "arm",
 462             build_cpu: "x64",
 463             dependencies: ["devkit", "autoconf", "build_devkit", "cups"],
 464             configure_args: [
 465                 "--openjdk-target=arm-linux-gnueabihf", "--with-freetype=bundled",
 466                 "--with-abi-profile=arm-vfp-hflt", "--disable-warnings-as-errors"
 467             ],
 468         },
 469 
 470         "linux-arm-vfp-hflt": {
 471             target_os: "linux",
 472             target_cpu: "arm",
 473             build_cpu: "x64",
 474             dependencies: ["devkit", "autoconf", "build_devkit", "cups"],
 475             configure_args: [
 476                 "--with-jvm-variants=minimal1,client",
 477                 "--with-x=" + input.get("devkit", "install_path") + "/arm-linux-gnueabihf/libc/usr/X11R6-PI",
 478                 "--with-fontconfig=" + input.get("devkit", "install_path") + "/arm-linux-gnueabihf/libc/usr/X11R6-PI",
 479                 "--openjdk-target=arm-linux-gnueabihf",
 480                 "--with-abi-profile=arm-vfp-hflt",
 481                 "--with-freetype=bundled"
 482             ],
 483         },
 484 
 485         // Special version of the SE profile adjusted to be testable on arm64 hardware.
 486         "linux-arm-vfp-hflt-dyn": {
 487             configure_args: "--with-stdc++lib=dynamic"
 488         }
 489     };
 490     // Let linux-arm-vfp-hflt-dyn inherit everything from linux-arm-vfp-hflt
 491     profiles["linux-arm-vfp-hflt-dyn"] = concatObjects(
 492         profiles["linux-arm-vfp-hflt-dyn"], profiles["linux-arm-vfp-hflt"]);
 493 
 494     // Add the base settings to all the main profiles




 222  * @param input External data to use for generating the configuration
 223  * @returns Common values
 224  */
 225 var getJibProfilesCommon = function (input, data) {
 226     var common = {};
 227 
 228     common.organization = "jpg.infra.builddeps";
 229     common.build_id = getBuildId(input);
 230     common.build_number = input.build_number != null ? input.build_number : "0";
 231 
 232     // List of the main profile names used for iteration
 233     common.main_profile_names = [
 234         "linux-x64", "linux-x86", "macosx-x64", "solaris-x64",
 235         "solaris-sparcv9", "windows-x64", "windows-x86",
 236         "linux-aarch64", "linux-arm32", "linux-arm64", "linux-arm-vfp-hflt",
 237         "linux-arm-vfp-hflt-dyn"
 238     ];
 239 
 240     // These are the base setttings for all the main build profiles.
 241     common.main_profile_base = {
 242         dependencies: ["boot_jdk", "gnumake", "jtreg", "jib", "autoconf"],
 243         default_make_targets: ["product-bundles", "test-bundles"],
 244         configure_args: concat(["--enable-jtreg-failure-handler"],
 245             "--with-exclude-translations=de,es,fr,it,ko,pt_BR,sv,ca,tr,cs,sk,ja_JP_A,ja_JP_HA,ja_JP_HI,ja_JP_I",
 246             versionArgs(input, common))
 247     };
 248     // Extra settings for debug profiles
 249     common.debug_suffix = "-debug";
 250     common.debug_profile_base = {
 251         configure_args: ["--enable-debug"],
 252         labels: "debug"
 253     };
 254     // Extra settings for slowdebug profiles
 255     common.slowdebug_suffix = "-slowdebug";
 256     common.slowdebug_profile_base = {
 257         configure_args: ["--with-debug-level=slowdebug"],
 258         labels: "slowdebug"
 259     };
 260     // Extra settings for openjdk only profiles
 261     common.open_suffix = "-open";
 262     common.open_profile_base = {


 361         + common.boot_jdk_version
 362         + (input.build_os == "macosx" ? ".jdk/Contents/Home" : "");
 363 
 364     return common;
 365 };
 366 
 367 /**
 368  * Generates the profiles part of the configuration.
 369  *
 370  * @param input External data to use for generating the configuration
 371  * @param common The common values
 372  * @returns {{}} Profiles part of the configuration
 373  */
 374 var getJibProfilesProfiles = function (input, common, data) {
 375     // Main SE profiles
 376     var profiles = {
 377 
 378         "linux-x64": {
 379             target_os: "linux",
 380             target_cpu: "x64",
 381             dependencies: ["devkit", "graphviz", "pandoc", "graalunit_lib"],
 382             configure_args: concat(common.configure_args_64bit,
 383                 "--enable-full-docs", "--with-zlib=system"),
 384             default_make_targets: ["docs-bundles"],
 385         },
 386 
 387         "linux-x86": {
 388             target_os: "linux",
 389             target_cpu: "x86",
 390             build_cpu: "x64",
 391             dependencies: ["devkit"],
 392             configure_args: concat(common.configure_args_32bit,
 393                 "--with-jvm-variants=minimal,server", "--with-zlib=system"),
 394         },
 395 
 396         "macosx-x64": {
 397             target_os: "macosx",
 398             target_cpu: "x64",
 399             dependencies: ["devkit", "graalunit_lib"],
 400             configure_args: concat(common.configure_args_64bit, "--with-zlib=system",
 401                 "--with-macosx-version-max=10.9.0"),
 402         },
 403 
 404         "solaris-x64": {
 405             target_os: "solaris",
 406             target_cpu: "x64",
 407             dependencies: ["devkit", "cups"],
 408             configure_args: concat(common.configure_args_64bit,
 409                 "--with-zlib=system", "--enable-dtrace"),
 410         },
 411 
 412         "solaris-sparcv9": {
 413             target_os: "solaris",
 414             target_cpu: "sparcv9",
 415             dependencies: ["devkit", "cups"],
 416             configure_args: concat(common.configure_args_64bit,
 417                 "--with-zlib=system", "--enable-dtrace"),
 418         },
 419 
 420         "windows-x64": {
 421             target_os: "windows",
 422             target_cpu: "x64",
 423             dependencies: ["devkit", "graalunit_lib"],
 424             configure_args: concat(common.configure_args_64bit),
 425         },
 426 
 427         "windows-x86": {
 428             target_os: "windows",
 429             target_cpu: "x86",
 430             build_cpu: "x64",
 431             dependencies: ["devkit"],
 432             configure_args: concat(common.configure_args_32bit),
 433         },
 434 
 435         "linux-aarch64": {
 436             target_os: "linux",
 437             target_cpu: "aarch64",
 438             build_cpu: "x64",
 439             dependencies: ["devkit", "build_devkit", "cups"],
 440             configure_args: [
 441                 "--openjdk-target=aarch64-linux-gnu", "--with-freetype=bundled",
 442                 "--disable-warnings-as-errors", "--with-cpu-port=aarch64",
 443             ],
 444         },
 445 
 446         "linux-arm64": {
 447             target_os: "linux",
 448             target_cpu: "aarch64",
 449             build_cpu: "x64",
 450             dependencies: ["devkit", "build_devkit", "cups", "headless_stubs"],
 451             configure_args: [
 452                 "--with-cpu-port=arm64",
 453                 "--with-jvm-variants=server",
 454                 "--openjdk-target=aarch64-linux-gnu",
 455                 "--enable-headless-only"
 456             ],
 457         },
 458 
 459         "linux-arm32": {
 460             target_os: "linux",
 461             target_cpu: "arm",
 462             build_cpu: "x64",
 463             dependencies: ["devkit", "build_devkit", "cups"],
 464             configure_args: [
 465                 "--openjdk-target=arm-linux-gnueabihf", "--with-freetype=bundled",
 466                 "--with-abi-profile=arm-vfp-hflt", "--disable-warnings-as-errors"
 467             ],
 468         },
 469 
 470         "linux-arm-vfp-hflt": {
 471             target_os: "linux",
 472             target_cpu: "arm",
 473             build_cpu: "x64",
 474             dependencies: ["devkit", "build_devkit", "cups"],
 475             configure_args: [
 476                 "--with-jvm-variants=minimal1,client",
 477                 "--with-x=" + input.get("devkit", "install_path") + "/arm-linux-gnueabihf/libc/usr/X11R6-PI",
 478                 "--with-fontconfig=" + input.get("devkit", "install_path") + "/arm-linux-gnueabihf/libc/usr/X11R6-PI",
 479                 "--openjdk-target=arm-linux-gnueabihf",
 480                 "--with-abi-profile=arm-vfp-hflt",
 481                 "--with-freetype=bundled"
 482             ],
 483         },
 484 
 485         // Special version of the SE profile adjusted to be testable on arm64 hardware.
 486         "linux-arm-vfp-hflt-dyn": {
 487             configure_args: "--with-stdc++lib=dynamic"
 488         }
 489     };
 490     // Let linux-arm-vfp-hflt-dyn inherit everything from linux-arm-vfp-hflt
 491     profiles["linux-arm-vfp-hflt-dyn"] = concatObjects(
 492         profiles["linux-arm-vfp-hflt-dyn"], profiles["linux-arm-vfp-hflt"]);
 493 
 494     // Add the base settings to all the main profiles


< prev index next >