• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1
2# upb CMake build (EXPERIMENTAL)
3
4upb's CMake support is experimental. The core library builds successfully
5under CMake, and this is verified by the Bazel tests in this directory.
6However there is no support for building the upb compiler or for generating
7.upb.c/upb.h files. This means upb's CMake support is incomplete at best,
8unless your application is intended to be purely reflective.
9
10If you find this CMake setup useful in its current state, please consider
11filing an issue so we know. If you have suggestions for how it could be
12more useful (and particularly if you can contribute some code for it)
13please feel free to file an issue for that too. Do keep in mind that upb
14does not currently provide any ABI stability, so we want to avoid providing
15a shared library.
16
17The CMakeLists.txt is generated from the Bazel BUILD files using the Python
18scripts in this directory. We want to avoid having two separate sources of
19truth that both need to be updated when a file is added or removed.
20
21This directory also contains some generated files that would be created
22on the fly during a Bazel build. These are automaticaly kept in sync by
23the Bazel test `//cmake:test_generated_files`.
24