blob: b79e87147a8a07e14596d2ce61215db20f490c86 [file] [log] [blame]
jcaterf5c8c0b2018-03-27 07:22:35 -07001# Copyright 2018 The Bazel Authors. All rights reserved.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15# This becomes the BUILD file for @local_config_cc// under FreeBSD.
16
17package(default_visibility = ["//visibility:public"])
18
19cc_library(
20 name = "malloc",
21)
22
23cc_library(
24 name = "stl",
25)
26
27filegroup(
28 name = "empty",
29 srcs = [],
30)
31
32# Hardcoded toolchain, legacy behaviour.
33cc_toolchain_suite(
34 name = "toolchain",
35 toolchains = {
36 "armeabi-v7a|compiler": ":cc-compiler-armeabi-v7a",
37 "freebsd|compiler": ":cc-compiler-freebsd",
jcaterf5c8c0b2018-03-27 07:22:35 -070038 },
39)
40
41cc_toolchain(
42 name = "cc-compiler-freebsd",
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 = 0,
53)
54
55toolchain(
56 name = "cc-toolchain-freebsd",
57 exec_compatible_with = [
58 "@bazel_tools//platforms:x86_64",
59 "@bazel_tools//platforms:freebsd",
60 ],
61 target_compatible_with = [
62 "@bazel_tools//platforms:x86_64",
63 "@bazel_tools//platforms:freebsd",
64 ],
65 toolchain = ":cc-compiler-freebsd",
66 toolchain_type = "@bazel_tools//tools/cpp:toolchain_type",
67)
68
69cc_toolchain(
70 name = "cc-compiler-armeabi-v7a",
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 = 0,
81)
82
83toolchain(
84 name = "cc-toolchain-armeabi-v7a",
85 exec_compatible_with = [
86 "@bazel_tools//platforms:arm",
87 ],
88 target_compatible_with = [
89 "@bazel_tools//platforms:arm",
90 "@bazel_tools//platforms:android",
91 ],
92 toolchain = ":cc-compiler-armeabi-v7a",
93 toolchain_type = "@bazel_tools//tools/cpp:toolchain_type",
94)
95
jcaterf5c8c0b2018-03-27 07:22:35 -070096filegroup(
97 name = "link_dynamic_library",
98 srcs = ["link_dynamic_library.sh"],
99)