[gimp] Replace #include .c -> #include .h glib_compile_resources generate .c as sources and .h as headers
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Replace #include .c -> #include .h glib_compile_resources generate .c as sources and .h as headers
- Date: Mon, 18 Jun 2018 10:24:12 +0000 (UTC)
commit 38295dcb822e0a74bfe48002434a3694f122720f
Author: Salamandar <felix piedallu me>
Date: Fri May 25 15:45:47 2018 +0200
Replace #include .c -> #include .h
glib_compile_resources generate .c as sources and .h as headers
plug-ins/pagecurl/Makefile.am | 9 ++++++++-
plug-ins/pagecurl/pagecurl.c | 2 +-
2 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/plug-ins/pagecurl/Makefile.am b/plug-ins/pagecurl/Makefile.am
index 90e7fa4de2..953b69998e 100644
--- a/plug-ins/pagecurl/Makefile.am
+++ b/plug-ins/pagecurl/Makefile.am
@@ -27,7 +27,9 @@ libexec_PROGRAMS = pagecurl
pagecurl_SOURCES = pagecurl.c
-BUILT_SOURCES = pagecurl-icons.c
+BUILT_SOURCES = \
+ pagecurl-icons.c \
+ pagecurl-icons.h
AM_CPPFLAGS = \
-I$(top_srcdir) \
@@ -80,3 +82,8 @@ pagecurl-icons.c: pagecurl-icons.gresource.xml
$(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) \
--sourcedir=$(srcdir) --generate-source \
--target=$@ pagecurl-icons.gresource.xml
+
+pagecurl-icons.h: pagecurl-icons.gresource.xml
+ $(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) \
+ --sourcedir=$(srcdir) --generate-header \
+ --target=$@ pagecurl-icons.gresource.xml
diff --git a/plug-ins/pagecurl/pagecurl.c b/plug-ins/pagecurl/pagecurl.c
index b33c5e4472..f2e9dde41b 100644
--- a/plug-ins/pagecurl/pagecurl.c
+++ b/plug-ins/pagecurl/pagecurl.c
@@ -47,7 +47,7 @@
#include "libgimp/stdplugins-intl.h"
-#include "pagecurl-icons.c"
+#include "pagecurl-icons.h"
#define PLUG_IN_PROC "plug-in-pagecurl"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]