diff options
Diffstat (limited to 'BUILD.bazel')
-rw-r--r-- | BUILD.bazel | 99 |
1 files changed, 49 insertions, 50 deletions
diff --git a/BUILD.bazel b/BUILD.bazel index 5afcd034..90845746 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -1,82 +1,81 @@ -load("@bazel_tools//tools/build_defs/pkg:pkg.bzl", "pkg_tar") -load("@io_bazel_rules_kotlin//kotlin:kotlin.bzl", "define_kt_toolchain") -load("@io_bazel_rules_kotlin//kotlin/internal:opts.bzl", "kt_javac_options", "kt_kotlinc_options") +load("@buildifier_prebuilt//:rules.bzl", "buildifier", "buildifier_test") +load("@rules_pkg//:pkg.bzl", "pkg_tar") +load("//bazel:compat.bzl", "SKIP_ON_WINDOWS") exports_files(["LICENSE"]) -kt_kotlinc_options( - name = "kotlinc_options", -) - -kt_javac_options( - name = "default_javac_options", -) - -define_kt_toolchain( - name = "kotlin_toolchain", - api_version = "1.5", - javac_options = ":default_javac_options", - jvm_target = "1.8", - kotlinc_options = ":kotlinc_options", - language_version = "1.5", -) - pkg_tar( name = "jazzer_release", srcs = [ - "//agent:jazzer_agent_deploy", - "//agent:jazzer_api_deploy.jar", - "//driver:jazzer_driver", + "//launcher:jazzer", + "//src/main/java/com/code_intelligence/jazzer:jazzer_standalone_deploy.jar", ], extension = "tar.gz", mode = "0777", remap_paths = { - "agent/jazzer_agent_deploy.jar": "jazzer_agent_deploy.jar", - "agent/jazzer_api_deploy.jar": "jazzer_api_deploy.jar", - "driver/jazzer_driver": "jazzer", - }, - strip_prefix = "./", + "src/main/java/com/code_intelligence/jazzer/jazzer_standalone_deploy.jar": "jazzer_standalone.jar", + } | select({ + "@platforms//os:windows": {"launcher/jazzer": "jazzer.exe"}, + "//conditions:default": {"launcher/jazzer": "jazzer"}, + }), + strip_prefix = select({ + "@platforms//os:windows": ".\\", + "//conditions:default": "./", + }), + visibility = ["//tests:__pkg__"], ) alias( name = "jazzer", - actual = "//driver:jazzer_driver", + actual = "//launcher:jazzer", ) alias( - name = "jazzer_asan", - actual = "//driver:jazzer_driver_asan", + name = "addlicense", + actual = select({ + "@platforms//os:macos": "@addlicense-darwin-universal//file:addlicense", + "@platforms//os:linux": "@addlicense-linux-amd64//file:addlicense", + }), + tags = ["manual"], ) -alias( - name = "jazzer_ubsan", - actual = "//driver:jazzer_driver_ubsan", -) +BUILDIFIER_EXCLUDE_PATTERNS = [ + "./.git/*", + "./.ijwb/*", + "./.clwb/*", +] -exports_files([ - "jazzer-api.pom", -]) +buildifier( + name = "buildifier", + diff_command = "diff -u", + exclude_patterns = BUILDIFIER_EXCLUDE_PATTERNS, + mode = "fix", + tags = ["manual"], +) -config_setting( - name = "clang", - flag_values = {"@bazel_tools//tools/cpp:compiler": "clang"}, - visibility = ["//visibility:public"], +buildifier_test( + name = "buildifier_test", + diff_command = "diff -u", + exclude_patterns = BUILDIFIER_EXCLUDE_PATTERNS, + no_sandbox = True, + target_compatible_with = SKIP_ON_WINDOWS, + workspace = "//:WORKSPACE.bazel", ) alias( - name = "clang_on_linux", + name = "clang-format", actual = select({ - ":clang": "@platforms//os:linux", - "//conditions:default": ":clang", + "@platforms//os:macos": "@clang-format-15-darwin-x64//file:clang-format", + "@platforms//os:linux": "@clang-format-15-linux-x64//file:clang-format", }), - visibility = ["//visibility:public"], + tags = ["manual"], ) platform( - name = "x64_windows-clang-cl", + name = "android_arm64", constraint_values = [ - "@platforms//cpu:x86_64", - "@platforms//os:windows", - "@bazel_tools//tools/cpp:clang-cl", + "@platforms//cpu:arm64", + "@platforms//os:android", ], + visibility = ["//:__subpackages__"], ) |