From 84498251fab3fdbd4031478eea4dfe4eb8c0c28b Mon Sep 17 00:00:00 2001 From: lukefromdc Date: Sun, 11 Jun 2023 17:24:31 -0400 Subject: cpufreq: port to in-process for wayland compatablity --- cpufreq/src/Makefile.am | 78 ++++++++++++++++++++++++++++++++----------------- 1 file changed, 52 insertions(+), 26 deletions(-) (limited to 'cpufreq/src/Makefile.am') diff --git a/cpufreq/src/Makefile.am b/cpufreq/src/Makefile.am index 86b18674..8324fe9e 100644 --- a/cpufreq/src/Makefile.am +++ b/cpufreq/src/Makefile.am @@ -5,45 +5,69 @@ endif SUBDIRS = $(selector_SUBDIR) AM_CPPFLAGS = \ - -DCPUFREQ_RESOURCE_PATH=\""/org/mate/mate-applets/cpufreq/"\" \ $(MATE_APPLETS4_CFLAGS) -libexec_PROGRAMS = mate-cpufreq-applet +cpufreq_libdir= $(pkglibdir) +cpufreq_lib_LTLIBRARIES=libmatecpufreqapplet.la + +libmatecpufreqapplet_la_CPPFLAGS = \ + -I$(top_builddir) \ + -I$(top_srcdir) \ + -DGTK_BUILDERDIR=\""$(pkgdatadir)/builder"\" \ + -DCPUFREQ_RESOURCE_PATH=\""/org/mate/mate-applets/cpufreq/"\" \ + $(NULL) + +libmatecpufreqapplet_la_CFLAGS = \ + $(MATE_APPLETS4_CFLAGS) \ + $(GIO_CFLAGS) \ + $(WARN_CFLAGS) \ + $(AM_CFLAGS) \ + $(NULL) -BUILT_SOURCES = \ - cpufreq-resources.c cpufreq-resources.h +libmatecpufreqapplet_la_SOURCES = \ + cpufreq-applet.c \ + cpufreq-applet.h \ + cpufreq-utils.c \ + cpufreq-utils.h \ + cpufreq-prefs.c \ + cpufreq-prefs.h \ + cpufreq-selector.c \ + cpufreq-selector.h \ + cpufreq-popup.c \ + cpufreq-popup.h \ + cpufreq-monitor.c \ + cpufreq-monitor.h \ + cpufreq-monitor-factory.c \ + cpufreq-monitor-factory.h \ + cpufreq-resources.c \ + cpufreq-resources.h \ + $(NULL) -nodist_mate_cpufreq_applet_SOURCES = \ - $(BUILT_SOURCES) +libmatecpufreqapplet_la_LDFLAGS = \ + -module -avoid-version \ + $(WARN_LDFLAGS) \ + $(AM_LDFLAGS) \ + $(NULL) -mate_cpufreq_applet_SOURCES = \ - cpufreq-applet.c cpufreq-applet.h \ - cpufreq-utils.c cpufreq-utils.h \ - cpufreq-prefs.c cpufreq-prefs.h \ - cpufreq-selector.c cpufreq-selector.h \ - cpufreq-popup.c cpufreq-popup.h \ - cpufreq-monitor.c cpufreq-monitor.h \ - cpufreq-monitor-factory.c cpufreq-monitor-factory.h +libmatecpufreqapplet_la_LIBADD = \ + $(MATE_APPLETS4_LIBS) \ + $(LIBCPUFREQ_LIBS) \ + $(NULL) if HAVE_LIBCPUFREQ -mate_cpufreq_applet_SOURCES += \ +libmatecpufreqapplet_la_SOURCES += \ cpufreq-monitor-libcpufreq.c \ - cpufreq-monitor-libcpufreq.h + cpufreq-monitor-libcpufreq.h \ + $(NULL) else -mate_cpufreq_applet_SOURCES += \ +libmatecpufreqapplet_la_SOURCES += \ cpufreq-monitor-cpuinfo.c \ cpufreq-monitor-cpuinfo.h \ cpufreq-monitor-sysfs.c \ - cpufreq-monitor-sysfs.h + cpufreq-monitor-sysfs.h \ + $(NULL) endif -mate_cpufreq_applet_CFLAGS = \ - ${WARN_CFLAGS} - -mate_cpufreq_applet_LDADD = \ - $(MATE_APPLETS4_LIBS) \ - $(LIBCPUFREQ_LIBS) - cpufreq-resources.c: $(top_srcdir)/cpufreq/data/cpufreq-resources.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(top_srcdir)/cpufreq/data --generate-dependencies $(top_srcdir)/cpufreq/data/cpufreq-resources.gresource.xml) $(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(top_srcdir)/cpufreq/data --generate --c-name cpufreq $< @@ -51,6 +75,8 @@ cpufreq-resources.h: $(top_srcdir)/cpufreq/data/cpufreq-resources.gresource.xml $(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(top_srcdir)/cpufreq/data --generate --c-name cpufreq $< CLEANFILES = \ - $(BUILT_SOURCES) + cpufreq-resources.c \ + cpufreq-resources.h \ + $(NULL) -include $(top_srcdir)/git.mk -- cgit v1.2.1