3 "generated_file_staleness_test",
6 "//bazel:build_defs.bzl",
12 exports_files(["staleness_test.py"])
15 name = "staleness_test_lib",
17 srcs = ["staleness_test_lib.py"],
21 name = "make_cmakelists",
22 srcs = ["make_cmakelists.py"],
26 name = "gen_cmakelists",
31 "//third_party/wyhash:cmake_files",
34 outs = ["generated-in/CMakeLists.txt"],
35 cmd = "$(location :make_cmakelists) $@",
36 tools = [":make_cmakelists"],
40 name = "copy_json_ragel",
41 srcs = ["//:upb/json/parser.c"],
42 outs = ["generated-in/upb/json/parser.c"],
48 srcs = ["//:descriptor_upb_proto"],
50 "generated-in/google/protobuf/descriptor.upb.c",
51 "generated-in/google/protobuf/descriptor.upb.h",
53 cmd = "cp $(SRCS) $(@D)/generated-in/google/protobuf",
56 generated_file_staleness_test(
57 name = "test_generated_files",
60 "google/protobuf/descriptor.upb.c",
61 "google/protobuf/descriptor.upb.h",
64 generated_pattern = "generated-in/%s",
67 # Test the CMake build #########################################################
77 name = "gen_run_cmake_build",
78 out = "run_cmake_build.sh",
79 contents = "find . && mkdir build && cd build && cmake ../cmake && make -j8 && make test",
84 srcs = ["run_cmake_build.sh"],
88 "//third_party/wyhash:cmake_files",
90 deps = ["@bazel_tools//tools/bash/runfiles"],