aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rwxr-xr-xcompile.sh4
-rw-r--r--examples/BUILD1
-rw-r--r--examples/windows/dll/BUILD6
3 files changed, 11 insertions, 0 deletions
diff --git a/compile.sh b/compile.sh
index eceefa5c38..4daeb3ae54 100755
--- a/compile.sh
+++ b/compile.sh
@@ -142,11 +142,15 @@ if [ $DO_SRCS_TEST ]; then
| sort -u >"${OUTPUT_DIR}/srcs-query"
log "Finding all files"
+ # SRCS_EXCLUDES can be overriden to adds some more exceptions for the find
+ # commands (for CI systems).
+ SRCS_EXCLUDES=${SRCS_EXCLUDES-XXXXXXXXXXXXXX1268778dfsdf4}
# See file BUILD for the list of grep -v exceptions.
# tools/defaults package is hidden by Bazel so cannot be put in the srcs.
find . -type f | sed 's|./||' \
| grep -v '^bazel-' | grep -v '^WORKSPACE.user.bzl' \
| grep -v '^\.' | grep -v '^out/' | grep -v '^output/' \
+ | grep -Ev "${SRCS_EXCLUDES}" \
| grep -v '^tools/defaults/BUILD' \
| sort -u >"${OUTPUT_DIR}/srcs-find"
diff --git a/examples/BUILD b/examples/BUILD
index b2ec2848e8..bf4452b175 100644
--- a/examples/BUILD
+++ b/examples/BUILD
@@ -14,5 +14,6 @@ filegroup(
"//examples/py_native:srcs",
"//examples/shell:srcs",
"//examples/swift:srcs",
+ "//examples/windows/dll:srcs",
],
)
diff --git a/examples/windows/dll/BUILD b/examples/windows/dll/BUILD
index 2b7e956fc5..17ed3c1d23 100644
--- a/examples/windows/dll/BUILD
+++ b/examples/windows/dll/BUILD
@@ -1,3 +1,9 @@
+filegroup(
+ name = "srcs",
+ srcs = glob(["**"]),
+ visibility = ["//examples:__pkg__"],
+)
+
cc_binary(
name = "hellolib.dll",
srcs = [