docopt.cpp icon indicating copy to clipboard operation
docopt.cpp copied to clipboard

Bazel support

Open nikodemus opened this issue 6 years ago • 0 comments

Given this,

WORKSPACE:

http_archive(
    name = "docopt_cpp",
    url = "http://github.com/nikodemus/docopt.cpp/zipball/bazel-support/",
    sha256 = "a7f191ae531994069680b4fd20a6d310246dc980c18db35f92a31bbfde45bed6",
    strip_prefix = "nikodemus-docopt.cpp-47c7302",
    type = "zip",
)

BUILD:

cc_binary(
    name = "example",
    srcs = ["example.cpp"],
    deps = ["@docopt_cpp//:docopt"],
)

type things will just work to use #include "docopt.cpp/docopt.h" in example.cpp.

(Except of course with the upstream repo instead of my fork.)

nikodemus avatar Apr 15 '18 18:04 nikodemus