blob: 8b0927fa09bb160d82ad0717228c00e1283ec610 [file] [log] [blame]
Brian Silverman12b3fc52015-10-11 19:38:33 -04001package(default_visibility = ["//visibility:public"])
2
3cc_library(
4 name = "malloc",
5)
6
7cc_library(
8 name = "stl",
9)
10
11filegroup(
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.
26filegroup(
27 name = "toolchain",
28 srcs = [
29 ":cc-compiler-armeabi-v7a",
30 ":cc-compiler-local",
31 ":cc-compiler-k8",
Austin Schuh23da18b2015-10-11 20:52:49 -070032 ":cc-compiler-roborio",
Austin Schuh55139fe2015-10-14 23:55:24 -070033 '@arm-frc-linux-gnueabi-repo//:compiler_components',
34 ':roborio-compiler-files',
Brian Silverman12b3fc52015-10-11 19:38:33 -040035 ],
36)
37
38cc_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",
Brian Silverman281bf302015-10-31 18:33:21 -040049 supports_param_files = 1,
Brian Silverman12b3fc52015-10-11 19:38:33 -040050)
51
52cc_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",
Brian Silverman281bf302015-10-31 18:33:21 -040063 supports_param_files = 1,
Brian Silverman12b3fc52015-10-11 19:38:33 -040064)
65
66cc_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",
Brian Silverman281bf302015-10-31 18:33:21 -040077 supports_param_files = 1,
Brian Silverman12b3fc52015-10-11 19:38:33 -040078)
Austin Schuh23da18b2015-10-11 20:52:49 -070079
Austin Schuh55139fe2015-10-14 23:55:24 -070080filegroup(
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
88filegroup(
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)
95filegroup(
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 Schuh23da18b2015-10-11 20:52:49 -0700103cc_toolchain(
104 name = "cc-compiler-roborio",
Austin Schuh55139fe2015-10-14 23:55:24 -0700105 all_files = ":roborio-compiler-files",
106 compiler_files = ':roborio_compiler_files',
107 cpu = "roborio",
108 dwp_files = ':empty',
Austin Schuh23da18b2015-10-11 20:52:49 -0700109 dynamic_runtime_libs = [":empty"],
Austin Schuh55139fe2015-10-14 23:55:24 -0700110 linker_files = ":roborio_linker_files",
111 objcopy_files = '//tools/cpp/arm-frc-linux-gnueabi:objcopy',
Austin Schuh23da18b2015-10-11 20:52:49 -0700112 static_runtime_libs = [":empty"],
Austin Schuh55139fe2015-10-14 23:55:24 -0700113 strip_files = '//tools/cpp/arm-frc-linux-gnueabi:strip',
Brian Silverman281bf302015-10-31 18:33:21 -0400114 supports_param_files = 1,
Austin Schuh23da18b2015-10-11 20:52:49 -0700115)