bazel: Set generator version to default v1

No change in behavior.

PiperOrigin-RevId: 438766481
Change-Id: Iaf52d32856007fb83ee0032d4d5097482f45f47d
pull/140/head
Christian Blichmann 2022-04-01 01:45:23 -07:00 committed by Copybara-Service
parent 4b2c730c5e
commit 3f72b3cab7
5 changed files with 5 additions and 0 deletions

View File

@ -30,6 +30,7 @@ sapi_library(
functions = [ functions = [
"AddTwoIntegers", "AddTwoIntegers",
], ],
generator_version = 1,
input_files = ["hello_lib.cc"], input_files = ["hello_lib.cc"],
lib = ":hello_lib", lib = ":hello_lib",
lib_name = "Hello", lib_name = "Hello",

View File

@ -54,6 +54,7 @@ sapi_library(
"violate", "violate",
"get_raw_c_string", "get_raw_c_string",
], ],
generator_version = 1,
input_files = ["stringop.cc"], input_files = ["stringop.cc"],
lib = ":stringop", lib = ":stringop",
lib_name = "Stringop", lib_name = "Stringop",

View File

@ -60,6 +60,7 @@ sapi_library(
"sleep_for_sec", "sleep_for_sec",
"sumproto", "sumproto",
], ],
generator_version = 1,
input_files = [ input_files = [
"sum.c", "sum.c",
"sum_cpp.cc", "sum_cpp.cc",

View File

@ -28,6 +28,7 @@ sapi_library(
"deflate", "deflate",
"deflateEnd", "deflateEnd",
], ],
generator_version = 1,
lib = "@net_zlib//:zlib", lib = "@net_zlib//:zlib",
lib_name = "Zlib", lib_name = "Zlib",
namespace = "sapi::zlib", namespace = "sapi::zlib",

View File

@ -60,6 +60,7 @@ cc_library(
# Targets for testing if generated code compiles # Targets for testing if generated code compiles
sapi_library( sapi_library(
name = "tests_sapi_generator", name = "tests_sapi_generator",
generator_version = 1,
input_files = [ input_files = [
"testdata/tests.cc", "testdata/tests.cc",
"testdata/tests2.cc", "testdata/tests2.cc",