From: Alexis Laferrière Date: Wed, 28 Jan 2015 14:54:23 +0000 (-0500) Subject: lib: define Android ldflags in user modules X-Git-Tag: v0.7.1~3^2~1 X-Git-Url: http://nitlanguage.org lib: define Android ldflags in user modules Signed-off-by: Alexis Laferrière --- diff --git a/lib/android/log.nit b/lib/android/log.nit index 30beb62..c165331 100644 --- a/lib/android/log.nit +++ b/lib/android/log.nit @@ -15,7 +15,7 @@ # limitations under the License. # Advanced Android logging services -module log +module log is ldflags "-llog" import platform diff --git a/lib/android/native_app_glue.nit b/lib/android/native_app_glue.nit index af3c797..4ae4753 100644 --- a/lib/android/native_app_glue.nit +++ b/lib/android/native_app_glue.nit @@ -36,7 +36,7 @@ # which is a subclass of `Activity` and `Context` (in Java). It represent # main activity of the running application. Use it to get anything related # to the `Context` and as anchor to execute Java UI code. -module native_app_glue +module native_app_glue is ldflags "-landroid" import platform import log diff --git a/lib/mnit_android/android_assets.nit b/lib/mnit_android/android_assets.nit index 2c703bb..8f61c90 100644 --- a/lib/mnit_android/android_assets.nit +++ b/lib/mnit_android/android_assets.nit @@ -21,7 +21,7 @@ # * The Android ndk # * zlib (which is included in the Android ndk) # * libpng which must be provided by the Nit compilation framework -module android_assets +module android_assets is ldflags "-lz" import mnit import android_app diff --git a/lib/mnit_android/android_opengles1.nit b/lib/mnit_android/android_opengles1.nit index 5996214..5ff9e7c 100644 --- a/lib/mnit_android/android_opengles1.nit +++ b/lib/mnit_android/android_opengles1.nit @@ -16,7 +16,7 @@ # Adapts OpenGL ES 1.0 for use on Android by offering services to get # a handler to the native display and window. -module android_opengles1 +module android_opengles1 is ldflags "-lEGL -lGLESv1_CM" import android_app import android