[network-manager-openconnect/lr/libnm: 1/11] build: split the plugin into two halves



commit 5fc17506b023101cda49dc2c10f1c22d3ae85f9c
Author: Lubomir Rintel <lkundrak v3 sk>
Date:   Fri Jul 24 17:30:24 2015 +0200

    build: split the plugin into two halves
    
    They're both the same now. We'll later port the new one to libnm.

 properties/Makefile.am |   27 +++++++++++++++++++++++----
 1 files changed, 23 insertions(+), 4 deletions(-)
---
diff --git a/properties/Makefile.am b/properties/Makefile.am
index 885cb24..a5dcaf6 100644
--- a/properties/Makefile.am
+++ b/properties/Makefile.am
@@ -1,5 +1,5 @@
 plugindir = $(libdir)/NetworkManager
-plugin_LTLIBRARIES = libnm-openconnect-properties.la
+plugin_LTLIBRARIES = libnm-openconnect-properties.la libnm-openconnect-properties-old.la
 
 libnm_openconnect_properties_la_SOURCES = \
        auth-helpers.c \
@@ -7,15 +7,17 @@ libnm_openconnect_properties_la_SOURCES = \
        nm-openconnect.c \
        nm-openconnect.h
 
+libnm_openconnect_properties_old_la_SOURCES = \
+       $(libnm_openconnect_properties_la_SOURCES)
+
 uidir = $(datadir)/gnome-vpn-properties/openconnect
 ui_DATA = nm-openconnect-dialog.ui
 
-libnm_openconnect_properties_la_CFLAGS =                \
+common_CFLAGS =                                         \
        $(GLIB_CFLAGS)                                  \
        $(GTK_CFLAGS)                                   \
-       $(NM_CFLAGS)                                    \
        $(OPENCONNECT_CFLAGS)                           \
-       -I$(top_srcdir)/src                             \
+       -I$(top_srcdir)/src                             \
        -DICONDIR=\""$(datadir)/pixmaps"\"              \
        -DUIDIR=\""$(uidir)"\"                          \
        -DG_DISABLE_DEPRECATED                          \
@@ -23,14 +25,31 @@ libnm_openconnect_properties_la_CFLAGS =                \
        -DLOCALEDIR=\"$(datadir)/locale\"               \
        -DVERSION=\"$(VERSION)\"
 
+libnm_openconnect_properties_la_CFLAGS =                \
+       $(common_CFLAGS)                                \
+       $(NM_CFLAGS)
+
+libnm_openconnect_properties_old_la_CFLAGS =            \
+       -DNM_OPENCONNECT_OLD                            \
+       $(common_CFLAGS)                                \
+       $(NM_CFLAGS)
+
 libnm_openconnect_properties_la_LIBADD = \
        $(GTK_LIBS) \
        $(NM_LIBS) \
        $(OPENCONNECT_LIBS)
 
+libnm_openconnect_properties_old_la_LIBADD = \
+       $(GTK_LIBS) \
+       $(NM_LIBS) \
+       $(OPENCONNECT_LIBS)
+
 libnm_openconnect_properties_la_LDFLAGS = \
        -avoid-version
 
+libnm_openconnect_properties_old_la_LDFLAGS = \
+       $(libnm_openconnect_properties_la_LDFLAGS)
+
 CLEANFILES = *.bak *~
 
 EXTRA_DIST =                            \


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]