diff options
author | Joshua Haberman <jhaberman@gmail.com> | 2019-03-27 12:52:33 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-27 12:52:33 -0700 |
commit | 928ef7f2c02f18d9945dd750884dffbdebef1b98 (patch) | |
tree | d3b71619bfa0b8a91854045c01ce8b5cd15ae403 /CMakeLists.txt | |
parent | 00f96cb9475228ecacd9be1660f4f8d9d7b24038 (diff) |
Removed reflection and other extraneous things from the core library. (#158)
* Removed reflection and other extraneous things from the core library.
* Added missing files and ran buildifier.
* New CMakeLists.txt.
* Made table its own cc_library() for internal usage.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 37 |
1 files changed, 26 insertions, 11 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index dfdeba5..af09f4e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -62,29 +62,43 @@ enable_testing() add_library(upb google/protobuf/descriptor.upb.c upb/decode.c - upb/def.c upb/encode.c - upb/handlers.c - upb/handlers-inl.h upb/msg.c - upb/msgfactory.c upb/port_def.inc upb/port_undef.inc - upb/sink.c - upb/structs.int.h upb/table.c upb/table.int.h upb/upb.c google/protobuf/descriptor.upb.h upb/decode.h - upb/def.h upb/encode.h upb/generated_util.h - upb/handlers.h upb/msg.h - upb/msgfactory.h - upb/sink.h upb/upb.h) +add_library(reflection + upb/def.c + upb/msgfactory.c + upb/def.h + upb/msgfactory.h) +target_link_libraries(reflection + upb) +add_library(table INTERFACE) +target_link_libraries(table INTERFACE + upb) +add_library(legacy_msg_reflection + upb/legacy_msg_reflection.c + upb/legacy_msg_reflection.h) +target_link_libraries(legacy_msg_reflection + upb) +add_library(handlers + upb/handlers.c + upb/handlers-inl.h + upb/sink.c + upb/handlers.h + upb/sink.h) +target_link_libraries(handlers + reflection + upb) add_library(upb_pb upb/pb/compile_decoder.c upb/pb/decoder.c @@ -93,11 +107,12 @@ add_library(upb_pb upb/pb/textprinter.c upb/pb/varint.c upb/pb/varint.int.h - upb/table.int.h upb/pb/decoder.h upb/pb/encoder.h upb/pb/textprinter.h) target_link_libraries(upb_pb + handlers + table upb) add_library(upb_json upb/json/parser.c |