1 filegroup( 2 name = "protoc", 3 srcs = select({ 4 ":darwin": ["repository/com/google/protobuf/protoc/3.0.0-beta-2/protoc-3.0.0-beta-2-osx-x86_64.exe"], 5 ":windows": ["repository/com/google/protobuf/protoc/3.0.0-beta-2/protoc-3.0.0-beta-2-windows-x86_64.exe"], 6 "//conditions:default": ["repository/com/google/protobuf/protoc/3.0.0-beta-2/protoc-3.0.0-beta-2-linux-x86_64.exe"], 7 }), 8 visibility = ["//visibility:public"], 9 ) 10 11 filegroup( 12 name = "grpc-plugin", 13 srcs = select({ 14 ":darwin": ["repository/io/grpc/protoc-gen-grpc-java/0.13.2/protoc-gen-grpc-java-0.13.2-osx-x86_64.exe"], 15 ":windows": ["repository/io/grpc/protoc-gen-grpc-java/0.13.2/protoc-gen-grpc-java-0.13.2-windwos-x86_64.exe"], 16 "//conditions:default": ["repository/io/grpc/protoc-gen-grpc-java/0.13.2/protoc-gen-grpc-java-0.13.2-linux-x86_64.exe"], 17 }), 18 visibility = ["//visibility:public"], 19 ) 20 21 config_setting( 22 name = "darwin", 23 values = {"host_cpu": "darwin"}, 24 visibility = ["//visibility:public"], 25 ) 26 27 config_setting( 28 name = "windows", 29 values = {"host_cpu": "x64_windows"}, 30 visibility = ["//visibility:public"], 31 ) 32