diff options
author | Matt Spaulding <[email protected]> | 2016-07-25 17:52:31 -0700 |
---|---|---|
committer | monsta <[email protected]> | 2016-08-01 15:52:52 +0300 |
commit | 69be34ae5e905b2db1f44f84259133d8914f675f (patch) | |
tree | f7eb81f0899b6639a7f99353c078273798bcfdd2 /src/Makefile.am | |
parent | 1d4c6cef6f3caf9e091625ce674c31019478dd22 (diff) | |
download | mate-power-manager-69be34ae5e905b2db1f44f84259133d8914f675f.tar.bz2 mate-power-manager-69be34ae5e905b2db1f44f84259133d8914f675f.tar.xz |
Port from libunique to GtkApplication
Diffstat (limited to 'src/Makefile.am')
-rw-r--r-- | src/Makefile.am | 31 |
1 files changed, 22 insertions, 9 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index b1d440f..9ab17c5 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -15,7 +15,6 @@ AM_CPPFLAGS = \ $(DBUS_CFLAGS) \ $(MATE_CFLAGS) \ $(KEYRING_CFLAGS) \ - $(UNIQUE_CFLAGS) \ $(X11_CFLAGS) \ $(LIBNOTIFY_CFLAGS) \ $(CANBERRA_CFLAGS) \ @@ -38,8 +37,13 @@ AM_CPPFLAGS = \ -DEGG_LOGGING="\"GPM_LOGGING\"" \ -DEGG_CONSOLE="\"GPM_CONSOLE\"" \ -I$(top_srcdir) \ - $(DISABLE_DEPRECATED) \ - $(NULL) + $(DISABLE_DEPRECATED) + +if !GTK3 +AM_CPPFLAGS += $(UNIQUE_CFLAGS) +endif + +AM_CPPFLAGS += $(NULL) bin_PROGRAMS = \ mate-power-manager \ @@ -62,8 +66,6 @@ libgpmshared_a_SOURCES = \ egg-color.h \ egg-debug.h \ egg-debug.c \ - egg-unique.h \ - egg-unique.c \ egg-precision.h \ egg-precision.c \ egg-array-float.c \ @@ -81,8 +83,13 @@ libgpmshared_a_SOURCES = \ gpm-marshal.h \ gpm-marshal.c \ gpm-upower.c \ - gpm-upower.h \ - $(NULL) + gpm-upower.h + +if !GTK3 +libgpmshared_a_SOURCES += egg-unique.h egg-unique.c +endif + +libgpmshared_a_SOURCES += $(NULL) mate_power_backlight_helper_SOURCES = \ gpm-backlight-helper.c \ @@ -111,10 +118,13 @@ mate_power_statistics_LDADD = \ $(X11_LIBS) \ $(UPOWER_LIBS) \ $(MATE_LIBS) \ - $(UNIQUE_LIBS) \ $(DBUS_LIBS) \ -lm +if !GTK3 +mate_power_statistics_LDADD += $(UNIQUE_LIBS) +endif + mate_power_statistics_CFLAGS = \ $(WARNINGFLAGS) \ $(NULL) @@ -131,11 +141,14 @@ mate_power_preferences_LDADD = \ $(X11_LIBS) \ $(MATE_LIBS) \ $(DBUS_LIBS) \ - $(UNIQUE_LIBS) \ $(GPM_EXTRA_LIBS) \ $(UPOWER_LIBS) \ -lm +if !GTK3 +mate_power_preferences_LDADD += $(UNIQUE_LIBS) +endif + mate_power_preferences_CFLAGS = \ $(WARNINGFLAGS) \ $(NULL) |