diff --git a/BUILD.bazel b/BUILD.bazel index d94e4aa1..17707860 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -14,7 +14,6 @@ bzl_library( visibility = ["//visibility:public"], deps = [ ":bazel_tools_bzl_srcs", - "//for_workspace:bzl_srcs", "//foreign_cc:bzl_srcs", "//toolchains:bzl_srcs", ], diff --git a/for_workspace/BUILD.bazel b/for_workspace/BUILD.bazel deleted file mode 100644 index 00f1bd16..00000000 --- a/for_workspace/BUILD.bazel +++ /dev/null @@ -1,15 +0,0 @@ -load("@bazel_skylib//:bzl_library.bzl", "bzl_library") - -exports_files( - [ - "make_build.bzl", - "cmake_build.bzl", - "ninja_build.bzl", - ], -) - -bzl_library( - name = "bzl_srcs", - srcs = glob(["**/*.bzl"]), - visibility = ["//:__subpackages__"], -) diff --git a/for_workspace/cmake_build.bzl b/for_workspace/cmake_build.bzl deleted file mode 100644 index 66f8ea6f..00000000 --- a/for_workspace/cmake_build.bzl +++ /dev/null @@ -1,8 +0,0 @@ -""" This module is deprecated and has been moved to `//toolchains/built_tools/...` """ - -load("//foreign_cc/built_tools:cmake_build.bzl", _cmake_tool = "cmake_tool") -load(":deprecation.bzl", "print_deprecation") - -print_deprecation() - -cmake_tool = _cmake_tool diff --git a/for_workspace/deprecation.bzl b/for_workspace/deprecation.bzl deleted file mode 100644 index 69310b60..00000000 --- a/for_workspace/deprecation.bzl +++ /dev/null @@ -1,10 +0,0 @@ -"""A helper module to inform users this package is deprecated""" - -def print_deprecation(): - # buildifier: disable=print - print( - "`@rules_foreign_cc//for_workspace/...` is deprecated, please " + - "find the relevant symbols in `@rules_foreign_cc//foreign_cc/built_tools/...`. " + - "Note that the core rules can now be loaded from " + - "`@rules_foreign_cc//foreign_cc:defs.bzl`", - ) diff --git a/for_workspace/make_build.bzl b/for_workspace/make_build.bzl deleted file mode 100644 index 29f0da7f..00000000 --- a/for_workspace/make_build.bzl +++ /dev/null @@ -1,8 +0,0 @@ -""" This module is deprecated and has been moved to `//toolchains/built_tools/...` """ - -load("//foreign_cc/built_tools:make_build.bzl", _make_tool = "make_tool") -load(":deprecation.bzl", "print_deprecation") - -print_deprecation() - -make_tool = _make_tool diff --git a/for_workspace/ninja_build.bzl b/for_workspace/ninja_build.bzl deleted file mode 100644 index 0b5fee83..00000000 --- a/for_workspace/ninja_build.bzl +++ /dev/null @@ -1,8 +0,0 @@ -""" This module is deprecated and has been moved to `//toolchains/built_tools/...` """ - -load("//foreign_cc/built_tools:ninja_build.bzl", _ninja_tool = "ninja_tool") -load(":deprecation.bzl", "print_deprecation") - -print_deprecation() - -ninja_tool = _ninja_tool diff --git a/for_workspace/repositories.bzl b/for_workspace/repositories.bzl deleted file mode 100644 index c99a3754..00000000 --- a/for_workspace/repositories.bzl +++ /dev/null @@ -1,23 +0,0 @@ -""" Remote repositories, used by this project itself """ - -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") -load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") - -# buildifier: disable=print -print("@rules_foreign_cc//for_workspace:repositories.bzl is deprecated and will be removed in the near future") - -def repositories(): - """Declare repositories used by `rules_foreign_cc`""" - - # buildifier: disable=print - print("This macro is deprecated and will soon be removed") - - maybe( - http_archive, - name = "bazel_skylib", - sha256 = "1c531376ac7e5a180e0237938a2536de0c54d93f5c278634818e0efc952dd56c", - urls = [ - "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.0.3/bazel-skylib-1.0.3.tar.gz", - "https://github.com/bazelbuild/bazel-skylib/releases/download/1.0.3/bazel-skylib-1.0.3.tar.gz", - ], - ) diff --git a/tools/build_defs/BUILD.bazel b/tools/build_defs/BUILD.bazel deleted file mode 100644 index 5fd86da9..00000000 --- a/tools/build_defs/BUILD.bazel +++ /dev/null @@ -1,8 +0,0 @@ -load("@bazel_skylib//:bzl_library.bzl", "bzl_library") - -bzl_library( - name = "bzl_srcs", - srcs = glob(["**/*.bzl"]), - visibility = ["//:__subpackages__"], - deps = [], -) diff --git a/tools/build_defs/boost_build.bzl b/tools/build_defs/boost_build.bzl deleted file mode 100644 index 9c8f2824..00000000 --- a/tools/build_defs/boost_build.bzl +++ /dev/null @@ -1,8 +0,0 @@ -""" Rule for building Boost from sources. """ - -load("//foreign_cc:defs.bzl", _boost_build = "boost_build") -load("//tools/build_defs:deprecation.bzl", "print_deprecation") - -print_deprecation() - -boost_build = _boost_build diff --git a/tools/build_defs/cc_toolchain_util.bzl b/tools/build_defs/cc_toolchain_util.bzl deleted file mode 100644 index 573ea961..00000000 --- a/tools/build_defs/cc_toolchain_util.bzl +++ /dev/null @@ -1,30 +0,0 @@ -"""DEPRECATED: Please use the sources in `@rules_foreign_cc//foreign_cc/...`""" - -# buildifier: disable=bzl-visibility -load( - "//foreign_cc/private:cc_toolchain_util.bzl", - _CxxFlagsInfo = "CxxFlagsInfo", - _CxxToolsInfo = "CxxToolsInfo", - _LibrariesToLinkInfo = "LibrariesToLinkInfo", - _absolutize_path_in_str = "absolutize_path_in_str", - _create_linking_info = "create_linking_info", - _get_env_vars = "get_env_vars", - _get_flags_info = "get_flags_info", - _get_tools_info = "get_tools_info", - _is_debug_mode = "is_debug_mode", - _targets_windows = "targets_windows", -) -load("//tools/build_defs:deprecation.bzl", "print_deprecation") - -print_deprecation() - -CxxFlagsInfo = _CxxFlagsInfo -CxxToolsInfo = _CxxToolsInfo -LibrariesToLinkInfo = _LibrariesToLinkInfo -absolutize_path_in_str = _absolutize_path_in_str -create_linking_info = _create_linking_info -get_env_vars = _get_env_vars -get_flags_info = _get_flags_info -get_tools_info = _get_tools_info -is_debug_mode = _is_debug_mode -targets_windows = _targets_windows diff --git a/tools/build_defs/cmake.bzl b/tools/build_defs/cmake.bzl deleted file mode 100644 index 5cc42337..00000000 --- a/tools/build_defs/cmake.bzl +++ /dev/null @@ -1,13 +0,0 @@ -"""DEPRECATED: Please use the sources in `@rules_foreign_cc//foreign_cc/...`""" - -load("//foreign_cc:defs.bzl", _cmake = "cmake") -load("//tools/build_defs:deprecation.bzl", "print_deprecation") - -print_deprecation() - -cmake = _cmake - -# This is an alias to the underlying rule and is -# kept around for legacy compaitiblity. This should -# not be removed without sufficent warning. -cmake_external = _cmake diff --git a/tools/build_defs/cmake_script.bzl b/tools/build_defs/cmake_script.bzl deleted file mode 100644 index d561132f..00000000 --- a/tools/build_defs/cmake_script.bzl +++ /dev/null @@ -1,12 +0,0 @@ -"""DEPRECATED: Please use the sources in `@rules_foreign_cc//foreign_cc/...`""" - -# buildifier: disable=bzl-visibility -load( - "//foreign_cc/private:cmake_script.bzl", - _create_cmake_script = "create_cmake_script", -) -load("//tools/build_defs:deprecation.bzl", "print_deprecation") - -print_deprecation() - -create_cmake_script = _create_cmake_script diff --git a/tools/build_defs/configure.bzl b/tools/build_defs/configure.bzl deleted file mode 100644 index e4dd0c16..00000000 --- a/tools/build_defs/configure.bzl +++ /dev/null @@ -1,8 +0,0 @@ -"""DEPRECATED: Please use the sources in `@rules_foreign_cc//foreign_cc/...`""" - -load("//foreign_cc:defs.bzl", _configure_make = "configure_make") -load("//tools/build_defs:deprecation.bzl", "print_deprecation") - -print_deprecation() - -configure_make = _configure_make diff --git a/tools/build_defs/configure_script.bzl b/tools/build_defs/configure_script.bzl deleted file mode 100644 index b5e67c44..00000000 --- a/tools/build_defs/configure_script.bzl +++ /dev/null @@ -1,16 +0,0 @@ -"""DEPRECATED: Please use the sources in `@rules_foreign_cc//foreign_cc/...`""" - -# buildifier: disable=bzl-visibility -load( - "//foreign_cc/private:configure_script.bzl", - _create_configure_script = "create_configure_script", - _create_make_script = "create_make_script", - _get_env_vars = "get_env_vars", -) -load("//tools/build_defs:deprecation.bzl", "print_deprecation") - -print_deprecation() - -create_configure_script = _create_configure_script -create_make_script = _create_make_script -get_env_vars = _get_env_vars diff --git a/tools/build_defs/deprecation.bzl b/tools/build_defs/deprecation.bzl deleted file mode 100644 index 6cbe05f2..00000000 --- a/tools/build_defs/deprecation.bzl +++ /dev/null @@ -1,10 +0,0 @@ -"""A helper module to inform users this package is deprecated""" - -def print_deprecation(): - # buildifier: disable=print - print( - "`@rules_foreign_cc//tools/build_defs/...` is deprecated, please " + - "find the relevant symbols in `@rules_foreign_cc//foreign_cc/...`. " + - "Note that the core rules can now be loaded from " + - "`@rules_foreign_cc//foreign_cc:defs.bzl`", - ) diff --git a/tools/build_defs/detect_root.bzl b/tools/build_defs/detect_root.bzl deleted file mode 100644 index f2038dc8..00000000 --- a/tools/build_defs/detect_root.bzl +++ /dev/null @@ -1,14 +0,0 @@ -"""DEPRECATED: Please use the sources in `@rules_foreign_cc//foreign_cc/...`""" - -# buildifier: disable=bzl-visibility -load( - "//foreign_cc/private:detect_root.bzl", - _detect_root = "detect_root", - _filter_containing_dirs_from_inputs = "filter_containing_dirs_from_inputs", -) -load("//tools/build_defs:deprecation.bzl", "print_deprecation") - -print_deprecation() - -detect_root = _detect_root -filter_containing_dirs_from_inputs = _filter_containing_dirs_from_inputs diff --git a/tools/build_defs/framework.bzl b/tools/build_defs/framework.bzl deleted file mode 100644 index 932969ab..00000000 --- a/tools/build_defs/framework.bzl +++ /dev/null @@ -1,39 +0,0 @@ -"""DEPRECATED: Please use the sources in `@rules_foreign_cc//foreign_cc/...`""" - -# buildifier: disable=bzl-visibility -load( - "//foreign_cc/private:framework.bzl", - _CC_EXTERNAL_RULE_ATTRIBUTES = "CC_EXTERNAL_RULE_ATTRIBUTES", - _ConfigureParameters = "ConfigureParameters", - _InputFiles = "InputFiles", - _WrappedOutputs = "WrappedOutputs", - _cc_external_rule_impl = "cc_external_rule_impl", - _create_attrs = "create_attrs", - _get_foreign_cc_dep = "get_foreign_cc_dep", - _uniq_list_keep_order = "uniq_list_keep_order", - _wrap_outputs = "wrap_outputs", -) -load("//tools/build_defs:deprecation.bzl", "print_deprecation") - -print_deprecation() - -CC_EXTERNAL_RULE_ATTRIBUTES = _CC_EXTERNAL_RULE_ATTRIBUTES - -cc_external_rule_impl = _cc_external_rule_impl - -# buildifier: disable=name-conventions -ConfigureParameters = _ConfigureParameters - -create_attrs = _create_attrs - -get_foreign_cc_dep = _get_foreign_cc_dep - -# buildifier: disable=name-conventions -InputFiles = _InputFiles - -uniq_list_keep_order = _uniq_list_keep_order - -wrap_outputs = _wrap_outputs - -# buildifier: disable=name-conventions -WrappedOutputs = _WrappedOutputs diff --git a/tools/build_defs/make.bzl b/tools/build_defs/make.bzl deleted file mode 100644 index 28bd78b9..00000000 --- a/tools/build_defs/make.bzl +++ /dev/null @@ -1,8 +0,0 @@ -"""DEPRECATED: Please use the sources in `@rules_foreign_cc//foreign_cc/...`""" - -load("//foreign_cc:defs.bzl", _make = "make") -load("//tools/build_defs:deprecation.bzl", "print_deprecation") - -print_deprecation() - -make = _make diff --git a/tools/build_defs/ninja.bzl b/tools/build_defs/ninja.bzl deleted file mode 100644 index c640ee1a..00000000 --- a/tools/build_defs/ninja.bzl +++ /dev/null @@ -1,8 +0,0 @@ -"""DEPRECATED: Please use the sources in `@rules_foreign_cc//foreign_cc/...`""" - -load("//foreign_cc:defs.bzl", _ninja = "ninja") -load("//tools/build_defs:deprecation.bzl", "print_deprecation") - -print_deprecation() - -ninja = _ninja diff --git a/tools/build_defs/run_shell_file_utils.bzl b/tools/build_defs/run_shell_file_utils.bzl deleted file mode 100644 index 00897333..00000000 --- a/tools/build_defs/run_shell_file_utils.bzl +++ /dev/null @@ -1,17 +0,0 @@ -"""DEPRECATED: Please use the sources in `@rules_foreign_cc//foreign_cc/...`""" - -# buildifier: disable=bzl-visibility -load( - "//foreign_cc/private:run_shell_file_utils.bzl", - _CreatedByScript = "CreatedByScript", - _copy_directory = "copy_directory", - _fictive_file_in_genroot = "fictive_file_in_genroot", -) -load("//tools/build_defs:deprecation.bzl", "print_deprecation") - -print_deprecation() - -# buildifier: disable=name-conventions -CreatedByScript = _CreatedByScript -fictive_file_in_genroot = _fictive_file_in_genroot -copy_directory = _copy_directory diff --git a/tools/build_defs/shell_script_helper.bzl b/tools/build_defs/shell_script_helper.bzl deleted file mode 100644 index 45da1f2e..00000000 --- a/tools/build_defs/shell_script_helper.bzl +++ /dev/null @@ -1,30 +0,0 @@ -"""DEPRECATED: Please use the sources in `@rules_foreign_cc//foreign_cc/...`""" - -# buildifier: disable=bzl-visibility -load( - "//foreign_cc/private:shell_script_helper.bzl", - _convert_shell_script = "convert_shell_script", - _convert_shell_script_by_context = "convert_shell_script_by_context", - _create_function = "create_function", - _do_function_call = "do_function_call", - _extract_wrapped = "extract_wrapped", - _get_function_name = "get_function_name", - _os_name = "os_name", - _replace_exports = "replace_exports", - _replace_var_ref = "replace_var_ref", - _split_arguments = "split_arguments", -) -load("//tools/build_defs:deprecation.bzl", "print_deprecation") - -print_deprecation() - -os_name = _os_name -create_function = _create_function -convert_shell_script = _convert_shell_script -convert_shell_script_by_context = _convert_shell_script_by_context -replace_var_ref = _replace_var_ref -replace_exports = _replace_exports -get_function_name = _get_function_name -extract_wrapped = _extract_wrapped -do_function_call = _do_function_call -split_arguments = _split_arguments diff --git a/tools/build_defs/shell_toolchain/polymorphism/BUILD.bazel b/tools/build_defs/shell_toolchain/polymorphism/BUILD.bazel deleted file mode 100644 index e4db260d..00000000 --- a/tools/build_defs/shell_toolchain/polymorphism/BUILD.bazel +++ /dev/null @@ -1,7 +0,0 @@ -load("@bazel_skylib//:bzl_library.bzl", "bzl_library") - -bzl_library( - name = "bzl_srcs", - srcs = glob(["**/*.bzl"]), - visibility = ["//:__subpackages__"], -) diff --git a/tools/build_defs/shell_toolchain/polymorphism/generate_overloads.bzl b/tools/build_defs/shell_toolchain/polymorphism/generate_overloads.bzl deleted file mode 100644 index b145091d..00000000 --- a/tools/build_defs/shell_toolchain/polymorphism/generate_overloads.bzl +++ /dev/null @@ -1,12 +0,0 @@ -"""DEPRECATED: Please use the sources in `@rules_foreign_cc//foreign_cc/...`""" - -# buildifier: disable=bzl-visibility -load( - "//foreign_cc/private/shell_toolchain/polymorphism:generate_overloads.bzl", - _generate_overloads = "generate_overloads", -) -load("//tools/build_defs:deprecation.bzl", "print_deprecation") - -print_deprecation() - -generate_overloads = _generate_overloads diff --git a/tools/build_defs/shell_toolchain/toolchains/BUILD.bazel b/tools/build_defs/shell_toolchain/toolchains/BUILD.bazel deleted file mode 100644 index dd0cfc38..00000000 --- a/tools/build_defs/shell_toolchain/toolchains/BUILD.bazel +++ /dev/null @@ -1,17 +0,0 @@ -load("@bazel_skylib//:bzl_library.bzl", "bzl_library") - -alias( - name = "shell_commands", - actual = "//foreign_cc/private/shell_toolchain/toolchains:shell_commands", - deprecation = "This target has been moved to `@rules_foreign_cc//foreign_cc/private/shell_toolchain/toolchains:shell_commands`", - visibility = ["//visibility:public"], -) - -bzl_library( - name = "bzl_srcs", - srcs = glob(["**/*.bzl"]) + [ - "@rules_foreign_cc_commands_overloads//:toolchain_data_defs.bzl", - ], - visibility = ["//:__subpackages__"], - deps = ["//foreign_cc/private/shell_toolchain/toolchains/impl:bzl_srcs"], -) diff --git a/tools/build_defs/shell_toolchain/toolchains/access.bzl b/tools/build_defs/shell_toolchain/toolchains/access.bzl deleted file mode 100644 index 53aff072..00000000 --- a/tools/build_defs/shell_toolchain/toolchains/access.bzl +++ /dev/null @@ -1,16 +0,0 @@ -"""DEPRECATED: Please use the sources in `@rules_foreign_cc//foreign_cc/...`""" - -# buildifier: disable=bzl-visibility -load( - "//foreign_cc/private/shell_toolchain/toolchains:access.bzl", - _call_shell = "call_shell", - _check_argument_types = "check_argument_types", - _create_context = "create_context", -) -load("//tools/build_defs:deprecation.bzl", "print_deprecation") - -print_deprecation() - -create_context = _create_context -call_shell = _call_shell -check_argument_types = _check_argument_types diff --git a/tools/build_defs/shell_toolchain/toolchains/commands.bzl b/tools/build_defs/shell_toolchain/toolchains/commands.bzl deleted file mode 100644 index 51919f2b..00000000 --- a/tools/build_defs/shell_toolchain/toolchains/commands.bzl +++ /dev/null @@ -1,16 +0,0 @@ -"""DEPRECATED: Please use the sources in `@rules_foreign_cc//foreign_cc/...`""" - -# buildifier: disable=bzl-visibility -load( - "//foreign_cc/private/shell_toolchain/toolchains:commands.bzl", - _ArgumentInfo = "ArgumentInfo", - _CommandInfo = "CommandInfo", - _PLATFORM_COMMANDS = "PLATFORM_COMMANDS", -) -load("//tools/build_defs:deprecation.bzl", "print_deprecation") - -print_deprecation() - -CommandInfo = _CommandInfo -ArgumentInfo = _ArgumentInfo -PLATFORM_COMMANDS = _PLATFORM_COMMANDS diff --git a/tools/build_defs/shell_toolchain/toolchains/defs.bzl b/tools/build_defs/shell_toolchain/toolchains/defs.bzl deleted file mode 100644 index a0e09428..00000000 --- a/tools/build_defs/shell_toolchain/toolchains/defs.bzl +++ /dev/null @@ -1,16 +0,0 @@ -"""DEPRECATED: Please use the sources in `@rules_foreign_cc//foreign_cc/...`""" - -# buildifier: disable=bzl-visibility -load( - "//foreign_cc/private/shell_toolchain/toolchains:defs.bzl", - _build_part = "build_part", - _register_mappings = "register_mappings", - _toolchain_data = "toolchain_data", -) -load("//tools/build_defs:deprecation.bzl", "print_deprecation") - -print_deprecation() - -build_part = _build_part -register_mappings = _register_mappings -toolchain_data = _toolchain_data diff --git a/tools/build_defs/shell_toolchain/toolchains/function_and_call.bzl b/tools/build_defs/shell_toolchain/toolchains/function_and_call.bzl deleted file mode 100644 index 7bac95ee..00000000 --- a/tools/build_defs/shell_toolchain/toolchains/function_and_call.bzl +++ /dev/null @@ -1,13 +0,0 @@ -"""DEPRECATED: Please use the sources in `@rules_foreign_cc//foreign_cc/...`""" - -# buildifier: disable=bzl-visibility -load( - "//foreign_cc/private/shell_toolchain/toolchains:function_and_call.bzl", - _FunctionAndCall = "FunctionAndCall", -) -load("//tools/build_defs:deprecation.bzl", "print_deprecation") - -print_deprecation() - -# buildifier: disable=name-conventions -FunctionAndCall = _FunctionAndCall diff --git a/tools/build_defs/shell_toolchain/toolchains/impl/BUILD.bazel b/tools/build_defs/shell_toolchain/toolchains/impl/BUILD.bazel deleted file mode 100644 index e4db260d..00000000 --- a/tools/build_defs/shell_toolchain/toolchains/impl/BUILD.bazel +++ /dev/null @@ -1,7 +0,0 @@ -load("@bazel_skylib//:bzl_library.bzl", "bzl_library") - -bzl_library( - name = "bzl_srcs", - srcs = glob(["**/*.bzl"]), - visibility = ["//:__subpackages__"], -) diff --git a/tools/build_defs/shell_toolchain/toolchains/impl/default_commands.bzl b/tools/build_defs/shell_toolchain/toolchains/impl/default_commands.bzl deleted file mode 100644 index e03a675e..00000000 --- a/tools/build_defs/shell_toolchain/toolchains/impl/default_commands.bzl +++ /dev/null @@ -1,60 +0,0 @@ -"""DEPRECATED: Please use the sources in `@rules_foreign_cc//foreign_cc/...`""" - -# buildifier: disable=bzl-visibility -load( - "//foreign_cc/private/shell_toolchain/toolchains:impl/default_commands.bzl", - _assert_script_errors = "assert_script_errors", - _cat = "cat", - _children_to_path = "children_to_path", - _cleanup_function = "cleanup_function", - _copy_dir_contents_to_dir = "copy_dir_contents_to_dir", - _define_absolute_paths = "define_absolute_paths", - _define_function = "define_function", - _echo = "echo", - _env = "env", - _export_var = "export_var", - _if_else = "if_else", - _increment_pkg_config_path = "increment_pkg_config_path", - _local_var = "local_var", - _mkdirs = "mkdirs", - _os_name = "os_name", - _path = "path", - _pwd = "pwd", - _redirect_out_err = "redirect_out_err", - _replace_absolute_paths = "replace_absolute_paths", - _replace_in_files = "replace_in_files", - _script_prelude = "script_prelude", - _symlink_contents_to_dir = "symlink_contents_to_dir", - _symlink_to_dir = "symlink_to_dir", - _touch = "touch", - _use_var = "use_var", -) -load("//tools/build_defs:deprecation.bzl", "print_deprecation") - -print_deprecation() - -assert_script_errors = _assert_script_errors -cat = _cat -children_to_path = _children_to_path -cleanup_function = _cleanup_function -copy_dir_contents_to_dir = _copy_dir_contents_to_dir -define_absolute_paths = _define_absolute_paths -define_function = _define_function -echo = _echo -env = _env -export_var = _export_var -if_else = _if_else -increment_pkg_config_path = _increment_pkg_config_path -local_var = _local_var -mkdirs = _mkdirs -os_name = _os_name -path = _path -pwd = _pwd -redirect_out_err = _redirect_out_err -replace_absolute_paths = _replace_absolute_paths -replace_in_files = _replace_in_files -script_prelude = _script_prelude -symlink_contents_to_dir = _symlink_contents_to_dir -symlink_to_dir = _symlink_to_dir -touch = _touch -use_var = _use_var diff --git a/tools/build_defs/shell_toolchain/toolchains/impl/linux_commands.bzl b/tools/build_defs/shell_toolchain/toolchains/impl/linux_commands.bzl deleted file mode 100644 index 5cc65e35..00000000 --- a/tools/build_defs/shell_toolchain/toolchains/impl/linux_commands.bzl +++ /dev/null @@ -1,60 +0,0 @@ -"""DEPRECATED: Please use the sources in `@rules_foreign_cc//foreign_cc/...`""" - -# buildifier: disable=bzl-visibility -load( - "//foreign_cc/private/shell_toolchain/toolchains:impl/linux_commands.bzl", - _assert_script_errors = "assert_script_errors", - _cat = "cat", - _children_to_path = "children_to_path", - _cleanup_function = "cleanup_function", - _copy_dir_contents_to_dir = "copy_dir_contents_to_dir", - _define_absolute_paths = "define_absolute_paths", - _define_function = "define_function", - _echo = "echo", - _env = "env", - _export_var = "export_var", - _if_else = "if_else", - _increment_pkg_config_path = "increment_pkg_config_path", - _local_var = "local_var", - _mkdirs = "mkdirs", - _os_name = "os_name", - _path = "path", - _pwd = "pwd", - _redirect_out_err = "redirect_out_err", - _replace_absolute_paths = "replace_absolute_paths", - _replace_in_files = "replace_in_files", - _script_prelude = "script_prelude", - _symlink_contents_to_dir = "symlink_contents_to_dir", - _symlink_to_dir = "symlink_to_dir", - _touch = "touch", - _use_var = "use_var", -) -load("//tools/build_defs:deprecation.bzl", "print_deprecation") - -print_deprecation() - -assert_script_errors = _assert_script_errors -cat = _cat -children_to_path = _children_to_path -cleanup_function = _cleanup_function -copy_dir_contents_to_dir = _copy_dir_contents_to_dir -define_absolute_paths = _define_absolute_paths -define_function = _define_function -echo = _echo -env = _env -export_var = _export_var -if_else = _if_else -increment_pkg_config_path = _increment_pkg_config_path -local_var = _local_var -mkdirs = _mkdirs -os_name = _os_name -path = _path -pwd = _pwd -redirect_out_err = _redirect_out_err -replace_absolute_paths = _replace_absolute_paths -replace_in_files = _replace_in_files -script_prelude = _script_prelude -symlink_contents_to_dir = _symlink_contents_to_dir -symlink_to_dir = _symlink_to_dir -touch = _touch -use_var = _use_var diff --git a/tools/build_defs/shell_toolchain/toolchains/impl/osx_commands.bzl b/tools/build_defs/shell_toolchain/toolchains/impl/osx_commands.bzl deleted file mode 100644 index eb4efbac..00000000 --- a/tools/build_defs/shell_toolchain/toolchains/impl/osx_commands.bzl +++ /dev/null @@ -1,60 +0,0 @@ -"""DEPRECATED: Please use the sources in `@rules_foreign_cc//foreign_cc/...`""" - -# buildifier: disable=bzl-visibility -load( - "//foreign_cc/private/shell_toolchain/toolchains:impl/macos_commands.bzl", - _assert_script_errors = "assert_script_errors", - _cat = "cat", - _children_to_path = "children_to_path", - _cleanup_function = "cleanup_function", - _copy_dir_contents_to_dir = "copy_dir_contents_to_dir", - _define_absolute_paths = "define_absolute_paths", - _define_function = "define_function", - _echo = "echo", - _env = "env", - _export_var = "export_var", - _if_else = "if_else", - _increment_pkg_config_path = "increment_pkg_config_path", - _local_var = "local_var", - _mkdirs = "mkdirs", - _os_name = "os_name", - _path = "path", - _pwd = "pwd", - _redirect_out_err = "redirect_out_err", - _replace_absolute_paths = "replace_absolute_paths", - _replace_in_files = "replace_in_files", - _script_prelude = "script_prelude", - _symlink_contents_to_dir = "symlink_contents_to_dir", - _symlink_to_dir = "symlink_to_dir", - _touch = "touch", - _use_var = "use_var", -) -load("//tools/build_defs:deprecation.bzl", "print_deprecation") - -print_deprecation() - -assert_script_errors = _assert_script_errors -cat = _cat -children_to_path = _children_to_path -cleanup_function = _cleanup_function -copy_dir_contents_to_dir = _copy_dir_contents_to_dir -define_absolute_paths = _define_absolute_paths -define_function = _define_function -echo = _echo -env = _env -export_var = _export_var -if_else = _if_else -increment_pkg_config_path = _increment_pkg_config_path -local_var = _local_var -mkdirs = _mkdirs -os_name = _os_name -path = _path -pwd = _pwd -redirect_out_err = _redirect_out_err -replace_absolute_paths = _replace_absolute_paths -replace_in_files = _replace_in_files -script_prelude = _script_prelude -symlink_contents_to_dir = _symlink_contents_to_dir -symlink_to_dir = _symlink_to_dir -touch = _touch -use_var = _use_var diff --git a/tools/build_defs/shell_toolchain/toolchains/impl/windows_commands.bzl b/tools/build_defs/shell_toolchain/toolchains/impl/windows_commands.bzl deleted file mode 100644 index 7221a727..00000000 --- a/tools/build_defs/shell_toolchain/toolchains/impl/windows_commands.bzl +++ /dev/null @@ -1,60 +0,0 @@ -"""DEPRECATED: Please use the sources in `@rules_foreign_cc//foreign_cc/...`""" - -# buildifier: disable=bzl-visibility -load( - "//foreign_cc/private/shell_toolchain/toolchains:impl/windows_commands.bzl", - _assert_script_errors = "assert_script_errors", - _cat = "cat", - _children_to_path = "children_to_path", - _cleanup_function = "cleanup_function", - _copy_dir_contents_to_dir = "copy_dir_contents_to_dir", - _define_absolute_paths = "define_absolute_paths", - _define_function = "define_function", - _echo = "echo", - _env = "env", - _export_var = "export_var", - _if_else = "if_else", - _increment_pkg_config_path = "increment_pkg_config_path", - _local_var = "local_var", - _mkdirs = "mkdirs", - _os_name = "os_name", - _path = "path", - _pwd = "pwd", - _redirect_out_err = "redirect_out_err", - _replace_absolute_paths = "replace_absolute_paths", - _replace_in_files = "replace_in_files", - _script_prelude = "script_prelude", - _symlink_contents_to_dir = "symlink_contents_to_dir", - _symlink_to_dir = "symlink_to_dir", - _touch = "touch", - _use_var = "use_var", -) -load("//tools/build_defs:deprecation.bzl", "print_deprecation") - -print_deprecation() - -assert_script_errors = _assert_script_errors -cat = _cat -children_to_path = _children_to_path -cleanup_function = _cleanup_function -copy_dir_contents_to_dir = _copy_dir_contents_to_dir -define_absolute_paths = _define_absolute_paths -define_function = _define_function -echo = _echo -env = _env -export_var = _export_var -if_else = _if_else -increment_pkg_config_path = _increment_pkg_config_path -local_var = _local_var -mkdirs = _mkdirs -os_name = _os_name -path = _path -pwd = _pwd -redirect_out_err = _redirect_out_err -replace_absolute_paths = _replace_absolute_paths -replace_in_files = _replace_in_files -script_prelude = _script_prelude -symlink_contents_to_dir = _symlink_contents_to_dir -symlink_to_dir = _symlink_to_dir -touch = _touch -use_var = _use_var diff --git a/tools/build_defs/shell_toolchain/toolchains/toolchain_mappings.bzl b/tools/build_defs/shell_toolchain/toolchains/toolchain_mappings.bzl deleted file mode 100644 index bc00de1d..00000000 --- a/tools/build_defs/shell_toolchain/toolchains/toolchain_mappings.bzl +++ /dev/null @@ -1,15 +0,0 @@ -"""DEPRECATED: Please use the sources in `@rules_foreign_cc//foreign_cc/...`""" - -# buildifier: disable=bzl-visibility -load( - "//foreign_cc/private/shell_toolchain/toolchains:toolchain_mappings.bzl", - _TOOLCHAIN_MAPPINGS = "TOOLCHAIN_MAPPINGS", - _ToolchainMapping = "ToolchainMapping", -) -load("//tools/build_defs:deprecation.bzl", "print_deprecation") - -print_deprecation() - -# buildifier: disable=name-conventions -ToolchainMapping = _ToolchainMapping -TOOLCHAIN_MAPPINGS = _TOOLCHAIN_MAPPINGS diff --git a/tools/build_defs/shell_toolchain/toolchains/ws_defs.bzl b/tools/build_defs/shell_toolchain/toolchains/ws_defs.bzl deleted file mode 100644 index ff9f6897..00000000 --- a/tools/build_defs/shell_toolchain/toolchains/ws_defs.bzl +++ /dev/null @@ -1,12 +0,0 @@ -"""DEPRECATED: Please use the sources in `@rules_foreign_cc//foreign_cc/...`""" - -# buildifier: disable=bzl-visibility -load( - "//foreign_cc/private/shell_toolchain/toolchains:ws_defs.bzl", - _workspace_part = "workspace_part", -) -load("//tools/build_defs:deprecation.bzl", "print_deprecation") - -print_deprecation() - -workspace_part = _workspace_part diff --git a/workspace_definitions.bzl b/workspace_definitions.bzl deleted file mode 100644 index 4a5725b8..00000000 --- a/workspace_definitions.bzl +++ /dev/null @@ -1,12 +0,0 @@ -"""Deprecated in favor of `//foreign_cc:repositories.bzl""" - -load("//foreign_cc:repositories.bzl", _rules_foreign_cc_dependencies = "rules_foreign_cc_dependencies") - -# buildifier: disable=print -print( - "`@rules_foreign_cc//:workspace_definitions.bzl` has been replaced by " + - "`@rules_foreign_cc//foreign_cc:repositories.bzl`. Please use the " + - "updated source location", -) - -rules_foreign_cc_dependencies = _rules_foreign_cc_dependencies