blob: 9196d442bf911965bde0353b7ef839f98030d560 [file] [log] [blame]
Brian Silverman660d6092015-11-26 18:41:59 -05001package(default_visibility = ['//visibility:public'])
Brian Silverman12b3fc52015-10-11 19:38:33 -04002
3cc_library(
Brian Silverman660d6092015-11-26 18:41:59 -05004 name = 'malloc',
5 deps = [
6 '//third_party/gperftools:tcmalloc',
7 ],
Brian Silverman12b3fc52015-10-11 19:38:33 -04008)
9
10cc_library(
Brian Silverman660d6092015-11-26 18:41:59 -050011 name = 'stl',
Brian Silverman12b3fc52015-10-11 19:38:33 -040012)
13
14filegroup(
Brian Silverman660d6092015-11-26 18:41:59 -050015 name = 'empty',
16 srcs = [],
Brian Silverman12b3fc52015-10-11 19:38:33 -040017)
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 Silverman660d6092015-11-26 18:41:59 -050021# 'cc-compiler-${CPU}' in this BUILD file, where CPU is the target CPU
Brian Silverman12b3fc52015-10-11 19:38:33 -040022# 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.
29filegroup(
Brian Silverman660d6092015-11-26 18:41:59 -050030 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 Silverman12b3fc52015-10-11 19:38:33 -040039)
40
41cc_toolchain(
Brian Silverman660d6092015-11-26 18:41:59 -050042 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 Silverman12b3fc52015-10-11 19:38:33 -040053)
54
55cc_toolchain(
Brian Silverman660d6092015-11-26 18:41:59 -050056 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 Silverman12b3fc52015-10-11 19:38:33 -040067)
68
69cc_toolchain(
Brian Silverman660d6092015-11-26 18:41:59 -050070 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 Silverman12b3fc52015-10-11 19:38:33 -040081)
Austin Schuh23da18b2015-10-11 20:52:49 -070082
Austin Schuh55139fe2015-10-14 23:55:24 -070083filegroup(
84 name = 'roborio-compiler-files',
85 srcs = [
86 '//tools/cpp/arm-frc-linux-gnueabi:tool-wrappers',
Brian Silvermanb2215d02015-11-23 19:10:15 -050087 '//tools/cpp/arm-frc-linux-gnueabi:as',
Austin Schuh55139fe2015-10-14 23:55:24 -070088 '@arm-frc-linux-gnueabi-repo//:compiler_pieces',
89 ],
90)
91
92filegroup(
93 name = 'roborio_linker_files',
94 srcs = [
95 '//tools/cpp/arm-frc-linux-gnueabi:ld',
96 '//tools/cpp/arm-frc-linux-gnueabi:ar',
Brian Silvermanb2215d02015-11-23 19:10:15 -050097 '//tools/cpp/arm-frc-linux-gnueabi:gcc',
98 '@arm-frc-linux-gnueabi-repo//:compiler_pieces',
Austin Schuh55139fe2015-10-14 23:55:24 -070099 ],
100)
101filegroup(
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 Schuh23da18b2015-10-11 20:52:49 -0700109cc_toolchain(
Brian Silverman660d6092015-11-26 18:41:59 -0500110 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 Schuh23da18b2015-10-11 20:52:49 -0700121)