1load("@buildifier_prebuilt//:rules.bzl", "buildifier", "buildifier_test") 2load("@rules_pkg//:pkg.bzl", "pkg_tar") 3load("//bazel:compat.bzl", "SKIP_ON_WINDOWS") 4 5exports_files(["LICENSE"]) 6 7pkg_tar( 8 name = "jazzer_release", 9 srcs = [ 10 "//launcher:jazzer", 11 "//src/main/java/com/code_intelligence/jazzer:jazzer_standalone_deploy.jar", 12 ], 13 extension = "tar.gz", 14 mode = "0777", 15 remap_paths = { 16 "src/main/java/com/code_intelligence/jazzer/jazzer_standalone_deploy.jar": "jazzer_standalone.jar", 17 } | select({ 18 "@platforms//os:windows": {"launcher/jazzer": "jazzer.exe"}, 19 "//conditions:default": {"launcher/jazzer": "jazzer"}, 20 }), 21 strip_prefix = select({ 22 "@platforms//os:windows": ".\\", 23 "//conditions:default": "./", 24 }), 25 visibility = ["//tests:__pkg__"], 26) 27 28alias( 29 name = "jazzer", 30 actual = "//launcher:jazzer", 31) 32 33alias( 34 name = "addlicense", 35 actual = select({ 36 "@platforms//os:macos": "@addlicense-darwin-universal//file:addlicense", 37 "@platforms//os:linux": "@addlicense-linux-amd64//file:addlicense", 38 }), 39 tags = ["manual"], 40) 41 42BUILDIFIER_EXCLUDE_PATTERNS = [ 43 "./.git/*", 44 "./.ijwb/*", 45 "./.clwb/*", 46] 47 48buildifier( 49 name = "buildifier", 50 diff_command = "diff -u", 51 exclude_patterns = BUILDIFIER_EXCLUDE_PATTERNS, 52 mode = "fix", 53 tags = ["manual"], 54) 55 56buildifier_test( 57 name = "buildifier_test", 58 diff_command = "diff -u", 59 exclude_patterns = BUILDIFIER_EXCLUDE_PATTERNS, 60 no_sandbox = True, 61 target_compatible_with = SKIP_ON_WINDOWS, 62 workspace = "//:WORKSPACE.bazel", 63) 64 65alias( 66 name = "clang-format", 67 actual = select({ 68 "@platforms//os:macos": "@clang-format-15-darwin-x64//file:clang-format", 69 "@platforms//os:linux": "@clang-format-15-linux-x64//file:clang-format", 70 }), 71 tags = ["manual"], 72) 73 74platform( 75 name = "android_arm64", 76 constraint_values = [ 77 "@platforms//cpu:arm64", 78 "@platforms//os:android", 79 ], 80 visibility = ["//:__subpackages__"], 81) 82