Moved legacy_msg_reflection.{c,h} -> reflection.{c.h}.

pull/13171/head
Joshua Haberman 5 years ago
parent dc58b657ee
commit 9a360ad43d
  1. 21
      BUILD
  2. 11
      CMakeLists.txt
  3. 6
      upb/bindings/lua/msg.c
  4. 2
      upb/reflection.c
  5. 0
      upb/reflection.h

21
BUILD

@ -116,10 +116,12 @@ cc_library(
srcs = [
"upb/def.c",
"upb/msgfactory.c",
"upb/reflection.c",
],
hdrs = [
"upb/def.h",
"upb/msgfactory.h",
"upb/reflection.h",
],
copts = select({
":windows": [],
@ -143,23 +145,6 @@ cc_library(
# Legacy C/C++ Libraries (not recommended for new code) ########################
cc_library(
name = "legacy_msg_reflection",
srcs = [
"upb/legacy_msg_reflection.c",
],
hdrs = ["upb/legacy_msg_reflection.h"],
copts = select({
":windows": [],
"//conditions:default": COPTS
}),
deps = [
":table",
":upb",
":reflection",
],
)
cc_library(
name = "handlers",
srcs = [
@ -592,7 +577,7 @@ lua_cclibrary(
"upb/bindings/lua/upb.h",
],
deps = [
"legacy_msg_reflection",
"reflection",
"upb",
"upb_pb",
],

@ -81,8 +81,10 @@ target_link_libraries(generated_code_support__only_for_generated_code_do_not_use
add_library(reflection
upb/def.c
upb/msgfactory.c
upb/reflection.c
upb/def.h
upb/msgfactory.h)
upb/msgfactory.h
upb/reflection.h)
target_link_libraries(reflection
descriptor_upbproto
table
@ -90,13 +92,6 @@ target_link_libraries(reflection
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
table
upb
reflection)
add_library(handlers
upb/handlers.c
upb/handlers-inl.h

@ -2,6 +2,8 @@
** lupb_msg -- Message/Array/Map objects in Lua/C that wrap upb/msg.h
*/
#include "upb/msg.h"
#include <float.h>
#include <math.h>
#include <stddef.h>
@ -11,10 +13,8 @@
#include "lauxlib.h"
#include "upb/bindings/lua/upb.h"
#include "upb/handlers.h"
#include "upb/legacy_msg_reflection.h"
#include "upb/msg.h"
#include "upb/port_def.inc"
#include "upb/reflection.h"
/*
* Message/Array/Map objects can be constructed in one of two ways:

@ -1,5 +1,5 @@
#include "upb/legacy_msg_reflection.h"
#include "upb/reflection.h"
#include <string.h>
#include "upb/table.int.h"
Loading…
Cancel
Save