icera: setup as loadable 'shared' utils
This commit is contained in:
+7
-8
@@ -138,19 +138,21 @@ test_modem_helpers_icera_LDADD = \
|
||||
$(top_builddir)/libmm-glib/libmm-glib.la \
|
||||
$(NULL)
|
||||
|
||||
noinst_LTLIBRARIES += libmm-utils-icera.la
|
||||
libmm_utils_icera_la_SOURCES = \
|
||||
pkglib_LTLIBRARIES += libmm-shared-icera.la
|
||||
libmm_shared_icera_la_SOURCES = \
|
||||
icera/mm-shared.c \
|
||||
icera/mm-broadband-modem-icera.h \
|
||||
icera/mm-broadband-modem-icera.c \
|
||||
icera/mm-broadband-bearer-icera.h \
|
||||
icera/mm-broadband-bearer-icera.c \
|
||||
$(NULL)
|
||||
libmm_utils_icera_la_LIBADD = \
|
||||
libmm_shared_icera_la_CPPFLAGS = $(SHARED_COMMON_COMPILER_FLAGS)
|
||||
libmm_shared_icera_la_LDFLAGS = $(SHARED_COMMON_LINKER_FLAGS)
|
||||
libmm_shared_icera_la_LIBADD = \
|
||||
$(builddir)/libhelpers-icera.la \
|
||||
$(NULL)
|
||||
|
||||
ICERA_COMMON_COMPILER_FLAGS = -I$(top_srcdir)/plugins/icera
|
||||
ICERA_COMMON_LIBADD_FLAGS = $(builddir)/libmm-utils-icera.la
|
||||
|
||||
################################################################################
|
||||
# common ericsson mbm support
|
||||
@@ -471,7 +473,7 @@ libmm_plugin_sierra_legacy_la_SOURCES = \
|
||||
$(NULL)
|
||||
libmm_plugin_sierra_legacy_la_CPPFLAGS = $(PLUGIN_COMMON_COMPILER_FLAGS) $(ICERA_COMMON_COMPILER_FLAGS) $(SIERRA_COMMON_COMPILER_FLAGS)
|
||||
libmm_plugin_sierra_legacy_la_LDFLAGS = $(PLUGIN_COMMON_LINKER_FLAGS)
|
||||
libmm_plugin_sierra_legacy_la_LIBADD = $(ICERA_COMMON_LIBADD_FLAGS) $(SIERRA_COMMON_LIBADD_FLAGS)
|
||||
libmm_plugin_sierra_legacy_la_LIBADD = $(SIERRA_COMMON_LIBADD_FLAGS)
|
||||
|
||||
################################################################################
|
||||
# plugin: wavecom (now sierra airlink)
|
||||
@@ -514,7 +516,6 @@ libmm_plugin_nokia_icera_la_SOURCES = \
|
||||
$(NULL)
|
||||
libmm_plugin_nokia_icera_la_CPPFLAGS = $(PLUGIN_COMMON_COMPILER_FLAGS) $(ICERA_COMMON_COMPILER_FLAGS)
|
||||
libmm_plugin_nokia_icera_la_LDFLAGS = $(PLUGIN_COMMON_LINKER_FLAGS)
|
||||
libmm_plugin_nokia_icera_la_LIBADD = $(ICERA_COMMON_LIBADD_FLAGS)
|
||||
|
||||
dist_udevrules_DATA += nokia/77-mm-nokia-port-types.rules
|
||||
|
||||
@@ -537,7 +538,6 @@ libmm_plugin_zte_la_SOURCES = \
|
||||
$(NULL)
|
||||
libmm_plugin_zte_la_CPPFLAGS = $(PLUGIN_COMMON_COMPILER_FLAGS) $(ICERA_COMMON_COMPILER_FLAGS)
|
||||
libmm_plugin_zte_la_LDFLAGS = $(PLUGIN_COMMON_LINKER_FLAGS)
|
||||
libmm_plugin_zte_la_LIBADD = $(ICERA_COMMON_LIBADD_FLAGS)
|
||||
|
||||
dist_udevrules_DATA += zte/77-mm-zte-port-types.rules
|
||||
|
||||
@@ -702,7 +702,6 @@ libmm_plugin_samsung_la_SOURCES = \
|
||||
$(NULL)
|
||||
libmm_plugin_samsung_la_CPPFLAGS = $(PLUGIN_COMMON_COMPILER_FLAGS) $(ICERA_COMMON_COMPILER_FLAGS)
|
||||
libmm_plugin_samsung_la_LDFLAGS = $(PLUGIN_COMMON_LINKER_FLAGS)
|
||||
libmm_plugin_samsung_la_LIBADD = $(ICERA_COMMON_LIBADD_FLAGS)
|
||||
|
||||
################################################################################
|
||||
# plugin: cinterion (previously siemens)
|
||||
|
||||
@@ -42,8 +42,10 @@ struct _MMBroadbandModemIceraClass{
|
||||
MMBroadbandModemClass parent;
|
||||
};
|
||||
|
||||
G_MODULE_EXPORT
|
||||
GType mm_broadband_modem_icera_get_type (void);
|
||||
|
||||
G_MODULE_EXPORT
|
||||
MMBroadbandModemIcera *mm_broadband_modem_icera_new (const gchar *device,
|
||||
const gchar **drivers,
|
||||
const gchar *plugin,
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
||||
/*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details:
|
||||
*
|
||||
* Copyright (C) 2019 Aleksander Morgado <aleksander@aleksander.es>
|
||||
*/
|
||||
|
||||
#include "mm-shared.h"
|
||||
|
||||
MM_SHARED_DEFINE_MAJOR_VERSION
|
||||
MM_SHARED_DEFINE_MINOR_VERSION
|
||||
MM_SHARED_DEFINE_NAME(Icera)
|
||||
Reference in New Issue
Block a user