lib: update portable modules with ldflags specific to Android
authorAlexis Laferrière <alexis.laf@xymus.net>
Wed, 28 Jan 2015 14:52:36 +0000 (09:52 -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/egl.nit
lib/glesv2/glesv2.nit

index 5c50387..4e36cd0 100644 (file)
 # C library. If a method or class is not documented in Nit, refer to
 # the official documentation by the Khronos Group at:
 # http://www.khronos.org/registry/egl/sdk/docs/man/xhtml/
-module egl is pkgconfig
+module egl is
+       pkgconfig
+       ldflags("-lEGL")@android
+end
+
+import android::aware
 
 in "C Header" `{
        #include <EGL/egl.h>
index 06803ae..ca7faf1 100644 (file)
@@ -33,8 +33,10 @@ module glesv2 is
        pkgconfig
        new_annotation glsl_vertex_shader
        new_annotation glsl_fragment_shader
+       ldflags("-lGLESv2")@android
 end
 
+import android::aware
 
 in "C Header" `{
        #include <GLES2/gl2.h>