summaryrefslogtreecommitdiff
path: root/src/Makefile.am
diff options
context:
space:
mode:
authorrbuj <[email protected]>2019-08-17 12:20:42 +0200
committerVictor Kareh <[email protected]>2019-08-20 13:50:15 -0400
commit7214cf362179010b6c1e9f9cc2186e7ea7dd590c (patch)
treea96c5d0d5d44e753e958dbb7acc6314dd7e68760 /src/Makefile.am
parent19b7297855ef254c788affc1ec1214399f00e9e8 (diff)
downloadmate-power-manager-7214cf362179010b6c1e9f9cc2186e7ea7dd590c.tar.bz2
mate-power-manager-7214cf362179010b6c1e9f9cc2186e7ea7dd590c.tar.xz
Use gresources for gpm-prefs.ui and gpm-statistics.ui
Diffstat (limited to 'src/Makefile.am')
-rw-r--r--src/Makefile.am34
1 files changed, 28 insertions, 6 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index b50bf93..e17e2dd 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -22,16 +22,16 @@ AM_CPPFLAGS = \
-DI_KNOW_THE_DEVICEKIT_POWER_API_IS_SUBJECT_TO_CHANGE \
$(UPOWER_CFLAGS) \
-DBINDIR=\"$(bindir)\" \
- -DSBINDIR=\"$(sbindir)\" \
- -DMATELOCALEDIR=\""$(datadir)/locale"\" \
+ -DSBINDIR=\"$(sbindir)\" \
+ -DMATELOCALEDIR=\""$(datadir)/locale"\" \
-DDATADIR=\"$(datadir)\" \
-DPREFIX=\""$(prefix)"\" \
-DSYSCONFDIR=\""$(sysconfdir)"\" \
-DLIBDIR=\""$(libdir)"\" \
-DVERSION="\"$(VERSION)\"" \
- -DGPM_DATA=\"$(pkgdatadir)\" \
+ -DGPM_ICONS_DATA=\"$(pkgdatadir)/icons\" \
-DGTKBUILDERDIR=\"$(pkgdatadir)\" \
- -DUP_DISABLE_DEPRECATED \
+ -DUP_DISABLE_DEPRECATED \
-DEGG_LOG_FILE=\""/tmp/gpm.log"\" \
-DEGG_VERBOSE="\"GPM_VERBOSE\"" \
-DEGG_LOGGING="\"GPM_LOGGING\"" \
@@ -94,7 +94,15 @@ mate_power_backlight_helper_CFLAGS = \
$(WARNINGFLAGS) \
$(NULL)
-mate_power_statistics_SOURCES = \
+mate-power-statistics-resources.h mate-power-statistics-resources.c: $(srcdir)/../data/org.mate.power-manager.statistics.gresource.xml Makefile $(shell $(GLIB_COMPILE_RESOURCES) --generate-dependencies --sourcedir $(srcdir)/../data $(srcdir)/../data/org.mate.power-manager.statistics.gresource.xml)
+ $(AM_V_GEN) XMLLINT=$(XMLLINT) $(GLIB_COMPILE_RESOURCES) --target $@ --sourcedir $(srcdir)/../data --generate --c-name statistics $<
+
+nodist_mate_power_statistics_SOURCES = \
+ mate-power-statistics-resources.h \
+ mate-power-statistics-resources.c \
+ $(NULL)
+
+mate_power_statistics_SOURCES = \
gpm-statistics.c \
gpm-point-obj.c \
gpm-point-obj.h \
@@ -115,6 +123,14 @@ mate_power_statistics_CFLAGS = \
$(WARNINGFLAGS) \
$(NULL)
+mate-power-preferences-resources.h mate-power-preferences-resources.c: $(srcdir)/../data/org.mate.power-manager.preferences.gresource.xml Makefile $(shell $(GLIB_COMPILE_RESOURCES) --generate-dependencies --sourcedir $(srcdir)/../data $(srcdir)/../data/org.mate.power-manager.preferences.gresource.xml)
+ $(AM_V_GEN) XMLLINT=$(XMLLINT) $(GLIB_COMPILE_RESOURCES) --target $@ --sourcedir $(srcdir)/../data --generate --c-name preferences $<
+
+nodist_mate_power_preferences_SOURCES = \
+ mate-power-preferences-resources.h \
+ mate-power-preferences-resources.c \
+ $(NULL)
+
mate_power_preferences_SOURCES = \
gpm-prefs.c \
gpm-prefs-core.h \
@@ -294,7 +310,13 @@ clean-local:
rm -f *~
rm -f gpm-marshal.c gpm-marshal.h
-CLEANFILES = $(BUILT_SOURCES)
+CLEANFILES = \
+ $(BUILT_SOURCES) \
+ mate-power-preferences-resources.h \
+ mate-power-preferences-resources.c \
+ mate-power-statistics-resources.h \
+ mate-power-statistics-resources.c \
+ $(NULL)
if HAVE_TESTS
TESTS = mate-power-self-test