| package(default_visibility = ["//visibility:public"]) |
| |
| cc_library( |
| name = "malloc", |
| ) |
| |
| cc_library( |
| name = "stl", |
| ) |
| |
| filegroup( |
| name = "empty", |
| srcs = [], |
| ) |
| |
| # Hardcoded toolchain, legacy behaviour. |
| cc_toolchain_suite( |
| name = "toolchain", |
| toolchains = { |
| "armeabi-v7a|compiler": ":cc-compiler-armeabi-v7a", |
| "freebsd|compiler": ":cc-compiler-freebsd", |
| "x64_windows|cl": ":cc-compiler-x64_windows", |
| "x64_windows_msvc|cl": ":cc-compiler-x64_windows", |
| "x64_windows_msys|windows_msys64": ":cc-compiler-x64_windows_msys", |
| "ios_x86_64|compiler": ":cc-compiler-ios_x86_64", |
| }, |
| ) |
| |
| cc_toolchain( |
| name = "cc-compiler-armeabi-v7a", |
| all_files = ":empty", |
| compiler_files = ":empty", |
| cpu = "local", |
| dwp_files = ":empty", |
| dynamic_runtime_libs = [":empty"], |
| linker_files = ":empty", |
| objcopy_files = ":empty", |
| static_runtime_libs = [":empty"], |
| strip_files = ":empty", |
| supports_param_files = 1, |
| ) |
| |
| cc_toolchain( |
| name = "cc-compiler-freebsd", |
| all_files = ":empty", |
| compiler_files = ":empty", |
| cpu = "local", |
| dwp_files = ":empty", |
| dynamic_runtime_libs = [":empty"], |
| linker_files = ":empty", |
| objcopy_files = ":empty", |
| static_runtime_libs = [":empty"], |
| strip_files = ":empty", |
| supports_param_files = 0, |
| ) |
| |
| cc_toolchain( |
| name = "cc-compiler-x64_windows_msys", |
| all_files = ":empty", |
| compiler_files = ":empty", |
| cpu = "local", |
| dwp_files = ":empty", |
| dynamic_runtime_libs = [":empty"], |
| linker_files = ":empty", |
| objcopy_files = ":empty", |
| static_runtime_libs = [":empty"], |
| strip_files = ":empty", |
| supports_param_files = 1, |
| ) |
| |
| cc_toolchain( |
| name = "cc-compiler-x64_windows", |
| all_files = ":every-file-x64_windows", |
| compiler_files = ":compile-x64_windows", |
| cpu = "x64_windows", |
| dwp_files = ":empty", |
| dynamic_runtime_libs = [":empty"], |
| linker_files = ":empty", |
| objcopy_files = ":empty", |
| static_runtime_libs = [":empty"], |
| strip_files = ":empty", |
| supports_param_files = 1, |
| ) |
| |
| cc_toolchain( |
| name = "cc-compiler-ios_x86_64", |
| all_files = ":empty", |
| compiler_files = ":empty", |
| cpu = "local", |
| dwp_files = ":empty", |
| dynamic_runtime_libs = [":empty"], |
| linker_files = ":empty", |
| objcopy_files = ":empty", |
| static_runtime_libs = [":empty"], |
| strip_files = ":empty", |
| supports_param_files = 0, |
| ) |
| |
| filegroup( |
| name = "every-file-x64_windows", |
| srcs = [ |
| ":compile-x64_windows", |
| ], |
| ) |
| |
| filegroup( |
| name = "compile-x64_windows", |
| srcs = glob([ |
| "wrapper/bin/msvc_*", |
| "wrapper/bin/pydir/msvc*", |
| ]), |
| ) |
| |
| filegroup( |
| name = "link_dynamic_library", |
| srcs = ["link_dynamic_library.sh"], |
| ) |
| |
| # The c++ toolchain type |
| load("//tools/build_defs/toolchains:toolchain_category.bzl", "toolchain_category") |
| toolchain_category(name = "toolchain_category") |
| |
| # A dummy toolchain is necessary to satisfy toolchain resolution until platforms |
| # are used in c++ by default. |
| # TODO(b/64754003): Remove once platforms are used in c++ by default. |
| toolchain( |
| name = "dummy_cc_toolchain", |
| toolchain = "dummy_cc_toolchain_impl", |
| toolchain_type = ":toolchain_category", |
| ) |
| |
| load(":dummy_toolchain.bzl", "dummy_toolchain") |
| |
| dummy_toolchain(name = "dummy_cc_toolchain_impl") |