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/cmake_android
irengrig b3552bfef8
Fix dynamic libraries (#141)
* move cmake_hello example with static library into a subdirectory

* Fix #139; correct arguments to create_library_to_link

However, the test (which should link the externally built shared library to the calling .c file) fails with assertion that the .so file is in a "wrong" directory, so I am providing it here for additional work [possibly] on Bazel side; and I do not include it into the tests list

* As cc_common.create_library_to_link is now broken for shared libraries,
use the "old" variant cc_common.create_symlink_library_to_link.

As it will later be removed (and create_library_to_link fixed),
it is safe to check for the existence of create_symlink_library_to_link and call it.

Now the test with shared library built by CMake runs, so add it ot the [non-Windows, for now] suite.

* Adapt building shared library with cmake test for mac

* increment version

* Add comment on CMAKE_MACOSX_RPATH
2018-10-23 16:49:20 +02:00
..
cpp move examples into examples directory (#14) 2018-08-13 11:55:05 +02:00
java/com/example/android/bazel move examples into examples directory (#14) 2018-08-13 11:55:05 +02:00
res move examples into examples directory (#14) 2018-08-13 11:55:05 +02:00
AndroidManifest.xml move examples into examples directory (#14) 2018-08-13 11:55:05 +02:00
BUILD Fix dynamic libraries (#141) 2018-10-23 16:49:20 +02:00
hello_lib-example.cpp move examples into examples directory (#14) 2018-08-13 11:55:05 +02:00
LibraryManifest.xml move examples into examples directory (#14) 2018-08-13 11:55:05 +02:00
zlib-example.cpp move examples into examples directory (#14) 2018-08-13 11:55:05 +02:00