diff options
author | lukefromdc <[email protected]> | 2023-08-23 18:31:17 -0400 |
---|---|---|
committer | raveit65 <[email protected]> | 2023-08-24 21:19:41 +0200 |
commit | 42eed3794f5098797e704fc1a68f17f205af7f15 (patch) | |
tree | d34071bdd1430f962c3310b9a23de37d6d480de7 /sensors-applet | |
parent | 50207d611f25070fe307c0b670886b293379e088 (diff) | |
download | mate-sensors-applet-42eed3794f5098797e704fc1a68f17f205af7f15.tar.bz2 mate-sensors-applet-42eed3794f5098797e704fc1a68f17f205af7f15.tar.xz |
Allow building in or out of process
Diffstat (limited to 'sensors-applet')
-rw-r--r-- | sensors-applet/Makefile.am | 24 | ||||
-rw-r--r-- | sensors-applet/main.c | 10 |
2 files changed, 27 insertions, 7 deletions
diff --git a/sensors-applet/Makefile.am b/sensors-applet/Makefile.am index d6021b1..426cc27 100644 --- a/sensors-applet/Makefile.am +++ b/sensors-applet/Makefile.am @@ -20,8 +20,6 @@ AM_CPPFLAGS = -DMATELOCALEDIR=\""$(datadir)/locale/"\" \ $(WARN_CFLAGS) mate_sensors_applet_libdir= $(pkglibdir) -mate_sensors_applet_lib_LTLIBRARIES=libmate_sensors_applet.la - LIBS = $(GLIB_LIBS) $(GTK_LIBS) $(MATE_LIBS) $(CAIRO_LIBS) $(LIBNOTIFY_LIBS) @@ -32,6 +30,8 @@ else libnotify_SRC = endif +if ENABLE_IN_PROCESS +mate_sensors_applet_lib_LTLIBRARIES=libmate-sensors-applet.la libmate_sensors_applet_la_CFLAGS = \ $(MATE_APPLETS4_CFLAGS) \ $(WARN_CFLAGS) \ @@ -65,6 +65,26 @@ libmate_sensors_applet_la_SOURCES = main.c \ sensors-applet-settings.c \ sensors-applet-settings.h \ $(libnotify_SRC) +else +libexec_PROGRAMS = mate-sensors-applet +mate_sensors_applet_SOURCES = main.c \ + about-dialog.c \ + about-dialog.h \ + active-sensor.c \ + active-sensor.h \ + prefs-dialog.c \ + prefs-dialog.h \ + sensor-config-dialog.c \ + sensor-config-dialog.h \ + sensors-applet.c \ + sensors-applet.h \ + sensors-applet-sensor.h \ + sensors-applet-plugins.c \ + sensors-applet-plugins.h \ + sensors-applet-settings.c \ + sensors-applet-settings.h \ + $(libnotify_SRC) +endif # install headers for plugins to use INST_H_FILES = sensors-applet-plugin.h sensors-applet-sensor.h diff --git a/sensors-applet/main.c b/sensors-applet/main.c index ce1ea6e..3d984ab 100644 --- a/sensors-applet/main.c +++ b/sensors-applet/main.c @@ -42,8 +42,8 @@ static gboolean sensors_applet_fill(MatePanelApplet *applet, return retval; } -MATE_PANEL_APPLET_IN_PROCESS_FACTORY ("SensorsAppletFactory", - PANEL_TYPE_APPLET, - "SensorsApplet", - sensors_applet_fill, - NULL); +PANEL_APPLET_FACTORY ("SensorsAppletFactory", + PANEL_TYPE_APPLET, + "SensorsApplet", + sensors_applet_fill, + NULL); |