lib/mnit_linux: use annotations to link with libraries
authorAlexis Laferrière <alexis.laf@xymus.net>
Mon, 3 Mar 2014 14:34:43 +0000 (09:34 -0500)
committerAlexis Laferrière <alexis.laf@xymus.net>
Mon, 3 Mar 2014 14:34:43 +0000 (09:34 -0500)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

lib/mnit_linux/linux_opengles1.nit

index e27771b..b88f450 100644 (file)
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-module linux_opengles1
+module linux_opengles1 is
+       pkgconfig("glesv1_cm", "x11", "egl")
+       c_compiler_option(exec("sdl-config", "--cflags"))
+       c_linker_option(exec("sdl-config", "--libs"), "-lSDL_image -lSDL_ttf")
+end
 
 import mnit # for
 # import opengles1