summaryrefslogtreecommitdiffstats
path: root/app/gui/Makefile.am
blob: 579cd63bc0b58434dadf51596f0412dbf3d6887d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
## Process this file with automake to produce Makefile.in

if PLATFORM_OSX
xobjective_c = "-xobjective-c"
xobjective_cxx = "-xobjective-c++"
xnone = "-xnone"
endif

AM_CPPFLAGS = \
	-DG_LOG_DOMAIN=\"Gimp-GUI\"		\
	-DGIMP_COMMAND=\"@GIMP_COMMAND@\"	\
	-I$(top_builddir)			\
	-I$(top_srcdir)				\
	-I$(top_builddir)/app			\
	-I$(top_srcdir)/app			\
	$(GIO_UNIX_CFLAGS)			\
	$(GEGL_CFLAGS)				\
	$(GTK_CFLAGS)				\
	$(GTK_MAC_INTEGRATION_CFLAGS)		\
	-I$(includedir)

AM_CFLAGS = \
	$(xobjective_c)

AM_CXXFLAGS = \
	$(xobjective_cxx)

AM_LDFLAGS = \
	$(xnone)

noinst_LIBRARIES = libappgui.a

libappgui_a_sources = \
	gimpdbusservice.c	\
	gimpdbusservice.h	\
	gimpuiconfigurer.c	\
	gimpuiconfigurer.h	\
	gui.c			\
	gui.h			\
	gui-message.c		\
	gui-message.h		\
	gui-unique.c		\
	gui-unique.h		\
	gui-vtable.c		\
	gui-vtable.h		\
	gui-types.h		\
	icon-themes.c		\
	icon-themes.h		\
	session.c		\
	session.h		\
	splash.c		\
	splash.h		\
	themes.c		\
	themes.h

libappgui_a_built_sources = \
	gimpdbusservice-generated.c	\
	gimpdbusservice-generated.h

libappgui_a_SOURCES = $(libappgui_a_built_sources) $(libappgui_a_sources)

BUILT_SOURCES = $(libappgui_a_built_sources)

EXTRA_DIST = \
	dbus-service.xml

#
# rules to generate built sources
#
# setup autogeneration dependencies
gen_sources = $(libappgui_a_built_sources)
CLEANFILES = $(gen_sources)

$(srcdir)/gimpdbusservice.c: $(libappgui_a_built_sources)

$(libappgui_a_built_sources): $(srcdir)/dbus-service.xml
	$(GDBUS_CODEGEN) --interface-prefix org.gimp.GIMP. \
			 --generate-c-code gimpdbusservice-generated \
			 --c-namespace GimpDBusService \
			 $(srcdir)/dbus-service.xml