2
0
Fork 0
mirror of https://github.com/bazel-contrib/rules_foreign_cc synced 2024-11-27 02:43:28 +00:00
rules_foreign_cc/examples/configure_gnuplot
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
..
arc.c Correct bugs and make configure-make work on MacOS (#108) 2018-09-20 20:19:38 +02:00
bazel-icon-transparent.png Add configure_make rule with zlib, freetype, libpng, libgd examples (#106) 2018-09-18 13:20:58 +02:00
BUILD Fix using Bazel-built libraries by cmake_external and configure_make (#249) 2019-05-09 10:35:00 +02:00
libpng_usage_example.cpp Add configure_make rule with zlib, freetype, libpng, libgd examples (#106) 2018-09-18 13:20:58 +02:00
zlib-example.cpp Add configure_make rule with zlib, freetype, libpng, libgd examples (#106) 2018-09-18 13:20:58 +02:00