From ca407f0e80a67ad2c1aa3469fad3c031f3c0c979 Mon Sep 17 00:00:00 2001 From: Damien Martin-Guillerez Date: Mon, 4 Jul 2016 13:07:08 +0000 Subject: Adds missing dependencies to //:srcs -- MOS_MIGRATED_REVID=126571069 --- compile.sh | 4 ++++ examples/BUILD | 1 + examples/windows/dll/BUILD | 6 ++++++ 3 files changed, 11 insertions(+) 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 = [ -- cgit v1.2.3