github.com/johnnyeven/libtools@v0.0.0-20191126065708-61829c1adf46/third_party/toolchains/preconfig/win_1803/bazel_026/BUILD (about) 1 # 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 Windows. 16 17 package(default_visibility = ["//visibility:public"]) 18 19 load(":cc_toolchain_config.bzl", "cc_toolchain_config") 20 21 cc_library( 22 name = "malloc", 23 ) 24 25 filegroup( 26 name = "empty", 27 srcs = [], 28 ) 29 30 # Hardcoded toolchain, legacy behaviour. 31 cc_toolchain_suite( 32 name = "toolchain", 33 toolchains = { 34 "armeabi-v7a|compiler": ":cc-compiler-armeabi-v7a", 35 "x64_windows|msvc-cl": ":cc-compiler-x64_windows", 36 "x64_windows|msys-gcc": ":cc-compiler-x64_windows_msys", 37 "x64_windows|mingw-gcc": ":cc-compiler-x64_windows_mingw", 38 "x64_windows_msys": ":cc-compiler-x64_windows_msys", 39 "x64_windows": ":cc-compiler-x64_windows", 40 "armeabi-v7a": ":cc-compiler-armeabi-v7a", 41 }, 42 ) 43 44 cc_toolchain( 45 name = "cc-compiler-x64_windows_msys", 46 all_files = ":empty", 47 ar_files = ":empty", 48 as_files = ":empty", 49 compiler_files = ":empty", 50 dwp_files = ":empty", 51 linker_files = ":empty", 52 objcopy_files = ":empty", 53 strip_files = ":empty", 54 supports_param_files = 1, 55 toolchain_config = ":msys_x64", 56 toolchain_identifier = "msys_x64", 57 ) 58 59 cc_toolchain_config( 60 name = "msys_x64", 61 compiler = "msys-gcc", 62 cpu = "x64_windows", 63 ) 64 65 toolchain( 66 name = "cc-toolchain-x64_windows_msys", 67 exec_compatible_with = [ 68 "@bazel_tools//platforms:x86_64", 69 "@bazel_tools//platforms:windows", 70 "@bazel_tools//tools/cpp:msys", 71 ], 72 target_compatible_with = [ 73 "@bazel_tools//platforms:x86_64", 74 "@bazel_tools//platforms:windows", 75 ], 76 toolchain = ":cc-compiler-x64_windows_msys", 77 toolchain_type = "@bazel_tools//tools/cpp:toolchain_type", 78 ) 79 80 cc_toolchain( 81 name = "cc-compiler-x64_windows_mingw", 82 all_files = ":empty", 83 ar_files = ":empty", 84 as_files = ":empty", 85 compiler_files = ":empty", 86 dwp_files = ":empty", 87 linker_files = ":empty", 88 objcopy_files = ":empty", 89 strip_files = ":empty", 90 supports_param_files = 0, 91 toolchain_config = ":msys_x64_mingw", 92 toolchain_identifier = "msys_x64_mingw", 93 ) 94 95 cc_toolchain_config( 96 name = "msys_x64_mingw", 97 compiler = "mingw-gcc", 98 cpu = "x64_windows", 99 ) 100 101 toolchain( 102 name = "cc-toolchain-x64_windows_mingw", 103 exec_compatible_with = [ 104 "@bazel_tools//platforms:x86_64", 105 "@bazel_tools//platforms:windows", 106 "@bazel_tools//tools/cpp:mingw", 107 ], 108 target_compatible_with = [ 109 "@bazel_tools//platforms:x86_64", 110 "@bazel_tools//platforms:windows", 111 ], 112 toolchain = ":cc-compiler-x64_windows_mingw", 113 toolchain_type = "@bazel_tools//tools/cpp:toolchain_type", 114 ) 115 116 cc_toolchain( 117 name = "cc-compiler-x64_windows", 118 all_files = ":empty", 119 ar_files = ":empty", 120 as_files = ":empty", 121 compiler_files = ":empty", 122 dwp_files = ":empty", 123 linker_files = ":empty", 124 objcopy_files = ":empty", 125 strip_files = ":empty", 126 supports_param_files = 1, 127 toolchain_config = ":msvc_x64", 128 toolchain_identifier = "msvc_x64", 129 ) 130 131 cc_toolchain_config( 132 name = "msvc_x64", 133 compiler = "msvc-cl", 134 cpu = "x64_windows", 135 ) 136 137 toolchain( 138 name = "cc-toolchain-x64_windows", 139 exec_compatible_with = [ 140 "@bazel_tools//platforms:x86_64", 141 "@bazel_tools//platforms:windows", 142 ], 143 target_compatible_with = [ 144 "@bazel_tools//platforms:x86_64", 145 "@bazel_tools//platforms:windows", 146 ], 147 toolchain = ":cc-compiler-x64_windows", 148 toolchain_type = "@bazel_tools//tools/cpp:toolchain_type", 149 ) 150 151 cc_toolchain( 152 name = "cc-compiler-armeabi-v7a", 153 all_files = ":empty", 154 ar_files = ":empty", 155 as_files = ":empty", 156 compiler_files = ":empty", 157 dwp_files = ":empty", 158 linker_files = ":empty", 159 objcopy_files = ":empty", 160 strip_files = ":empty", 161 supports_param_files = 1, 162 toolchain_config = ":stub_armeabi-v7a", 163 toolchain_identifier = "stub_armeabi-v7a", 164 ) 165 166 cc_toolchain_config( 167 name = "stub_armeabi-v7a", 168 compiler = "compiler", 169 cpu = "armeabi-v7a", 170 ) 171 172 toolchain( 173 name = "cc-toolchain-armeabi-v7a", 174 exec_compatible_with = [ 175 ], 176 target_compatible_with = [ 177 "@bazel_tools//platforms:arm", 178 "@bazel_tools//platforms:android", 179 ], 180 toolchain = ":cc-compiler-armeabi-v7a", 181 toolchain_type = "@bazel_tools//tools/cpp:toolchain_type", 182 ) 183 184 filegroup( 185 name = "link_dynamic_library", 186 srcs = ["link_dynamic_library.sh"], 187 )