summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/AndroidMK/bar.c
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-10-07 18:57:26 (GMT)
committerBrad King <brad.king@kitware.com>2016-10-07 19:02:42 (GMT)
commitdda6775c940129d2a38fecd6cf6273f7d97ccca0 (patch)
tree666c16239f6ed691e6575ea0a0d0d75982e033d6 /Tests/RunCMake/AndroidMK/bar.c
parentb99bbfe88d1bb02dc903507f3e1bbe716ac04c12 (diff)
downloadCMake-dda6775c940129d2a38fecd6cf6273f7d97ccca0.zip
CMake-dda6775c940129d2a38fecd6cf6273f7d97ccca0.tar.gz
CMake-dda6775c940129d2a38fecd6cf6273f7d97ccca0.tar.bz2
Android: Record use of C++ by static libs in exported Android.mk files
When a `PREBUILT_STATIC_LIBRARY` uses C++ in its sources then the `.a` file will have a link-time dependency on the C++ runtime libraries. Android NDK r14 will add a way to give this information to the NDK build system by adding a `LOCAL_HAS_CPP` setting to the `Android.mk` file. Add this for exported static libraries that use C++.
Diffstat (limited to 'Tests/RunCMake/AndroidMK/bar.c')
-rw-r--r--Tests/RunCMake/AndroidMK/bar.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Tests/RunCMake/AndroidMK/bar.c b/Tests/RunCMake/AndroidMK/bar.c
new file mode 100644
index 0000000..e1f4df6
--- /dev/null
+++ b/Tests/RunCMake/AndroidMK/bar.c
@@ -0,0 +1,3 @@
+void bar(void)
+{
+}