[retro-gtk] build: Fix location of retro-gtk.h and retro-gobject.h



commit b1c68f651bd20dcb59bbed8d33009519c6b1f099
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Tue Aug 2 12:35:19 2016 +0200

    build: Fix location of retro-gtk.h and retro-gobject.h
    
    Set $outdir rather than $srcdir as the location of the compiled
    retro-gtk.h and retro-gobject.h files.
    
    This fixes a compilation error.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=769415

 retro-gobject/Makefile.am |    2 +-
 retro-gtk/Makefile.am     |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/retro-gobject/Makefile.am b/retro-gobject/Makefile.am
index dc45331..21e81e2 100644
--- a/retro-gobject/Makefile.am
+++ b/retro-gobject/Makefile.am
@@ -105,7 +105,7 @@ retro_gobjectinclude_HEADERS = \
        $(NULL)
 
 # Add unstable API guard
-$(srcdir)/retro-gobject.h:
+$(outdir)/retro-gobject.h:
        sed -i "s/#define __RETRO_GOBJECT_H__/#define __RETRO_GOBJECT_H__\n\n#ifndef 
RETRO_GOBJECT_USE_UNSTABLE_API\n#error    Retro is unstable API. You must define 
RETRO_GOBJECT_USE_UNSTABLE_API before including retro-gobject.h\n#endif/" $@
 
 # Introspection
diff --git a/retro-gtk/Makefile.am b/retro-gtk/Makefile.am
index a7d5e75..62d1ad6 100644
--- a/retro-gtk/Makefile.am
+++ b/retro-gtk/Makefile.am
@@ -80,7 +80,7 @@ retro_gtkinclude_HEADERS = \
        $(NULL)
 
 # Add unstable API guard
-$(srcdir)/retro-gtk.h:
+$(outdir)/retro-gtk.h:
        sed -i "s/#define __RETRO_GTK_H__/#define __RETRO_GTK_H__\n\n#ifndef 
RETRO_GTK_USE_UNSTABLE_API\n#error    RetroGtk is unstable API. You must define RETRO_GTK_USE_UNSTABLE_API 
before including retro-gtk.h\n#endif/" $@
 
 # Introspection


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