summaryrefslogtreecommitdiff
path: root/search-provider/Makefile.am
blob: 2314d66ec80740272f897c7207b71bb86d2719e0 (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
dbus_shell_search_provider_built_sources =	\
	cc-shell-search-provider-generated.c	\
	cc-shell-search-provider-generated.h

# The upstream for the DBus interface definition is
# at http://git.gnome.org/browse/gnome-shell/plain/data/org.gnome.ShellSearchProvider2.xml
$(dbus_shell_search_provider_built_sources) : Makefile.am $(srcdir)/org.gnome.ShellSearchProvider2.xml
	$(AM_V_GEN)gdbus-codegen					\
		--interface-prefix org.gnome.				\
		--c-namespace Cc					\
		--generate-c-code cc-shell-search-provider-generated	\
		$(srcdir)/org.gnome.ShellSearchProvider2.xml		\
		$(NULL)

AM_CPPFLAGS =					\
	-DGNOMELOCALEDIR="\"$(datadir)/locale\""\
	-DCC_PANEL_LOADER_NO_GTYPES		\
	-I$(top_srcdir)				\
	$(SHELL_CFLAGS)				\
	-I$(top_srcdir)/panels/common/		\
	-I$(top_srcdir)/libgd

libexec_PROGRAMS = gnome-control-center-search-provider

BUILT_SOURCES =	$(dbus_shell_search_provider_built_sources)

gnome_control_center_search_provider_SOURCES =	\
	$(BUILT_SOURCES)			\
	$(top_srcdir)/shell/cc-panel-loader.c	\
	$(top_srcdir)/shell/cc-panel-loader.h	\
	control-center-search-provider.c	\
	control-center-search-provider.h	\
	cc-search-provider.c			\
	cc-search-provider.h

gnome_control_center_search_provider_LDADD =	\
	$(top_builddir)/panels/common/liblanguage.la	\
	$(top_builddir)/shell/libshell.la	\
	$(SHELL_LIBS)

CLEANFILES = $(BUILT_SOURCES) $(service_DATA)

servicedir = $(datadir)/dbus-1/services
service_DATA = $(service_in_files:.service.in=.service)
service_in_files = 				\
	org.gnome.ControlCenter.SearchProvider.service.in

org.gnome.ControlCenter.SearchProvider.service: org.gnome.ControlCenter.SearchProvider.service.in Makefile
	$(AM_V_GEN) sed -e "s|\@libexecdir\@|$(libexecdir)|" $< > $@

EXTRA_DIST = $(service_in_files) org.gnome.ShellSearchProvider2.xml

searchproviderdir = $(datadir)/gnome-shell/search-providers
dist_searchprovider_DATA = gnome-control-center-search-provider.ini

-include $(top_srcdir)/git.mk