blob: b7fbd7031421d5d36ccfa35659bffced344debe8 [file] [log] [blame]
Damien Martin-Guillerezbe1b1152016-03-31 13:41:48 +00001package(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.
26
27# Hardcoded toolchain, legacy behaviour.
28filegroup(
29 name = "toolchain",
30 srcs = [
31 ":cc-compiler-armeabi-v7a",
32 ":cc-compiler-freebsd",
33 ":cc-compiler-x64_windows",
Yun Pengfdcb3b22016-04-19 20:03:10 +000034 ":cc-compiler-x64_windows_msvc",
Damien Martin-Guillerezbe1b1152016-03-31 13:41:48 +000035 ":empty",
36 ],
37)
38
39cc_toolchain(
40 name = "cc-compiler-armeabi-v7a",
41 all_files = ":empty",
42 compiler_files = ":empty",
43 cpu = "local",
44 dwp_files = ":empty",
45 dynamic_runtime_libs = [":empty"],
46 linker_files = ":empty",
47 objcopy_files = ":empty",
48 static_runtime_libs = [":empty"],
49 strip_files = ":empty",
50 supports_param_files = 1,
51)
52
53cc_toolchain(
54 name = "cc-compiler-freebsd",
55 all_files = ":empty",
56 compiler_files = ":empty",
57 cpu = "local",
58 dwp_files = ":empty",
59 dynamic_runtime_libs = [":empty"],
60 linker_files = ":empty",
61 objcopy_files = ":empty",
62 static_runtime_libs = [":empty"],
63 strip_files = ":empty",
64 supports_param_files = 0,
65)
66
67cc_toolchain(
68 name = "cc-compiler-x64_windows",
69 all_files = ":empty",
70 compiler_files = ":empty",
71 cpu = "local",
72 dwp_files = ":empty",
73 dynamic_runtime_libs = [":empty"],
74 linker_files = ":empty",
75 objcopy_files = ":empty",
76 static_runtime_libs = [":empty"],
77 strip_files = ":empty",
Lukacs Berkibb19fd62016-04-08 11:08:14 +000078 supports_param_files = 1,
Damien Martin-Guillerezbe1b1152016-03-31 13:41:48 +000079)
Yun Pengfdcb3b22016-04-19 20:03:10 +000080
81cc_toolchain(
82 name = "cc-compiler-x64_windows_msvc",
83 all_files = ":every-file-x64_windows",
84 compiler_files = ":compile-x64_windows",
85 cpu = "x64_windows",
86 dwp_files = ":empty",
87 dynamic_runtime_libs = [":empty"],
88 linker_files = ":empty",
89 objcopy_files = ":empty",
90 static_runtime_libs = [":empty"],
91 strip_files = ":empty",
Yun Peng57be3442016-04-25 14:08:41 +000092 supports_param_files = 1,
Yun Pengfdcb3b22016-04-19 20:03:10 +000093)
94
95filegroup(
96 name = "every-file-x64_windows",
97 srcs = [
98 ":compile-x64_windows",
99 ],
100)
101
102filegroup(
103 name = "compile-x64_windows",
104 srcs = glob([
105 "wrapper/bin/msvc_*",
106 "wrapper/bin/pydir/msvc*",
107 ]),
108)