protobuf/upb/cmake
Protobuf Team Bot d3b2fc52a4 Auto-generate files after cl/630090538 2024-05-02 17:02:37 +00:00
..
google/protobuf Auto-generate files after cl/630090538 2024-05-02 17:02:37 +00:00
BUILD.bazel Move private definitions out of //bazel 2024-04-03 01:37:51 -07:00
CMakeLists.txt Auto-generate files after cl/597923328 2024-01-12 20:54:13 +00:00
README.md Move upb-x/ back to upb/ 2023-08-25 16:36:38 +00:00
build_defs.bzl Added new, split upb rules for MiniTables and the C API. 2023-09-14 17:08:00 -07:00
make_cmakelists.py Move utf8_range into the protobuf repo 2023-11-08 15:43:35 -08:00
push_auto_update.sh Move upb-x/ back to upb/ 2023-08-25 16:36:38 +00:00
staleness_test.py Merge the protobuf and upb Bazel repos 2023-09-12 13:09:54 -07:00
staleness_test_lib.py Move upb-x/ back to upb/ 2023-08-25 16:36:38 +00:00

README.md

upb CMake build (EXPERIMENTAL)

upb's CMake support is experimental. The core library builds successfully under CMake, and this is verified by the Bazel tests in this directory. However there is no support for building the upb compiler or for generating .upb.c/upb.h files. This means upb's CMake support is incomplete at best, unless your application is intended to be purely reflective.

If you find this CMake setup useful in its current state, please consider filing an issue so we know. If you have suggestions for how it could be more useful (and particularly if you can contribute some code for it) please feel free to file an issue for that too. Do keep in mind that upb does not currently provide any ABI stability, so we want to avoid providing a shared library.

The CMakeLists.txt is generated from the Bazel BUILD files using the Python scripts in this directory. We want to avoid having two separate sources of truth that both need to be updated when a file is added or removed.

This directory also contains some generated files that would be created on the fly during a Bazel build. These are automaticaly kept in sync by the Bazel test //cmake:test_generated_files.