[retro-gtk/wip/aplazas/0.13: 4/22] build: Build the VAPI from GIR



commit 0b4cb153462ac1be9636e079dfbf24a25448a60e
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Tue Sep 5 08:52:28 2017 +0200

    build: Build the VAPI from GIR
    
    This helps porting to C.

 retro-gtk/Makefile.am |   15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)
---
diff --git a/retro-gtk/Makefile.am b/retro-gtk/Makefile.am
index e3d9305..8e4da69 100644
--- a/retro-gtk/Makefile.am
+++ b/retro-gtk/Makefile.am
@@ -96,7 +96,6 @@ libretro_gtk_la_VALAFLAGS = \
        --thread \
        --target-glib 2.32 \
        --library retro-gtk-0.12 \
-       --vapi retro-gtk-0.12.vapi \
        -H retro-gtk-vala.h \
        -h retro-gtk-internal.h \
        -X -fPIC -X -shared \
@@ -141,6 +140,20 @@ Retro_0_12_gir_LIBS = libretro-gtk.la
 Retro_0_12_gir_FILES = $(introspection_sources)
 Retro_0_12_gir_EXPORT_PACKAGES = retro-gtk-0.12
 
+retro-gtk-0.12.vapi: Retro-0.12.gir
+       vapigen \
+               --library retro-gtk-0.12 \
+               --pkg cairo \
+               --pkg gio-2.0  \
+               --pkg glib-2.0 \
+               --pkg gmodule-2.0 \
+               --pkg gobject-2.0 \
+               --pkg gtk+-3.0 \
+               --pkg libpulse \
+               --pkg libpulse-simple \
+               $< \
+               $(NULL)
+
 CLEANFILES = $(gir_DATA) $(typelib_DATA)
 
 pkgconfigdir = $(libdir)/pkgconfig


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]