Skip to content

Commit 8a5e611

Browse files
committed
Bazel: add skeleton bazel workspace
This moves in codeql some internal bazel definitions in preparation for future work.
1 parent 29a5bdb commit 8a5e611

File tree

5 files changed

+46
-0
lines changed

5 files changed

+46
-0
lines changed

WORKSPACE.bazel

Whitespace-only changes.

bazel/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Please notice that any bazel targets and definitions in this repository are currently experimental and for internal use
2+
only.

cpp/BUILD.bazel

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package(default_visibility = ["//visibility:public"])
2+
3+
load("@rules_pkg//:mappings.bzl", "pkg_filegroup")
4+
5+
alias(
6+
name = "dbscheme",
7+
actual = "//cpp/ql/lib:dbscheme",
8+
)
9+
10+
pkg_filegroup(
11+
name = "db-files",
12+
srcs = [
13+
":dbscheme",
14+
"//cpp/downgrades",
15+
"//cpp/ql/lib:dbscheme-stats",
16+
],
17+
)

cpp/downgrades/BUILD.bazel

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
load("@rules_pkg//:mappings.bzl", "pkg_files", "strip_prefix")
2+
3+
pkg_files(
4+
name = "downgrades",
5+
srcs = glob(
6+
["**"],
7+
exclude = ["BUILD.bazel"],
8+
),
9+
prefix = "cpp/downgrades",
10+
strip_prefix = strip_prefix.from_pkg(),
11+
visibility = ["//cpp:__pkg__"],
12+
)

cpp/ql/lib/BUILD.bazel

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package(default_visibility = ["//cpp:__pkg__"])
2+
3+
load("@rules_pkg//:mappings.bzl", "pkg_files")
4+
5+
pkg_files(
6+
name = "dbscheme",
7+
srcs = ["semmlecode.cpp.dbscheme"],
8+
prefix = "cpp",
9+
)
10+
11+
pkg_files(
12+
name = "dbscheme-stats",
13+
srcs = ["semmlecode.cpp.dbscheme.stats"],
14+
prefix = "cpp",
15+
)

0 commit comments

Comments
 (0)