Commit 34453ba2 authored by Canek Peláez's avatar Canek Peláez
Browse files

build-sys: Add preference dialog class and schema compilation.

parent a2a09e74
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@ bin_PROGRAMS = src/exampleapp

src_exampleapp_SOURCES =			\
	src/application.vala			\
	src/application-preferences.vala	\
	src/application-window.vala		\
	src/main.vala				\
	src/resources.c				\
@@ -27,6 +28,7 @@ src_exampleapp_LDADD = \
gresource_file = $(top_srcdir)/data/exampleapp.gresource.xml
resource_files = 				\
	$(top_srcdir)/data/app-menu.ui		\
	$(top_srcdir)/data/prefs.ui		\
	$(top_srcdir)/data/window.ui		\
	$(NULL)

@@ -36,6 +38,17 @@ src/resources.c: $(gresource_file) $(resource_files)
		--sourcedir=$(top_srcdir)/data	\
		--generate-source $<

schema_file = $(top_srcdir)/data/org.gtk.exampleapp.gschema.xml

gsettings_SCHEMAS =				\
	$(schema_file)				\
	$(NULL)

@GSETTINGS_RULES@

data/gschemas.compiled: $(schema_file)
	$(GLIB_COMPILE_SCHEMAS) $(top_srcdir)/data

data_desktopdir = $(datadir)/applications
data_desktop_DATA = data/exampleapp.desktop