Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ build --enable_platform_specific_config

build:linux --cxxopt=-std=c++17

build:macos --cxxopt=-std=c++17

build:windows --copt=/utf-8
build:windows --copt=/Zc:preprocessor
build:windows --cxxopt=/std:c++17
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -275,3 +275,4 @@ desktop.iniimages/
# Ignore all bazel-* symlinks. There is no full list since this can change
# based on the name of the directory bazel is cloned into.
/bazel-*
MODULE.bazel.lock
2 changes: 2 additions & 0 deletions BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
load("@rules_cc//cc:defs.bzl", "cc_library")

cc_library(
name = "argparse",
hdrs = ["include/argparse/argparse.hpp"],
Expand Down
7 changes: 7 additions & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module(
name = "argparse",
version = "3.2.0",
compatibility_level = 1,
)

bazel_dep(name = "rules_cc", version = "0.2.14")
4 changes: 3 additions & 1 deletion samples/add_sample.bzl
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
load("@rules_cc//cc:defs.bzl", "cc_binary")

def add_sample(name):
native.cc_binary(
cc_binary(
name = name,
srcs = ["{}.cpp".format(name)],
deps = ["//:argparse"],
Expand Down
2 changes: 2 additions & 0 deletions test/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test")

cc_library(
name = "doctest",
srcs = [
Expand Down