--- /dev/null +++ BUILD.bazel @@ -0,0 +1,15 @@ +load("@rules_cc//cc:defs.bzl", "cc_library") + +cc_library( + name = "simdjson", + srcs = ["simdjson.cpp"], + hdrs = ["simdjson.h"], + includes = ["."], + defines = ["SIMDJSON_THREADS_ENABLED=1"], + linkopts = select({ + "@platforms//os:windows": [], + "//conditions:default": ["-pthread"], + }), + visibility = ["//visibility:public"], +) +