-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from jaqx0r/bazel-build
build: Set up bazel to replace SCons.
- Loading branch information
Showing
27 changed files
with
1,983 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
package(default_visibility = [":__subpackages__"]) | ||
|
||
cc_library( | ||
name = "core", | ||
srcs = [ | ||
"error.c", | ||
"fg-util.c", | ||
"filter.c", | ||
"icmpent.c", | ||
], | ||
hdrs = [ | ||
"error.h", | ||
"filter.h", | ||
"icmpent.h", | ||
"util.h", | ||
], | ||
deps = ["//input:sourcepos"], | ||
) | ||
|
||
cc_library( | ||
name = "factoriser", | ||
srcs = ["factoriser.c"], | ||
hdrs = ["factoriser.h"], | ||
) | ||
|
||
cc_binary( | ||
name = "filtergen", | ||
srcs = [ | ||
"fg-iptrestore.c", | ||
"filtergen.c", | ||
"gen.c", | ||
], | ||
defines = ["VERSION=\\\"TODO\\\""], | ||
deps = [ | ||
"//input/filtergen:in_filtergen", | ||
"//input/iptables-save:in_iptables_save", | ||
"//output/cisco:out_cisco", | ||
"//output/filtergen:out_filtergen", | ||
"//output/ipchains:out_ipchains", | ||
"//output/ipfilter:out_ipfilter", | ||
"//output/iptables:out_iptables", | ||
"//output/iptablesrestore:out_iptablesrestore", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
############################################################################### | ||
# Bazel now uses Bzlmod by default to manage external dependencies. | ||
# Please consider migrating your external dependencies from WORKSPACE to MODULE.bazel. | ||
# | ||
# For more details, please check https://github.com/bazelbuild/bazel/issues/18958 | ||
############################################################################### | ||
|
||
bazel_dep(name = "rules_bison", version = "0.2.2") | ||
bazel_dep(name = "rules_flex", version = "0.2.1") |
Oops, something went wrong.