diff --git a/.bazelci/presubmit.yml b/.bazelci/presubmit.yml index cea328d01..0ad9d3180 100644 --- a/.bazelci/presubmit.yml +++ b/.bazelci/presubmit.yml @@ -16,8 +16,3 @@ platforms: - "..." test_targets: - "..." - windows: - build_targets: - - "..." - test_targets: - - "..." diff --git a/build_defs.bzl b/build_defs.bzl index c55ab5180..af6761010 100644 --- a/build_defs.bzl +++ b/build_defs.bzl @@ -1,6 +1,10 @@ # Description: # BUILD rules for generating flatbuffer files in various languages. +""" +Rules for building C++ flatbuffers with Bazel. +""" + flatc_path = "@com_github_google_flatbuffers//:flatc" DEFAULT_INCLUDE_PATHS = [ @@ -46,9 +50,11 @@ def flatbuffer_library_public( reflection binaries for the schemas. reflection_visiblity: The visibility of the generated reflection Fileset. output_to_bindir: Passed to genrule for output to bin directory. - Outs: - filegroup(name): all generated source files. - Fileset([reflection_name]): (Optional) all generated reflection binaries. + + + This rule creates a filegroup(name) with all generated source files, and + optionally a Fileset([reflection_name]) with all generated reflection + binaries. """ include_paths_cmd = ["-I %s" % (s) for s in include_paths] @@ -145,7 +151,8 @@ def flatbuffer_cc_library( By default, use the value of the visibility parameter above. gen_reflections: Optional, if true this will generate the flatbuffer reflection binaries for the schemas. - Outs: + + This produces: filegroup([name]_srcs): all generated .h files. filegroup(srcs_filegroup_name if specified, or [name]_includes if not): Other flatbuffer_cc_library's can pass this in for their `includes`