blob: fd0a445aed3862c9015a5c2e41cfa7eaac58eea9 [file] [log] [blame]
Han-Wen Nienhuysd08b27f2015-02-25 16:45:20 +01001package(default_visibility = ["//visibility:public"])
2
Han-Wen Nienhuysd08b27f2015-02-25 16:45:20 +01003cc_library(
4 name = "malloc",
Han-Wen Nienhuysd08b27f2015-02-25 16:45:20 +01005)
6
7cc_library(
8 name = "stl",
Han-Wen Nienhuysd08b27f2015-02-25 16:45:20 +01009)
10
11filegroup(
12 name = "empty",
13 srcs = [],
14)
15
Han-Wen Nienhuys310c6312015-04-08 15:35:26 +000016# 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.
Han-Wen Nienhuysd08b27f2015-02-25 16:45:20 +010026filegroup(
27 name = "toolchain",
28 srcs = [
Lukacs Berkia93c63b2015-07-29 15:32:19 +000029 ":cc-compiler-armeabi-v7a",
Han-Wen Nienhuysd08b27f2015-02-25 16:45:20 +010030 ":cc-compiler-darwin",
Doug Rabson709bc612015-08-25 14:12:00 +000031 ":cc-compiler-freebsd",
Kristina Chodorow3671ff62015-02-19 18:28:40 +000032 ":cc-compiler-local",
Dmitry Lomov458ccd02016-02-02 20:30:32 +000033 ":cc-compiler-x64_windows",
Han-Wen Nienhuysd08b27f2015-02-25 16:45:20 +010034 ":empty",
35 ],
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",
Han-Wen Nienhuysfc911c62015-10-12 13:10:10 +000049 supports_param_files = 1,
Han-Wen Nienhuysd08b27f2015-02-25 16:45:20 +010050)
51
52cc_toolchain(
Lukacs Berkia93c63b2015-07-29 15:32:19 +000053 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",
Han-Wen Nienhuysfc911c62015-10-12 13:10:10 +000063 supports_param_files = 1,
Lukacs Berkia93c63b2015-07-29 15:32:19 +000064)
65
66cc_toolchain(
Han-Wen Nienhuysd08b27f2015-02-25 16:45:20 +010067 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",
Han-Wen Nienhuysfc911c62015-10-12 13:10:10 +000077 supports_param_files = 1,
Han-Wen Nienhuysd08b27f2015-02-25 16:45:20 +010078)
79
80cc_toolchain(
81 name = "cc-compiler-darwin",
82 all_files = ":empty",
83 compiler_files = ":empty",
84 cpu = "darwin",
85 dwp_files = ":empty",
86 dynamic_runtime_libs = [":empty"],
87 linker_files = ":empty",
88 objcopy_files = ":empty",
89 static_runtime_libs = [":empty"],
90 strip_files = ":empty",
91 supports_param_files = 0,
92)
Damien Martin-Guillerez5cbd5a42015-03-24 21:55:19 +000093
Doug Rabson709bc612015-08-25 14:12:00 +000094cc_toolchain(
95 name = "cc-compiler-freebsd",
96 all_files = ":empty",
97 compiler_files = ":empty",
98 cpu = "local",
99 dwp_files = ":empty",
100 dynamic_runtime_libs = [":empty"],
101 linker_files = ":empty",
102 objcopy_files = ":empty",
103 static_runtime_libs = [":empty"],
104 strip_files = ":empty",
105 supports_param_files = 0,
106)
107
Dmitry Lomov458ccd02016-02-02 20:30:32 +0000108cc_toolchain(
109 name = "cc-compiler-x64_windows",
110 all_files = ":empty",
111 compiler_files = ":empty",
112 cpu = "local",
113 dwp_files = ":empty",
114 dynamic_runtime_libs = [":empty"],
115 linker_files = ":empty",
116 objcopy_files = ":empty",
117 static_runtime_libs = [":empty"],
118 strip_files = ":empty",
119 supports_param_files = 0,
120)
121
Damien Martin-Guillerez5cbd5a42015-03-24 21:55:19 +0000122filegroup(
123 name = "srcs",
124 srcs = glob(["**"]),
125)