Merge pull request #517 from fowles/main

Fixes for more strict build evnironments
pull/13171/head
Matt Fowles Kulukundis 3 years ago committed by GitHub
commit 663a35f5f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      BUILD
  2. 2
      cmake/CMakeLists.txt
  3. 2
      upb/test_generated_code.cc

12
BUILD

@ -304,6 +304,16 @@ upb_proto_reflection_library(
deps = ["test_cpp_proto"], deps = ["test_cpp_proto"],
) )
upb_proto_library(
name = "timestamp_upb_proto",
deps = ["@com_google_protobuf//:timestamp_proto"],
)
upb_proto_reflection_library(
name = "timestamp_upb_proto_reflection",
deps = ["@com_google_protobuf//:timestamp_proto"],
)
cc_test( cc_test(
name = "test_cpp", name = "test_cpp",
srcs = ["upb/test_cpp.cc"], srcs = ["upb/test_cpp.cc"],
@ -311,6 +321,8 @@ cc_test(
deps = [ deps = [
":test_cpp_upb_proto", ":test_cpp_upb_proto",
":test_cpp_upb_proto_reflection", ":test_cpp_upb_proto_reflection",
":timestamp_upb_proto",
":timestamp_upb_proto_reflection",
"//:json", "//:json",
"//:port", "//:port",
"//:reflection", "//:reflection",

@ -112,6 +112,7 @@ target_link_libraries(reflection
upb) upb)
add_library(textformat add_library(textformat
../upb/text_encode.c ../upb/text_encode.c
../upb/upb_internal.h
../upb/text_encode.h) ../upb/text_encode.h)
target_link_libraries(textformat target_link_libraries(textformat
port port
@ -119,6 +120,7 @@ target_link_libraries(textformat
add_library(json add_library(json
../upb/json_decode.c ../upb/json_decode.c
../upb/json_encode.c ../upb/json_encode.c
../upb/upb_internal.h
../upb/json_decode.h ../upb/json_decode.h
../upb/json_encode.h) ../upb/json_encode.h)
target_link_libraries(json target_link_libraries(json

@ -35,7 +35,9 @@
#include "upb/test.upb.h" #include "upb/test.upb.h"
#include "upb/upb.hpp" #include "upb/upb.hpp"
#if !defined(MIN)
#define MIN(x, y) ((x) < (y) ? (x) : (y)) #define MIN(x, y) ((x) < (y) ? (x) : (y))
#endif
const char test_str[] = "abcdefg"; const char test_str[] = "abcdefg";
const char test_str2[] = "12345678910"; const char test_str2[] = "12345678910";

Loading…
Cancel
Save