| package(default_visibility = ["//visibility:public"]) |
| srcs = glob(["**"] + ["**/*"]), |
| DARWIN_XCODE_LOCATOR_COMPILE_COMMAND = """ |
| /usr/bin/xcrun clang -fobjc-arc -framework CoreServices \ |
| -framework Foundation -o $@ $< |
| name = "xcode-locator-genrule", |
| ":darwin": ["xcode_locator.m"], |
| ":darwin_x86_64": ["xcode_locator.m"], |
| "//conditions:default": ["xcode_locator_stub.sh"], |
| outs = ["xcode-locator"], |
| ":darwin": DARWIN_XCODE_LOCATOR_COMPILE_COMMAND, |
| ":darwin_x86_64": DARWIN_XCODE_LOCATOR_COMPILE_COMMAND, |
| "//conditions:default": "cp $< $@", |
| # TODO(cparsons): Consolidate with config_settings under //src |
| values = {"cpu": "darwin"}, |
| visibility = ["//visibility:public"], |
| values = {"cpu": "darwin_x86_64"}, |
| visibility = ["//visibility:public"], |