diff options
| author | Victor Kareh <[email protected]> | 2025-04-04 20:40:55 -0400 |
|---|---|---|
| committer | Victor Kareh <[email protected]> | 2026-01-15 07:40:57 -0500 |
| commit | 95ffa80ec2d6f030d3501eec6ebb687a06fda0ec (patch) | |
| tree | cbd6bc0f0e1198158b71c8d9e89138f6edd27b6c /applets/power-profiles/Makefile.am | |
| parent | c78329d2219bab2bd50db942292e9b1ebb2689be (diff) | |
| download | mate-power-manager-95ffa80ec2d6f030d3501eec6ebb687a06fda0ec.tar.bz2 mate-power-manager-95ffa80ec2d6f030d3501eec6ebb687a06fda0ec.tar.xz | |
applets: Add new power-profiles applet
This applet allows the user to set the active power profile
(power-saver, balanced, performance). It's compatible with the
power-profiles-daemon and tuned, which are the same DBUS interfaces that
GNOME relies on for power profiles.
Diffstat (limited to 'applets/power-profiles/Makefile.am')
| -rw-r--r-- | applets/power-profiles/Makefile.am | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/applets/power-profiles/Makefile.am b/applets/power-profiles/Makefile.am new file mode 100644 index 0000000..40fc70d --- /dev/null +++ b/applets/power-profiles/Makefile.am @@ -0,0 +1,69 @@ +NULL = + +AM_CPPFLAGS = \ + -I. -I$(srcdir) \ + $(GLIB_CFLAGS) \ + $(DBUS_CFLAGS) \ + $(CAIRO_CFLAGS) \ + $(PANEL_CFLAGS) \ + $(LIBNOTIFY_CFLAGS) \ + -DBINDIR=\"$(bindir)\" \ + -DMATELOCALEDIR=\""$(datadir)/locale"\" \ + -DDATADIR=\"$(datadir)\" \ + -DPREFIX=\""$(prefix)"\" \ + -DSYSCONFDIR=\""$(sysconfdir)"\" \ + -DLIBDIR=\""$(libdir)"\" \ + -DVERSION="\"$(VERSION)\"" \ + -DGPM_ICONS_DATA=\"$(pkgdatadir)/icons\" \ + -DPOWER_PROFILES_MENU_UI_DIR=\""$(uidir)"\" \ + -DEGG_LOG_FILE=\""~/mate-power-manager.log"\" \ + -DEGG_VERBOSE="\"GPM_VERBOSE\"" \ + -DEGG_LOGGING="\"GPM_LOGGING\"" \ + -DEGG_CONSOLE="\"GPM_CONSOLE\"" \ + $(DISABLE_DEPRECATED) \ + $(WARN_CFLAGS) \ + $(NULL) + +libexec_PROGRAMS=mate-power-profiles-applet + +mate_power_profiles_applet_SOURCES = \ + power-profiles-applet.c \ + gpm-common.c \ + gpm-common.h + +mate_power_profiles_applet_LDADD = \ + $(DBUS_LIBS) \ + $(CAIRO_LIBS) \ + $(PANEL_LIBS) + +appletdir = $(datadir)/mate-panel/applets +applet_in_files = org.mate.PowerProfilesApplet.mate-panel-applet.desktop.in +applet_DATA = $(applet_in_files:.mate-panel-applet.desktop.in=.mate-panel-applet) + +$(applet_DATA): $(applet_in_files) + $(AM_V_GEN) $(MSGFMT) --desktop --keyword=Name --keyword=Description --template $< -d $(top_srcdir)/po -o $@ + +$(applet_in_files): $(applet_in_files).in + $(AM_V_GEN) sed \ + -e "s|\@LIBEXECDIR\@|$(libexecdir)|" \ + -e "s|\@VERSION\@|$(PACKAGE_VERSION)|" \ + $< > $@ + +servicedir = $(datadir)/dbus-1/services +service_in_files = org.mate.panel.applet.PowerProfilesAppletFactory.service.in +service_DATA = $(service_in_files:.service.in=.service) + +org.mate.panel.applet.PowerProfilesAppletFactory.service: $(service_in_files) + $(AM_V_GEN)sed \ + -e "s|\@LIBEXECDIR\@|$(libexecdir)|" \ + $< > $@ + +uidir = $(datadir)/mate-power-manager/ui +ui_DATA = power-profiles-applet-menu.xml + +EXTRA_DIST = $(applet_in_files).in $(ui_DATA) $(service_in_files) + +DISTCLEANFILES = \ + $(applet_DATA) $(applet_DATA).in $(service_DATA) + +-include $(top_srcdir)/git.mk |
