From 5097c6f264da1e2d593d2d1328b6a87989be2fc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Fran=C3=A7ois=20Verdon?= Date: Sat, 20 Feb 2016 12:06:37 +0100 Subject: [PATCH] Android generated application are provided as a dynamic library. To be loaded flawlessly by 'NativeActivity' class, they must have 'lib' as prefix and '.so' as extension (see 'AndroidManifest.xml' section at 'developer.android.com/ndk/samples/sample_na.html'). This adds automatically the 'lib' prefix to the generated library. --- scripts/toolchain.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/toolchain.lua b/scripts/toolchain.lua index fc674de..4ef0a07 100755 --- a/scripts/toolchain.lua +++ b/scripts/toolchain.lua @@ -664,6 +664,7 @@ function toolchain(_buildDir, _libDir) } configuration { "android-*" } + targetprefix ("lib") flags { "NoImportLib", }