Brian Silverman | 660d609 | 2015-11-26 18:41:59 -0500 | [diff] [blame^] | 1 | package(default_visibility = ['//visibility:public']) |
Brian Silverman | 12b3fc5 | 2015-10-11 19:38:33 -0400 | [diff] [blame] | 2 | |
| 3 | cc_library( |
Brian Silverman | 660d609 | 2015-11-26 18:41:59 -0500 | [diff] [blame^] | 4 | name = 'malloc', |
| 5 | deps = [ |
| 6 | '//third_party/gperftools:tcmalloc', |
| 7 | ], |
Brian Silverman | 12b3fc5 | 2015-10-11 19:38:33 -0400 | [diff] [blame] | 8 | ) |
| 9 | |
| 10 | cc_library( |
Brian Silverman | 660d609 | 2015-11-26 18:41:59 -0500 | [diff] [blame^] | 11 | name = 'stl', |
Brian Silverman | 12b3fc5 | 2015-10-11 19:38:33 -0400 | [diff] [blame] | 12 | ) |
| 13 | |
| 14 | filegroup( |
Brian Silverman | 660d609 | 2015-11-26 18:41:59 -0500 | [diff] [blame^] | 15 | name = 'empty', |
| 16 | srcs = [], |
Brian Silverman | 12b3fc5 | 2015-10-11 19:38:33 -0400 | [diff] [blame] | 17 | ) |
| 18 | |
| 19 | # This is the entry point for --crosstool_top. Toolchains are found |
| 20 | # by lopping off the name of --crosstool_top and searching for |
Brian Silverman | 660d609 | 2015-11-26 18:41:59 -0500 | [diff] [blame^] | 21 | # 'cc-compiler-${CPU}' in this BUILD file, where CPU is the target CPU |
Brian Silverman | 12b3fc5 | 2015-10-11 19:38:33 -0400 | [diff] [blame] | 22 | # specified in --cpu. |
| 23 | # |
| 24 | # This file group should include |
| 25 | # * all cc_toolchain targets supported |
| 26 | # * all file groups that said cc_toolchain might refer to, |
| 27 | # including the default_grte_top setting in the CROSSTOOL |
| 28 | # protobuf. |
| 29 | filegroup( |
Brian Silverman | 660d609 | 2015-11-26 18:41:59 -0500 | [diff] [blame^] | 30 | name = 'toolchain', |
| 31 | srcs = [ |
| 32 | ':cc-compiler-armeabi-v7a', |
| 33 | ':cc-compiler-local', |
| 34 | ':cc-compiler-k8', |
| 35 | ':cc-compiler-roborio', |
| 36 | '@arm-frc-linux-gnueabi-repo//:compiler_components', |
| 37 | ':roborio-compiler-files', |
| 38 | ], |
Brian Silverman | 12b3fc5 | 2015-10-11 19:38:33 -0400 | [diff] [blame] | 39 | ) |
| 40 | |
| 41 | cc_toolchain( |
Brian Silverman | 660d609 | 2015-11-26 18:41:59 -0500 | [diff] [blame^] | 42 | name = 'cc-compiler-local', |
| 43 | all_files = ':empty', |
| 44 | compiler_files = ':empty', |
| 45 | cpu = 'local', |
| 46 | dwp_files = ':empty', |
| 47 | dynamic_runtime_libs = [':empty'], |
| 48 | linker_files = ':empty', |
| 49 | objcopy_files = ':empty', |
| 50 | static_runtime_libs = [':empty'], |
| 51 | strip_files = ':empty', |
| 52 | supports_param_files = 1, |
Brian Silverman | 12b3fc5 | 2015-10-11 19:38:33 -0400 | [diff] [blame] | 53 | ) |
| 54 | |
| 55 | cc_toolchain( |
Brian Silverman | 660d609 | 2015-11-26 18:41:59 -0500 | [diff] [blame^] | 56 | name = 'cc-compiler-armeabi-v7a', |
| 57 | all_files = ':empty', |
| 58 | compiler_files = ':empty', |
| 59 | cpu = 'local', |
| 60 | dwp_files = ':empty', |
| 61 | dynamic_runtime_libs = [':empty'], |
| 62 | linker_files = ':empty', |
| 63 | objcopy_files = ':empty', |
| 64 | static_runtime_libs = [':empty'], |
| 65 | strip_files = ':empty', |
| 66 | supports_param_files = 1, |
Brian Silverman | 12b3fc5 | 2015-10-11 19:38:33 -0400 | [diff] [blame] | 67 | ) |
| 68 | |
| 69 | cc_toolchain( |
Brian Silverman | 660d609 | 2015-11-26 18:41:59 -0500 | [diff] [blame^] | 70 | name = 'cc-compiler-k8', |
| 71 | all_files = ':empty', |
| 72 | compiler_files = ':empty', |
| 73 | cpu = 'local', |
| 74 | dwp_files = ':empty', |
| 75 | dynamic_runtime_libs = [':empty'], |
| 76 | linker_files = ':empty', |
| 77 | objcopy_files = ':empty', |
| 78 | static_runtime_libs = [':empty'], |
| 79 | strip_files = ':empty', |
| 80 | supports_param_files = 1, |
Brian Silverman | 12b3fc5 | 2015-10-11 19:38:33 -0400 | [diff] [blame] | 81 | ) |
Austin Schuh | 23da18b | 2015-10-11 20:52:49 -0700 | [diff] [blame] | 82 | |
Austin Schuh | 55139fe | 2015-10-14 23:55:24 -0700 | [diff] [blame] | 83 | filegroup( |
| 84 | name = 'roborio-compiler-files', |
| 85 | srcs = [ |
| 86 | '//tools/cpp/arm-frc-linux-gnueabi:tool-wrappers', |
Brian Silverman | b2215d0 | 2015-11-23 19:10:15 -0500 | [diff] [blame] | 87 | '//tools/cpp/arm-frc-linux-gnueabi:as', |
Austin Schuh | 55139fe | 2015-10-14 23:55:24 -0700 | [diff] [blame] | 88 | '@arm-frc-linux-gnueabi-repo//:compiler_pieces', |
| 89 | ], |
| 90 | ) |
| 91 | |
| 92 | filegroup( |
| 93 | name = 'roborio_linker_files', |
| 94 | srcs = [ |
| 95 | '//tools/cpp/arm-frc-linux-gnueabi:ld', |
| 96 | '//tools/cpp/arm-frc-linux-gnueabi:ar', |
Brian Silverman | b2215d0 | 2015-11-23 19:10:15 -0500 | [diff] [blame] | 97 | '//tools/cpp/arm-frc-linux-gnueabi:gcc', |
| 98 | '@arm-frc-linux-gnueabi-repo//:compiler_pieces', |
Austin Schuh | 55139fe | 2015-10-14 23:55:24 -0700 | [diff] [blame] | 99 | ], |
| 100 | ) |
| 101 | filegroup( |
| 102 | name = 'roborio_compiler_files', |
| 103 | srcs = [ |
| 104 | '//tools/cpp/arm-frc-linux-gnueabi:gcc', |
| 105 | '//tools/cpp/arm-frc-linux-gnueabi:ld', |
| 106 | ], |
| 107 | ) |
| 108 | |
Austin Schuh | 23da18b | 2015-10-11 20:52:49 -0700 | [diff] [blame] | 109 | cc_toolchain( |
Brian Silverman | 660d609 | 2015-11-26 18:41:59 -0500 | [diff] [blame^] | 110 | name = 'cc-compiler-roborio', |
| 111 | all_files = ':roborio-compiler-files', |
| 112 | compiler_files = ':roborio_compiler_files', |
| 113 | cpu = 'roborio', |
| 114 | dwp_files = ':empty', |
| 115 | dynamic_runtime_libs = [':empty'], |
| 116 | linker_files = ':roborio_linker_files', |
| 117 | objcopy_files = '//tools/cpp/arm-frc-linux-gnueabi:objcopy', |
| 118 | static_runtime_libs = [':empty'], |
| 119 | strip_files = '//tools/cpp/arm-frc-linux-gnueabi:strip', |
| 120 | supports_param_files = 1, |
Austin Schuh | 23da18b | 2015-10-11 20:52:49 -0700 | [diff] [blame] | 121 | ) |