getml / reflect-cpp

A C++20 library for fast serialization, deserialization and validation using reflection. Supports JSON, BSON, CBOR, flexbuffers, msgpack, TOML, XML, YAML / msgpack.org[C++20]
https://getml.github.io/reflect-cpp/
MIT License
901 stars 76 forks source link

Add BAZEL build #35

Open Pennywise007 opened 8 months ago

Pennywise007 commented 8 months ago

It should be really simple, sth like

load("@rules_cc//cc:defs.bzl", "cc_library")

cc_library(
    name = "refl_main",
    hdrs = glob([
        "include/**/*.h",
        "include/*.h",
    ]),
    srcs = [
      "src/yyjson.c",
    ],
    includes = ["include"],
    visibility = ["//visibility:public"],
)