build: Stop using symdef headers for modules.
New simpler macro method does the trick now.
This commit is contained in:
parent
5ff7642ca7
commit
db423101e8
7 changed files with 3 additions and 137 deletions
|
|
@ -19,8 +19,6 @@ modlibexec_LTLIBRARIES = \
|
|||
module-droid-source.la \
|
||||
module-droid-card.la
|
||||
|
||||
noinst_HEADERS = module-droid-sink-symdef.h module-droid-source-symdef.h module-droid-card-symdef.h
|
||||
|
||||
libdroid_sink_la_SOURCES = droid-sink.c droid-sink.h
|
||||
libdroid_sink_la_LDFLAGS = -avoid-version -Wl,-z,noexecstack -lhybris-common
|
||||
libdroid_sink_la_LIBADD = $(top_builddir)/src/common/libdroid-util.la $(AM_LIBADD)
|
||||
|
|
@ -34,14 +32,14 @@ libdroid_source_la_CFLAGS = $(AM_CFLAGS)
|
|||
module_droid_sink_la_SOURCES = module-droid-sink.c
|
||||
module_droid_sink_la_LDFLAGS = -module -avoid-version -Wl,-z,noexecstack -lhybris-common
|
||||
module_droid_sink_la_LIBADD = -lm libdroid-sink.la $(AM_LIBADD)
|
||||
module_droid_sink_la_CFLAGS = $(AM_CFLAGS)
|
||||
module_droid_sink_la_CFLAGS = $(AM_CFLAGS) -DPA_MODULE_NAME=module_droid_sink
|
||||
|
||||
module_droid_source_la_SOURCES = module-droid-source.c
|
||||
module_droid_source_la_LDFLAGS = -module -avoid-version -Wl,-z,noexecstack -lhybris-common
|
||||
module_droid_source_la_LIBADD = -lm libdroid-source.la $(AM_LIBADD)
|
||||
module_droid_source_la_CFLAGS = $(AM_CFLAGS)
|
||||
module_droid_source_la_CFLAGS = $(AM_CFLAGS) -DPA_MODULE_NAME=module_droid_source
|
||||
|
||||
module_droid_card_la_SOURCES = module-droid-card.c
|
||||
module_droid_card_la_LDFLAGS = -module -avoid-version -Wl,-z,noexecstack -lhybris-common
|
||||
module_droid_card_la_LIBADD = -lm libdroid-sink.la libdroid-source.la $(top_builddir)/src/common/libdroid-util.la $(AM_LIBADD)
|
||||
module_droid_card_la_CFLAGS = $(AM_CFLAGS)
|
||||
module_droid_card_la_CFLAGS = $(AM_CFLAGS) -DPA_MODULE_NAME=module_droid_card
|
||||
|
|
|
|||
|
|
@ -1,42 +0,0 @@
|
|||
/*
|
||||
* Copyright (C) 2013-2018 Jolla Ltd.
|
||||
*
|
||||
* Contact: Juho Hämäläinen <juho.hamalainen@jolla.com>
|
||||
*
|
||||
* These PulseAudio Modules are free software; you can redistribute
|
||||
* it and/or modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation
|
||||
* version 2.1 of the License.
|
||||
*
|
||||
* This library 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
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
|
||||
* USA.
|
||||
*/
|
||||
#ifndef foomoduledroidcardsymdeffoo
|
||||
#define foomoduledroidcardsymdeffoo
|
||||
|
||||
#include <pulsecore/core.h>
|
||||
#include <pulsecore/module.h>
|
||||
|
||||
#define pa__init module_droid_card_LTX_pa__init
|
||||
#define pa__done module_droid_card_LTX_pa__done
|
||||
#define pa__get_author module_droid_card_LTX_pa__get_author
|
||||
#define pa__get_description module_droid_card_LTX_pa__get_description
|
||||
#define pa__get_usage module_droid_card_LTX_pa__get_usage
|
||||
#define pa__get_version module_droid_card_LTX_pa__get_version
|
||||
|
||||
int pa__init(struct pa_module*m);
|
||||
void pa__done(struct pa_module*m);
|
||||
|
||||
const char* pa__get_author(void);
|
||||
const char* pa__get_description(void);
|
||||
const char* pa__get_usage(void);
|
||||
const char* pa__get_version(void);
|
||||
|
||||
#endif
|
||||
|
|
@ -64,8 +64,6 @@
|
|||
#include "droid-sink.h"
|
||||
#include "droid-source.h"
|
||||
|
||||
#include "module-droid-card-symdef.h"
|
||||
|
||||
PA_MODULE_AUTHOR("Juho Hämäläinen");
|
||||
PA_MODULE_DESCRIPTION("Droid card");
|
||||
PA_MODULE_VERSION(PACKAGE_VERSION);
|
||||
|
|
|
|||
|
|
@ -1,42 +0,0 @@
|
|||
/*
|
||||
* Copyright (C) 2013-2018 Jolla Ltd.
|
||||
*
|
||||
* Contact: Juho Hämäläinen <juho.hamalainen@jolla.com>
|
||||
*
|
||||
* These PulseAudio Modules are free software; you can redistribute
|
||||
* it and/or modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation
|
||||
* version 2.1 of the License.
|
||||
*
|
||||
* This library 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
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
|
||||
* USA.
|
||||
*/
|
||||
#ifndef foomoduledroidsinksymdeffoo
|
||||
#define foomoduledroidsinksymdeffoo
|
||||
|
||||
#include <pulsecore/core.h>
|
||||
#include <pulsecore/module.h>
|
||||
|
||||
#define pa__init module_droid_sink_LTX_pa__init
|
||||
#define pa__done module_droid_sink_LTX_pa__done
|
||||
#define pa__get_author module_droid_sink_LTX_pa__get_author
|
||||
#define pa__get_description module_droid_sink_LTX_pa__get_description
|
||||
#define pa__get_usage module_droid_sink_LTX_pa__get_usage
|
||||
#define pa__get_version module_droid_sink_LTX_pa__get_version
|
||||
|
||||
int pa__init(struct pa_module*m);
|
||||
void pa__done(struct pa_module*m);
|
||||
|
||||
const char* pa__get_author(void);
|
||||
const char* pa__get_description(void);
|
||||
const char* pa__get_usage(void);
|
||||
const char* pa__get_version(void);
|
||||
|
||||
#endif
|
||||
|
|
@ -41,8 +41,6 @@
|
|||
#include <droid/conversion.h>
|
||||
#include "droid-sink.h"
|
||||
|
||||
#include "module-droid-sink-symdef.h"
|
||||
|
||||
PA_MODULE_AUTHOR("Juho Hämäläinen");
|
||||
PA_MODULE_DESCRIPTION("Droid sink");
|
||||
PA_MODULE_USAGE("master_sink=<sink to connect to> "
|
||||
|
|
|
|||
|
|
@ -1,42 +0,0 @@
|
|||
/*
|
||||
* Copyright (C) 2013-2018 Jolla Ltd.
|
||||
*
|
||||
* Contact: Juho Hämäläinen <juho.hamalainen@jolla.com>
|
||||
*
|
||||
* These PulseAudio Modules are free software; you can redistribute
|
||||
* it and/or modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation
|
||||
* version 2.1 of the License.
|
||||
*
|
||||
* This library 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
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
|
||||
* USA.
|
||||
*/
|
||||
#ifndef foomoduledroidsourcesymdeffoo
|
||||
#define foomoduledroidsourcesymdeffoo
|
||||
|
||||
#include <pulsecore/core.h>
|
||||
#include <pulsecore/module.h>
|
||||
|
||||
#define pa__init module_droid_source_LTX_pa__init
|
||||
#define pa__done module_droid_source_LTX_pa__done
|
||||
#define pa__get_author module_droid_source_LTX_pa__get_author
|
||||
#define pa__get_description module_droid_source_LTX_pa__get_description
|
||||
#define pa__get_usage module_droid_source_LTX_pa__get_usage
|
||||
#define pa__get_version module_droid_source_LTX_pa__get_version
|
||||
|
||||
int pa__init(struct pa_module*m);
|
||||
void pa__done(struct pa_module*m);
|
||||
|
||||
const char* pa__get_author(void);
|
||||
const char* pa__get_description(void);
|
||||
const char* pa__get_usage(void);
|
||||
const char* pa__get_version(void);
|
||||
|
||||
#endif
|
||||
|
|
@ -40,8 +40,6 @@
|
|||
#include <droid/droid-util.h>
|
||||
#include "droid-source.h"
|
||||
|
||||
#include "module-droid-source-symdef.h"
|
||||
|
||||
PA_MODULE_AUTHOR("Juho Hämäläinen");
|
||||
PA_MODULE_DESCRIPTION("Droid source");
|
||||
PA_MODULE_USAGE("master_source=<source to connect to> "
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue