1*7594170eSAndroid Build Coastguard Worker# This filegroup is necessary because Bazel requires that every file in the .d 2*7594170eSAndroid Build Coastguard Worker# file of a compilation action is in a subdirectory of one of the transitive 3*7594170eSAndroid Build Coastguard Worker# dependencies of the rule being compiled. 4*7594170eSAndroid Build Coastguard Worker# 5*7594170eSAndroid Build Coastguard Worker# (this is not an intentional feature but accidentally results from the fact 6*7594170eSAndroid Build Coastguard Worker# that lines in the .d files must be turned into Artifact instances and thus 7*7594170eSAndroid Build Coastguard Worker# need a source root. See ArtifactFactory.findSourceRoot() for the pertinent 8*7594170eSAndroid Build Coastguard Worker# logic) 9*7594170eSAndroid Build Coastguard Worker# 10*7594170eSAndroid Build Coastguard Worker# The easiest way to ensure this is to add this filegroup to one of the 11*7594170eSAndroid Build Coastguard Worker# dependencies of the cc_toolchain. Then the root directory of the repository 12*7594170eSAndroid Build Coastguard Worker# becomes part of said transitive dependencies and thus every file is in a 13*7594170eSAndroid Build Coastguard Worker# subdirectory of it. 14*7594170eSAndroid Build Coastguard Workerfilegroup( 15*7594170eSAndroid Build Coastguard Worker name = "empty", 16*7594170eSAndroid Build Coastguard Worker visibility = ["//visibility:public"], 17*7594170eSAndroid Build Coastguard Worker) 18