summaryrefslogtreecommitdiff
path: root/modules/inspector/Makefile.am
blob: 07b672b35995b4b5e62b04997b14915ee8bfbb11 (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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
moduledir = $(libdir)/gtk-3.0/modules

module_LTLIBRARIES = libgtkinspector.la

resource_files = $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir) --generate-dependencies $(srcdir)/inspector.gresource.xml)
resources.h: inspector.gresource.xml
	$(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) $(srcdir)/inspector.gresource.xml \
		--target=$@ --sourcedir=$(srcdir) --c-name gtk_inspector --generate-header --manual-register
resources.c: inspector.gresource.xml $(resource_files) $(template_headers)
	$(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) $(srcdir)/inspector.gresource.xml \
		--target=$@ --sourcedir=$(srcdir) --c-name gtk_inspector --generate-source --manual-register

BUILT_SOURCES = \
	resources.h \
	resources.c

libgtkinspector_la_SOURCES = \
	resources.h \
	resources.c \
	inspect-button.c \
	module.c \
	prop-list.h \
	prop-list.c \
	property-cell-renderer.h \
	property-cell-renderer.c \
	python-hooks.h \
	python-hooks.c \
	python-shell.h \
	python-shell.c \
	widget-tree.h \
	widget-tree.c \
	window.h \
	window.c \
	button-path.h \
	button-path.c \
	classes-list.h \
	classes-list.c \
	css-editor.h \
	css-editor.c \
	object-hierarchy.h \
	object-hierarchy.c \
	themes.h \
	themes.c \
	signals-list.h \
	signals-list.c \
	data-list.h \
	data-list.c \
	visual.h \
	visual.c

libgtkinspector_la_CPPFLAGS = \
	-I$(top_srcdir) 		\
	-I$(top_srcdir)/gtk 		\
	-I$(top_builddir)/gtk 		\
	-I$(top_srcdir)/gdk 		\
	-I$(top_builddir)/gdk 		\
	-DGTK_DATADIR=\"$(datadir)\"	\
	-DGTK_COMPILATION 		\
	$(GTK_DEP_CFLAGS)		\
	$(GTK_DEBUG_FLAGS)

if PLATFORM_WIN32
no_undefined = -no-undefined
endif

libgtkinspector_la_LDFLAGS = -avoid-version -module $(no_undefined)

libgtkinspector_la_LIBADD = \
	$(top_builddir)/gtk/libgtk-3.la \
	$(GTK_DEP_LIBS)

templates = \
	button-path.ui 		\
	classes-list.ui 	\
	css-editor.ui 		\
	data-list.ui 		\
	object-hierarchy.ui 	\
	prop-list.ui 		\
	signals-list.ui		\
	themes.ui 		\
	visual.ui		\
	widget-tree.ui 		\
	window.ui

template_headers = $(templates:.ui=.ui.h)

extract_strings = $(top_builddir)/gtk/extract-strings$(BUILD_EXEEXT)

%.ui.h: %.ui $(extract_strings)
	$(AM_V_GEN) $(extract_strings) $< > $@

distclean-local:
	if test $(srcdir) != .; then \
	  rm -f $(template_headers); \
	fi

EXTRA_DIST = \
	inspector.gresource.xml \
	$(resource_files) \
	$(templates)

-include $(top_srcdir)/git.mk