lib: define Android ldflags in user modules
authorAlexis Laferrière <alexis.laf@xymus.net>
Wed, 28 Jan 2015 14:54:23 +0000 (09:54 -0500)
committerAlexis Laferrière <alexis.laf@xymus.net>
Wed, 28 Jan 2015 15:03:37 +0000 (10:03 -0500)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

lib/android/log.nit
lib/android/native_app_glue.nit
lib/mnit_android/android_assets.nit
lib/mnit_android/android_opengles1.nit

index 30beb62..c165331 100644 (file)
@@ -15,7 +15,7 @@
 # limitations under the License.
 
 # Advanced Android logging services
-module log
+module log is ldflags "-llog"
 
 import platform
 
index af3c797..4ae4753 100644 (file)
@@ -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
index 2c703bb..8f61c90 100644 (file)
@@ -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
index 5996214..5ff9e7c 100644 (file)
@@ -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