Skip to content
This repository has been archived by the owner on Jan 5, 2023. It is now read-only.

Commit

Permalink
Add dist and dist-arch
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickt committed Dec 11, 2020
1 parent 3575134 commit 397287b
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,4 +1,45 @@
load("@bazel_gazelle//:def.bzl", "gazelle")
load("//:common.bzl", "get_codeql_arch", "pack_exe_zip", "pack_zip")

# gazelle:prefix github.com/github/codeql-go
gazelle(name = "gazelle")

pack_zip(
name = "dist",
srcs = glob([
"codeql-tools/**",
"ql/src/*.dbscheme*",
"codeql-extractor.yml",
"LICENSE",
]),
out = "pack-codeql-extractor-go.zip",
language = "go",
rewrite_prefixes = {
"language-packs/go/codeql-tools": "go/tools",
"language-packs/go/ql/src": "go",
},
visibility = ["//visibility:public"],
)

pack_exe_zip(
name = "dist-arch",
srcs = [
"//language-packs/go/extractor/cli/go-autobuilder",
"//language-packs/go/extractor/cli/go-bootstrap",
"//language-packs/go/extractor/cli/go-build-runner",
"//language-packs/go/extractor/cli/go-extractor",
"//language-packs/go/extractor/cli/go-gen-dbscheme",
"//language-packs/go/extractor/cli/go-tokenizer",
],
language = "go",
overrides = {
"go-autobuilder": "",
"go-bootstrap": "",
"go-build-runner": "",
"go-extractor": "",
"go-gen-dbscheme": "",
"go-tokenizer": "",
},
platform = get_codeql_arch(),
visibility = ["//visibility:public"],
)

0 comments on commit 397287b

Please sign in to comment.