Damien Martin-Guillerez | be1b115 | 2016-03-31 13:41:48 +0000 | [diff] [blame] | 1 | package(default_visibility = ["//visibility:public"]) |
| 2 | |
| 3 | cc_library( |
| 4 | name = "malloc", |
| 5 | ) |
| 6 | |
| 7 | cc_library( |
| 8 | name = "stl", |
| 9 | ) |
| 10 | |
| 11 | filegroup( |
| 12 | name = "empty", |
| 13 | srcs = [], |
| 14 | ) |
| 15 | |
| 16 | # This is the entry point for --crosstool_top. Toolchains are found |
| 17 | # by lopping off the name of --crosstool_top and searching for |
| 18 | # "cc-compiler-${CPU}" in this BUILD file, where CPU is the target CPU |
| 19 | # specified in --cpu. |
| 20 | # |
| 21 | # This file group should include |
| 22 | # * all cc_toolchain targets supported |
| 23 | # * all file groups that said cc_toolchain might refer to, |
| 24 | # including the default_grte_top setting in the CROSSTOOL |
| 25 | # protobuf. |
| 26 | |
| 27 | # Hardcoded toolchain, legacy behaviour. |
| 28 | filegroup( |
| 29 | name = "toolchain", |
| 30 | srcs = [ |
| 31 | ":cc-compiler-armeabi-v7a", |
| 32 | ":cc-compiler-freebsd", |
| 33 | ":cc-compiler-x64_windows", |
Yun Peng | fdcb3b2 | 2016-04-19 20:03:10 +0000 | [diff] [blame] | 34 | ":cc-compiler-x64_windows_msvc", |
Damien Martin-Guillerez | be1b115 | 2016-03-31 13:41:48 +0000 | [diff] [blame] | 35 | ":empty", |
| 36 | ], |
| 37 | ) |
| 38 | |
| 39 | cc_toolchain( |
| 40 | name = "cc-compiler-armeabi-v7a", |
| 41 | all_files = ":empty", |
| 42 | compiler_files = ":empty", |
| 43 | cpu = "local", |
| 44 | dwp_files = ":empty", |
| 45 | dynamic_runtime_libs = [":empty"], |
| 46 | linker_files = ":empty", |
| 47 | objcopy_files = ":empty", |
| 48 | static_runtime_libs = [":empty"], |
| 49 | strip_files = ":empty", |
| 50 | supports_param_files = 1, |
| 51 | ) |
| 52 | |
| 53 | cc_toolchain( |
| 54 | name = "cc-compiler-freebsd", |
| 55 | all_files = ":empty", |
| 56 | compiler_files = ":empty", |
| 57 | cpu = "local", |
| 58 | dwp_files = ":empty", |
| 59 | dynamic_runtime_libs = [":empty"], |
| 60 | linker_files = ":empty", |
| 61 | objcopy_files = ":empty", |
| 62 | static_runtime_libs = [":empty"], |
| 63 | strip_files = ":empty", |
| 64 | supports_param_files = 0, |
| 65 | ) |
| 66 | |
| 67 | cc_toolchain( |
| 68 | name = "cc-compiler-x64_windows", |
| 69 | all_files = ":empty", |
| 70 | compiler_files = ":empty", |
| 71 | cpu = "local", |
| 72 | dwp_files = ":empty", |
| 73 | dynamic_runtime_libs = [":empty"], |
| 74 | linker_files = ":empty", |
| 75 | objcopy_files = ":empty", |
| 76 | static_runtime_libs = [":empty"], |
| 77 | strip_files = ":empty", |
Lukacs Berki | bb19fd6 | 2016-04-08 11:08:14 +0000 | [diff] [blame] | 78 | supports_param_files = 1, |
Damien Martin-Guillerez | be1b115 | 2016-03-31 13:41:48 +0000 | [diff] [blame] | 79 | ) |
Yun Peng | fdcb3b2 | 2016-04-19 20:03:10 +0000 | [diff] [blame] | 80 | |
| 81 | cc_toolchain( |
| 82 | name = "cc-compiler-x64_windows_msvc", |
| 83 | all_files = ":every-file-x64_windows", |
| 84 | compiler_files = ":compile-x64_windows", |
| 85 | cpu = "x64_windows", |
| 86 | dwp_files = ":empty", |
| 87 | dynamic_runtime_libs = [":empty"], |
| 88 | linker_files = ":empty", |
| 89 | objcopy_files = ":empty", |
| 90 | static_runtime_libs = [":empty"], |
| 91 | strip_files = ":empty", |
Yun Peng | 57be344 | 2016-04-25 14:08:41 +0000 | [diff] [blame] | 92 | supports_param_files = 1, |
Yun Peng | fdcb3b2 | 2016-04-19 20:03:10 +0000 | [diff] [blame] | 93 | ) |
| 94 | |
| 95 | filegroup( |
| 96 | name = "every-file-x64_windows", |
| 97 | srcs = [ |
| 98 | ":compile-x64_windows", |
| 99 | ], |
| 100 | ) |
| 101 | |
| 102 | filegroup( |
| 103 | name = "compile-x64_windows", |
| 104 | srcs = glob([ |
| 105 | "wrapper/bin/msvc_*", |
| 106 | "wrapper/bin/pydir/msvc*", |
| 107 | ]), |
| 108 | ) |