mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-15 08:14:28 +08:00
android: export only (android) entrypoint from the modules
The android specific modules, have a designated HMI entrypoint. Hide everything else with -fvisibility=hidden.
This commit is contained in:
parent
f174724c76
commit
f59f4902bc
@ -96,6 +96,7 @@ android_bluetooth_default_la_SOURCES = android/hal.h android/hal-bluetooth.c \
|
||||
android/hal-log.h \
|
||||
android/hal-ipc.h android/hal-ipc.c \
|
||||
android/hal-utils.h android/hal-utils.c
|
||||
android_bluetooth_default_la_CFLAGS = $(AM_CFLAGS) -fvisibility=hidden
|
||||
android_bluetooth_default_la_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/android
|
||||
android_bluetooth_default_la_LDFLAGS = $(AM_LDFLAGS) -module -avoid-version \
|
||||
-no-undefined
|
||||
@ -195,6 +196,7 @@ android_audio_a2dp_default_la_SOURCES = android/audio-msg.h \
|
||||
android/hardware/audio_effect.h \
|
||||
android/hardware/hardware.h \
|
||||
android/system/audio.h
|
||||
android_audio_a2dp_default_la_CFLAGS = $(AM_CFLAGS) -fvisibility=hidden
|
||||
android_audio_a2dp_default_la_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/android \
|
||||
$(SBC_CFLAGS)
|
||||
android_audio_a2dp_default_la_LIBADD = $(SBC_LIBS) -lrt
|
||||
@ -212,6 +214,7 @@ android_audio_sco_default_la_SOURCES = android/hal-log.h \
|
||||
android/audio_utils/resampler.c \
|
||||
android/audio_utils/resampler.h \
|
||||
android/system/audio.h
|
||||
android_audio_sco_default_la_CFLAGS = $(AM_CFLAGS) -fvisibility=hidden
|
||||
android_audio_sco_default_la_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/android
|
||||
android_audio_sco_default_la_LIBADD = $(SPEEXDSP_LIBS) -lrt
|
||||
android_audio_sco_default_la_LDFLAGS = $(AM_LDFLAGS) -module -avoid-version \
|
||||
|
@ -1618,6 +1618,7 @@ static struct hw_module_methods_t hal_module_methods = {
|
||||
.open = audio_open,
|
||||
};
|
||||
|
||||
__attribute__ ((visibility("default")))
|
||||
struct audio_module HAL_MODULE_INFO_SYM = {
|
||||
.common = {
|
||||
.tag = HARDWARE_MODULE_TAG,
|
||||
|
@ -1117,6 +1117,7 @@ static struct hw_module_methods_t bluetooth_module_methods = {
|
||||
.open = open_bluetooth,
|
||||
};
|
||||
|
||||
__attribute__ ((visibility("default")))
|
||||
struct hw_module_t HAL_MODULE_INFO_SYM = {
|
||||
.tag = HARDWARE_MODULE_TAG,
|
||||
.version_major = 1,
|
||||
|
@ -1507,6 +1507,7 @@ static struct hw_module_methods_t hal_module_methods = {
|
||||
.open = sco_open,
|
||||
};
|
||||
|
||||
__attribute__ ((visibility("default")))
|
||||
struct audio_module HAL_MODULE_INFO_SYM = {
|
||||
.common = {
|
||||
.tag = HARDWARE_MODULE_TAG,
|
||||
|
Loading…
Reference in New Issue
Block a user