LIPH's C++ Codes
LIPH's C++ Codes

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

#include "liph/liph.h"
int main() {
liph::print(std::vector<int>{10, 9, 42});
}
void print(bool b)
Definition: print.h:72

env

Linux & Mac