lib/sdl & opengles1: fix pkgconfig usage
authorAlexis Laferrière <alexis.laf@xymus.net>
Fri, 4 Apr 2014 17:41:09 +0000 (13:41 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Fri, 4 Apr 2014 19:31:45 +0000 (15:31 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

lib/mnit/opengles1.nit
lib/mnit_linux/linux_opengles1.nit
lib/sdl.nit

index af44be9..1f081d6 100644 (file)
@@ -15,7 +15,7 @@
 # limitations under the License.
 
 # OpenGL ES1 general support (most of it)
-module opengles1
+module opengles1 is pkgconfig("glesv1_cm", "x11", "egl")
 
 import mnit_display
 
index 00a037f..00a1175 100644 (file)
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-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
+module linux_opengles1
 
 import mnit # for
 # import opengles1
index 550e185..0ac97b4 100644 (file)
@@ -17,7 +17,7 @@
 # SDL display support (used in Linux for windows and inputes only)
 module sdl is
        c_compiler_option(exec("sdl-config", "--cflags"))
-       c_linker_option(exec("sdl-config", "--libs"), "-lSDL_ttf")
+       c_linker_option(exec("sdl-config", "--libs"), "-lSDL_image -lSDL_ttf")
 end
 
 import mnit_display