Esun Kim
c08eb4fc41
* Update upb to 85e5c76cb7098d3ae35e575d652a40568013a149 * Update grpc_deps.bzl * Run gen_upb_api.sh * Run run_sed.sh * Update gen_build_yaml.py * Regen projects * Reformat * Update third_party/upb to 950cdab42fe4c83f06a2be46eeb46a068e486eed * Update third_party/upb to c9c31241bc39922b092a81d192badd50cccaaa81 * Update src/upb/gen_build_yaml.py * Generated projects * Update third_party/upb to a02d92e0257a35f11d4a58b6a932506cbdbb2f29 * Patching in https://github.com/protocolbuffers/upb/pull/524 * Sed script went too far. Co-authored-by: Nicolas 'Pixel' Noble <nicolas@nobis-crew.org> |
3 years ago | |
---|---|---|
.. | ||
google/protobuf | Attempt to upgrade upb to the latest (#28685) | 3 years ago |
BUILD | Attempt to upgrade upb to the latest (#28685) | 3 years ago |
CMakeLists.txt | Attempt to upgrade upb to the latest (#28685) | 3 years ago |
README.md | Upgrade upb to 60607da | 4 years ago |
build_defs.bzl | Upgrade upb to 0e0de7d9 (#27984) | 3 years ago |
make_cmakelists.py | Attempt to upgrade upb to the latest (#28685) | 3 years ago |
staleness_test.py | Upb upgrade to the lastest (#26869) | 3 years ago |
staleness_test_lib.py | Upb upgrade to the lastest (#26869) | 3 years ago |
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
.