2
0
Fork 0
mirror of https://github.com/bazel-contrib/rules_foreign_cc synced 2024-11-29 12:33:51 +00:00
rules_foreign_cc/examples
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
..
apache_httpd Correct environment variable references to the platform-independent style (#248) 2019-05-06 16:30:21 +02:00
bison Add bison/yacc example (configure & make) (#206) 2019-01-28 22:10:31 +01:00
boost adds bootstrap_options to attribute to allow user to pass command line args to bootstrap.sh (#181) 2019-02-14 11:05:10 +01:00
build_cmake_itself Reorganize examples to be in a separate workspace (#188) 2019-01-07 10:31:27 +01:00
built_ninja Extract cmake and ninja into a toolchain; provide defaults. (#192) 2019-01-08 12:25:16 +01:00
cc_configure_make Reorganize examples to be in a separate workspace (#188) 2019-01-07 10:31:27 +01:00
cmake Reorganize examples to be in a separate workspace (#188) 2019-01-07 10:31:27 +01:00
cmake_android Reorganize examples to be in a separate workspace (#188) 2019-01-07 10:31:27 +01:00
cmake_cares Extract cmake and ninja into a toolchain; provide defaults. (#192) 2019-01-08 12:25:16 +01:00
cmake_crosstool Windows, tests: fix for native test wrapper (#246) 2019-04-30 16:50:26 +03:00
cmake_hello_world_lib Launch at least some Windows tests on CI (#201) 2019-01-18 18:43:37 +01:00
cmake_nghttp2 Extract cmake and ninja into a toolchain; provide defaults. (#192) 2019-01-08 12:25:16 +01:00
cmake_pcl Reorganize examples to be in a separate workspace (#188) 2019-01-07 10:31:27 +01:00
cmake_synthetic Fix using Bazel-built libraries by cmake_external and configure_make (#249) 2019-05-09 10:35:00 +02:00
cmake_with_bazel_transitive Fix using Bazel-built libraries by cmake_external and configure_make (#249) 2019-05-09 10:35:00 +02:00
configure_gnuplot Fix using Bazel-built libraries by cmake_external and configure_make (#249) 2019-05-09 10:35:00 +02:00
configure_with_bazel_transitive Fix using Bazel-built libraries by cmake_external and configure_make (#249) 2019-05-09 10:35:00 +02:00
pybind11 Reorganize examples to be in a separate workspace (#188) 2019-01-07 10:31:27 +01:00
use_malloc Example with malloc attribute, currently not working (#250) 2019-05-07 18:19:16 +02:00
with_prebuilt_ninja_artefact Windows, tests: fix for native test wrapper (#246) 2019-04-30 16:50:26 +03:00
.bazelignore Example with malloc attribute, currently not working (#250) 2019-05-07 18:19:16 +02:00
BUILD Fix using Bazel-built libraries by cmake_external and configure_make (#249) 2019-05-09 10:35:00 +02:00
examples_repositories.bzl working example for #241 (#247) 2019-05-06 16:04:47 +02:00
nghttp2.patch make cmake and ninja build rules be available from util repository (#72) 2018-08-30 17:31:02 +02:00
print_bazel_version.sh Correction for what tests to run on CI on Windows with Bazel 0.22.0 (#207) 2019-01-29 14:21:31 +01:00
select_windows_tests.bzl Correction for what tests to run on CI on Windows with Bazel 0.22.0 (#207) 2019-01-29 14:21:31 +01:00
WORKSPACE Windows, tests: fix for native test wrapper (#246) 2019-04-30 16:50:26 +03:00