Brian Silverman | 12b3fc5 | 2015-10-11 19:38:33 -0400 | [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 | filegroup( |
| 27 | name = "toolchain", |
| 28 | srcs = [ |
| 29 | ":cc-compiler-armeabi-v7a", |
| 30 | ":cc-compiler-local", |
| 31 | ":cc-compiler-k8", |
Austin Schuh | 23da18b | 2015-10-11 20:52:49 -0700 | [diff] [blame] | 32 | ":cc-compiler-roborio", |
Austin Schuh | 55139fe | 2015-10-14 23:55:24 -0700 | [diff] [blame^] | 33 | '@arm-frc-linux-gnueabi-repo//:compiler_components', |
| 34 | ':roborio-compiler-files', |
Brian Silverman | 12b3fc5 | 2015-10-11 19:38:33 -0400 | [diff] [blame] | 35 | ], |
| 36 | ) |
| 37 | |
| 38 | cc_toolchain( |
| 39 | name = "cc-compiler-local", |
| 40 | all_files = ":empty", |
| 41 | compiler_files = ":empty", |
| 42 | cpu = "local", |
| 43 | dwp_files = ":empty", |
| 44 | dynamic_runtime_libs = [":empty"], |
| 45 | linker_files = ":empty", |
| 46 | objcopy_files = ":empty", |
| 47 | static_runtime_libs = [":empty"], |
| 48 | strip_files = ":empty", |
| 49 | supports_param_files = 0, |
| 50 | ) |
| 51 | |
| 52 | cc_toolchain( |
| 53 | name = "cc-compiler-armeabi-v7a", |
| 54 | all_files = ":empty", |
| 55 | compiler_files = ":empty", |
| 56 | cpu = "local", |
| 57 | dwp_files = ":empty", |
| 58 | dynamic_runtime_libs = [":empty"], |
| 59 | linker_files = ":empty", |
| 60 | objcopy_files = ":empty", |
| 61 | static_runtime_libs = [":empty"], |
| 62 | strip_files = ":empty", |
| 63 | supports_param_files = 0, |
| 64 | ) |
| 65 | |
| 66 | cc_toolchain( |
| 67 | name = "cc-compiler-k8", |
| 68 | all_files = ":empty", |
| 69 | compiler_files = ":empty", |
| 70 | cpu = "local", |
| 71 | dwp_files = ":empty", |
| 72 | dynamic_runtime_libs = [":empty"], |
| 73 | linker_files = ":empty", |
| 74 | objcopy_files = ":empty", |
| 75 | static_runtime_libs = [":empty"], |
| 76 | strip_files = ":empty", |
| 77 | supports_param_files = 0, |
| 78 | ) |
Austin Schuh | 23da18b | 2015-10-11 20:52:49 -0700 | [diff] [blame] | 79 | |
Austin Schuh | 55139fe | 2015-10-14 23:55:24 -0700 | [diff] [blame^] | 80 | filegroup( |
| 81 | name = 'roborio-compiler-files', |
| 82 | srcs = [ |
| 83 | '//tools/cpp/arm-frc-linux-gnueabi:tool-wrappers', |
| 84 | '@arm-frc-linux-gnueabi-repo//:compiler_pieces', |
| 85 | ], |
| 86 | ) |
| 87 | |
| 88 | filegroup( |
| 89 | name = 'roborio_linker_files', |
| 90 | srcs = [ |
| 91 | '//tools/cpp/arm-frc-linux-gnueabi:ld', |
| 92 | '//tools/cpp/arm-frc-linux-gnueabi:ar', |
| 93 | ], |
| 94 | ) |
| 95 | filegroup( |
| 96 | name = 'roborio_compiler_files', |
| 97 | srcs = [ |
| 98 | '//tools/cpp/arm-frc-linux-gnueabi:gcc', |
| 99 | '//tools/cpp/arm-frc-linux-gnueabi:ld', |
| 100 | ], |
| 101 | ) |
| 102 | |
Austin Schuh | 23da18b | 2015-10-11 20:52:49 -0700 | [diff] [blame] | 103 | cc_toolchain( |
| 104 | name = "cc-compiler-roborio", |
Austin Schuh | 55139fe | 2015-10-14 23:55:24 -0700 | [diff] [blame^] | 105 | all_files = ":roborio-compiler-files", |
| 106 | compiler_files = ':roborio_compiler_files', |
| 107 | cpu = "roborio", |
| 108 | dwp_files = ':empty', |
Austin Schuh | 23da18b | 2015-10-11 20:52:49 -0700 | [diff] [blame] | 109 | dynamic_runtime_libs = [":empty"], |
Austin Schuh | 55139fe | 2015-10-14 23:55:24 -0700 | [diff] [blame^] | 110 | linker_files = ":roborio_linker_files", |
| 111 | objcopy_files = '//tools/cpp/arm-frc-linux-gnueabi:objcopy', |
Austin Schuh | 23da18b | 2015-10-11 20:52:49 -0700 | [diff] [blame] | 112 | static_runtime_libs = [":empty"], |
Austin Schuh | 55139fe | 2015-10-14 23:55:24 -0700 | [diff] [blame^] | 113 | strip_files = '//tools/cpp/arm-frc-linux-gnueabi:strip', |
Austin Schuh | 23da18b | 2015-10-11 20:52:49 -0700 | [diff] [blame] | 114 | supports_param_files = 0, |
| 115 | ) |