2 Commits

Author SHA1 Message Date
bcsgh
6f6aca167f
Make the build configuration under Bazel more correct. (#1600)
* Expose JSON_USE_EXCEPTION and JSON_HAS_INT64 as Bazel config flags with defaults that match the existing Bazel build.
Switch //:jsoncpp from using copts ro defines for JSON_USE_EXCEPTION and JSON_HAS_INT64 so that rules that depend on it get the same config.
Make src/test_lib_json/fuzz.cpp respect JSON_USE_EXCEPTION.

* #ifdef stuff that should only be used with JSON_USE_EXCEPTION.

---------

Co-authored-by: Jordan Bayles <bayles.jordan@gmail.com>
2025-11-11 23:58:32 -08:00
bcsgh
037752d9a1
Set up for Bazel module builds. (#1597)
* Set up for Bazel module builds.

Note: the MODULE.bazel is copied from https://github.com/bazelbuild/bazel-central-registry/blob/main/modules/jsoncpp/1.9.6/MODULE.bazel

* More tweaks to .gitignore
2025-03-12 15:57:16 -07:00