[network-manager-openvpn/lr/libnm-3: 1/10] build: split the plugin into two halves



commit d06c373a9b82958150306cd1a0cc7417872d61e1
Author: Lubomir Rintel <lkundrak v3 sk>
Date:   Fri Jul 24 16:34:04 2015 +0200

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

 common/Makefile.am     |   15 ++++++++++++-
 properties/Makefile.am |   51 ++++++++++++++++++++++++++++++++++-------------
 2 files changed, 50 insertions(+), 16 deletions(-)
---
diff --git a/common/Makefile.am b/common/Makefile.am
index 35aada5..8b6f69d 100644
--- a/common/Makefile.am
+++ b/common/Makefile.am
@@ -1,14 +1,25 @@
-noinst_LTLIBRARIES=libnm-openvpn-common.la
+noinst_LTLIBRARIES=libnm-vpn-plugin-openvpn-common.la libnm-openvpn-common.la
+
+libnm_vpn_plugin_openvpn_common_la_CPPFLAGS = \
+       $(NM_CFLAGS) \
+        -I$(top_srcdir)/src/
 
 libnm_openvpn_common_la_CPPFLAGS = \
+       -DNM_OPENVPN_OLD \
        $(NM_CFLAGS) \
         -I$(top_srcdir)/src/
 
-libnm_openvpn_common_la_SOURCES= \
+libnm_vpn_plugin_openvpn_common_la_SOURCES= \
        utils.c \
        utils.h \
        nm-glib-compat.h
 
+libnm_openvpn_common_la_SOURCES = \
+       $(libnm_vpn_plugin_openvpn_common_la_SOURCES)
+
+libnm_vpn_plugin_openvpn_common_la_LIBADD = \
+       $(NM_LIBS)
+
 libnm_openvpn_common_la_LIBADD = \
        $(NM_LIBS)
 
diff --git a/properties/Makefile.am b/properties/Makefile.am
index a8d9395..d727ec8 100644
--- a/properties/Makefile.am
+++ b/properties/Makefile.am
@@ -1,20 +1,23 @@
 SUBDIRS = . tests
 
 plugindir = $(libdir)/NetworkManager
-plugin_LTLIBRARIES = libnm-openvpn-properties.la
+plugin_LTLIBRARIES = libnm-vpn-plugin-openvpn.la libnm-openvpn-properties.la
 
-libnm_openvpn_properties_la_SOURCES = \
-       nm-openvpn.c \
-       nm-openvpn.h \
-       auth-helpers.c \
-       auth-helpers.h \
-       import-export.c \
-       import-export.h
+libnm_vpn_plugin_openvpn_la_SOURCES =                   \
+        nm-openvpn.c                                    \
+        nm-openvpn.h                                    \
+        auth-helpers.c                                  \
+        auth-helpers.h                                  \
+        import-export.c                                 \
+        import-export.h
+
+libnm_openvpn_properties_la_SOURCES =               \
+        $(libnm_vpn_plugin_openvpn_la_SOURCES)
 
 uidir = $(datadir)/gnome-vpn-properties/openvpn
 ui_DATA = nm-openvpn-dialog.ui
 
-libnm_openvpn_properties_la_CFLAGS =                    \
+common_CFLAGS =                                         \
         $(GLIB_CFLAGS)                                  \
         $(GTK_CFLAGS)                                   \
         $(NM_CFLAGS)                                    \
@@ -25,15 +28,35 @@ libnm_openvpn_properties_la_CFLAGS =                    \
         -DLOCALEDIR=\"$(datadir)/locale\"               \
         -DVERSION=\"$(VERSION)\"
 
-libnm_openvpn_properties_la_LIBADD = \
-        $(GTK_LIBS) \
-        $(NM_LIBS) \
-        $(NMGTK_LIBS) \
+libnm_vpn_plugin_openvpn_la_CFLAGS =                    \
+        $(common_CFLAGS)                                \
+        $(NM_CFLAGS)                                    \
+        $(NMGTK_CFLAGS)
+
+libnm_openvpn_properties_la_CFLAGS =                \
+        -DNM_OPENVPN_OLD                                \
+        $(common_CFLAGS)                                \
+        $(NM_CFLAGS)                                    \
+        $(NMGTK_CFLAGS)
+
+libnm_vpn_plugin_openvpn_la_LIBADD =                    \
+        $(GTK_LIBS)                                     \
+        $(NM_LIBS)                                      \
+        $(NMGTK_LIBS)                                   \
+        $(top_builddir)/common/libnm-vpn-plugin-openvpn-common.la
+
+libnm_openvpn_properties_la_LIBADD =                \
+        $(GTK_LIBS)                                     \
+        $(NM_LIBS)                                      \
+        $(NMGTK_LIBS)                                   \
         $(top_builddir)/common/libnm-openvpn-common.la
 
-libnm_openvpn_properties_la_LDFLAGS =   \
+libnm_vpn_plugin_openvpn_la_LDFLAGS =                   \
         -avoid-version
 
+libnm_openvpn_properties_la_LDFLAGS =               \
+        $(libnm_vpn_plugin_openvpn_la_LDFLAGS)
+
 CLEANFILES = *.bak *~
 
 EXTRA_DIST =                            \


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