Internal change

PiperOrigin-RevId: 439541914
Change-Id: Ib0a0941436da61b499d7359e0ea06d244a111970
This commit is contained in:
Christian Blichmann 2022-04-05 04:22:22 -07:00 committed by Copybara-Service
parent fc85310da2
commit 07ca5064d1
2 changed files with 13 additions and 13 deletions

View File

@ -14,6 +14,8 @@
# Description: Example using dynamic length structures for Sandboxed API
package(default_visibility = ["//sandboxed_api:__subpackages__"])
load("//sandboxed_api/bazel:build_defs.bzl", "sapi_platform_copts")
load("//sandboxed_api/bazel:proto.bzl", "sapi_proto_library")
load("//sandboxed_api/bazel:sapi.bzl", "sapi_library")
@ -32,7 +34,6 @@ cc_library(
srcs = ["stringop.cc"],
copts = sapi_platform_copts(),
linkstatic = True,
visibility = ["//visibility:public"],
deps = [
":stringop_params_cc_proto",
"//sandboxed_api:lenval_core",
@ -41,11 +42,7 @@ cc_library(
alwayslink = True,
)
sapi_library(
name = "stringop-sapi",
srcs = [],
hdrs = ["sandbox.h"],
functions = [
STRINGOP_FUNCTIONS = [
"duplicate_string",
"reverse_string",
"pb_duplicate_string",
@ -53,13 +50,17 @@ sapi_library(
"nop",
"violate",
"get_raw_c_string",
],
]
sapi_library(
name = "stringop-sapi",
hdrs = ["sandbox.h"],
functions = STRINGOP_FUNCTIONS,
generator_version = 1,
input_files = ["stringop.cc"],
lib = ":stringop",
lib_name = "Stringop",
namespace = "",
visibility = ["//visibility:public"],
deps = [":stringop_params_cc_proto"],
)

View File

@ -24,7 +24,6 @@
#include "absl/status/status.h"
#include "absl/time/time.h"
#include "sandboxed_api/examples/stringop/sandbox.h"
#include "sandboxed_api/examples/stringop/stringop-sapi.sapi.h"
#include "sandboxed_api/examples/stringop/stringop_params.pb.h"
#include "sandboxed_api/transaction.h"
#include "sandboxed_api/util/status_macros.h"