| 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|windows_msys64": ":cc-compiler-x64_windows", | |
| "x64_windows_msvc|cl": ":cc-compiler-x64_windows_msvc", | |
| }, | |
| ) | |
| 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", | |
| 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_msvc", | |
| 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, | |
| ) | |
| filegroup( | |
| name = "every-file-x64_windows", | |
| srcs = [ | |
| ":compile-x64_windows", | |
| ], | |
| ) | |
| filegroup( | |
| name = "compile-x64_windows", | |
| srcs = glob([ | |
| "wrapper/bin/msvc_*", | |
| "wrapper/bin/pydir/msvc*", | |
| ]), | |
| ) |