upb: Dart pb_runtime now uses the google3 ffigen everywhere

PiperOrigin-RevId: 527599631
pull/13171/head
Eric Salo 2 years ago committed by Copybara-Service
parent 3475ebec94
commit 8ad3a76d8f
  1. 26
      BUILD
  2. 13
      upb/ffi.c
  3. 19
      upbc/BUILD

26
BUILD

@ -1057,6 +1057,32 @@ cc_library(
deps = [":port"], deps = [":port"],
) )
cc_binary(
name = "libupb.so",
srcs = ["upb/ffi.c"],
copts = UPB_DEFAULT_COPTS + ["-DUPB_BUILD_API"],
linkshared = 1,
linkstatic = 1,
visibility = ["//visibility:public"],
deps = [
"//:collections",
"//:collections_split64",
"//:mem",
"//:message",
"//:message_accessors",
"//:message_split64",
"//:mini_table",
"//:port",
],
)
cc_library(
name = "libupb",
srcs = [":libupb.so"],
linkstatic = 1,
visibility = ["//visibility:public"],
)
# Amalgamation ################################################################# # Amalgamation #################################################################
# begin:github_only # begin:github_only

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2009-2022, Google LLC * Copyright (c) 2009-2021, Google LLC
* All rights reserved. * All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
@ -25,19 +25,10 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
// This disables inlining and forces all public functions to be exported to the // These headers form a spanning tree for the upb defs needed by FFI layers.
// linker. It is used to generate bindings for FFIs from other languages.
#ifndef UPB_BUILD_API
#define UPB_BUILD_API
#endif
#include "upb/collections/array.h"
#include "upb/collections/array_split64.h" #include "upb/collections/array_split64.h"
#include "upb/collections/map.h" #include "upb/collections/map.h"
#include "upb/message/accessors.h"
#include "upb/message/accessors_split64.h" #include "upb/message/accessors_split64.h"
#include "upb/message/message.h" #include "upb/message/message.h"
#include "upb/mini_table/decode.h" #include "upb/mini_table/decode.h"
// Must be last.
#include "upb/port/def.inc"

@ -90,25 +90,6 @@ upb_proto_reflection_library(
deps = ["@com_google_protobuf//:compiler_plugin_proto"], deps = ["@com_google_protobuf//:compiler_plugin_proto"],
) )
cc_binary(
name = "upbc_so",
srcs = ["upbc_so.c"],
copts = UPB_DEFAULT_COPTS,
linkshared = 1,
linkstatic = 1,
visibility = ["//visibility:public"],
deps = [
"//:collections",
"//:collections_split64",
"//:mem",
"//:message",
"//:message_accessors",
"//:message_split64",
"//:mini_table",
"//:port",
],
)
bootstrap_cc_library( bootstrap_cc_library(
name = "common", name = "common",
srcs = [ srcs = [

Loading…
Cancel
Save