quick start with bazel
project/
|-- WORKSPACE.bazel
|-- BUILD.bazel
`-- main.cpp
WORKSPACE.bazel
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
git_repository(
name = "thirdparty",
remote = "https://github.com/liphx/cpp-thirdparty.git",
branch = "master",
)
git_repository(
name = "liph",
remote = "https://github.com/liphx/code.git",
branch = "main",
strip_prefix = "src/cplusplus",
)
BUILD.bazel
cc_binary(
name = "main",
srcs = ["main.cpp"],
deps = [
"@liph//liph",
],
)
main.cpp
int main() {
}
void print(bool b)
Definition: print.h:72
env
Linux & Mac