From 47c7302a2de14d75aebff011ec849713ac950644 Mon Sep 17 00:00:00 2001 From: Nikodemus Siivola Date: Sun, 15 Apr 2018 21:14:40 +0300 Subject: [PATCH] Bazel support --- BUILD | 22 ++++++++++++++++++++++ WORKSPACE | 0 2 files changed, 22 insertions(+) create mode 100644 BUILD create mode 100644 WORKSPACE diff --git a/BUILD b/BUILD new file mode 100644 index 0000000..054d3f4 --- /dev/null +++ b/BUILD @@ -0,0 +1,22 @@ +# -*- python -*- + +# This makes +# +# #include "docopt.cpp/docopt.h" +# +# do the right thing, which is also as near as I can tell the +# recommended Bazel style (ie. prefixing the header with the +# library name.) +cc_library( + name = "docopt", + hdrs = ["docopt.h"], + srcs = [ + "docopt.h", + "docopt_value.h", + "docopt_util.h", + "docopt_private.h", + "docopt.cpp" + ], + include_prefix = "docopt.cpp", + visibility = ["//visibility:public"], +) diff --git a/WORKSPACE b/WORKSPACE new file mode 100644 index 0000000..e69de29