rules_foreign_cc/tools/build_defs
irengrig e36f3cee8c
Fix using Bazel-built libraries by cmake_external and configure_make (#249)
Fix #232 - enable usage of Bazel-built libraries as dependencies of cmake_external and configure_make.

- fix logic of reading library data described by C/C++ Bazel interface (as CcInfo.linking_context appeared)
- symlink transitive include directories under $EXT_BUILD_DEPS
- gather all possible transitive include directories to pass to CMake, pass transitive include directories to CMAKE_PREFIX_PATH so that the transitive include directories were scanned by CMake
- fix logic of passing transitive libraries into CPPFLAGS (configure_make)
- add test with the chain: Bazel lib -> CMake lib -> Bazel cc_test
- add synthetic configure-make test with the chain: Bazel lib -> configure_make lib -> Bazel cc_test
- also notice, that passed include directories from Bazel C/C++ Sandwich interface are not always existing; for now, make symlinking code resistant to that

see https://www.gnu.org/software/autoconf/manual/autoconf-2.63/html_node/Preset-Output-Variables.html
2019-05-09 10:35:00 +02:00
..
native_tools Extract cmake and ninja into a toolchain; provide defaults. (#192) 2019-01-08 12:25:16 +01:00
shell_toolchain Fix using Bazel-built libraries by cmake_external and configure_make (#249) 2019-05-09 10:35:00 +02:00
BUILD Extract cmake and ninja into a toolchain; provide defaults. (#192) 2019-01-08 12:25:16 +01:00
boost_build.bzl - Fixes a bug where bootstrap options weren't being passed (#245) 2019-05-06 10:30:14 +02:00
cc_toolchain_util.bzl Pass --copt, --cxxopt, --conlyopt, --linkopt to cmake_external/configure_make rules (#235) 2019-03-11 16:50:39 +01:00
cmake.bzl Fix using Bazel-built libraries by cmake_external and configure_make (#249) 2019-05-09 10:35:00 +02:00
cmake_script.bzl Fix using Bazel-built libraries by cmake_external and configure_make (#249) 2019-05-09 10:35:00 +02:00
configure.bzl Fix using Bazel-built libraries by cmake_external and configure_make (#249) 2019-05-09 10:35:00 +02:00
configure_script.bzl Fix using Bazel-built libraries by cmake_external and configure_make (#249) 2019-05-09 10:35:00 +02:00
detect_root.bzl Fixes for Bazel --all_incompatible_changes (#194) 2019-01-08 18:25:04 +01:00
framework.bzl Fix using Bazel-built libraries by cmake_external and configure_make (#249) 2019-05-09 10:35:00 +02:00
run_shell_file_utils.bzl Extract shell fragments into a toolchain (#196) 2019-01-18 18:06:10 +01:00
shell_script_helper.bzl Improve outputs handling: wrapper script in shell-abstract manner (#223) 2019-02-14 10:00:19 +01:00
version.bzl Fix using Bazel-built libraries by cmake_external and configure_make (#249) 2019-05-09 10:35:00 +02:00