summaryrefslogtreecommitdiffstats
path: root/media/libeffects/preprocessing
diff options
context:
space:
mode:
authorMarco Nelissen <marcone@google.com>2012-10-25 16:05:57 -0700
committerMarco Nelissen <marcone@google.com>2012-10-25 16:05:57 -0700
commit7f16b197c76fbae9399242f055a7ee16dcd0fd6d (patch)
treec3ef4aac9bb7cedd1a694a50d4f9be0ec83cc817 /media/libeffects/preprocessing
parent6035cb5a61a7606cc8e4ecddec32b2eb37a9fd56 (diff)
downloadframeworks_av-7f16b197c76fbae9399242f055a7ee16dcd0fd6d.zip
frameworks_av-7f16b197c76fbae9399242f055a7ee16dcd0fd6d.tar.gz
frameworks_av-7f16b197c76fbae9399242f055a7ee16dcd0fd6d.tar.bz2
Only export the symbols that need to be
The effects libraries were exporting many more symbols than needed. This reduces the exported symbols to just the needed ones (basically just "AELI"), which happens to also save about 28KB. Change-Id: I115077e52e8dc845282e6f62a522908d26dd72d6
Diffstat (limited to 'media/libeffects/preprocessing')
-rwxr-xr-xmedia/libeffects/preprocessing/Android.mk2
-rwxr-xr-xmedia/libeffects/preprocessing/PreProcessing.cpp2
2 files changed, 4 insertions, 0 deletions
diff --git a/media/libeffects/preprocessing/Android.mk b/media/libeffects/preprocessing/Android.mk
index c13b9d4..dfa1711 100755
--- a/media/libeffects/preprocessing/Android.mk
+++ b/media/libeffects/preprocessing/Android.mk
@@ -29,4 +29,6 @@ else
LOCAL_SHARED_LIBRARIES += libdl
endif
+LOCAL_CFLAGS += -fvisibility=hidden
+
include $(BUILD_SHARED_LIBRARY)
diff --git a/media/libeffects/preprocessing/PreProcessing.cpp b/media/libeffects/preprocessing/PreProcessing.cpp
index 58dc413..25586e8 100755
--- a/media/libeffects/preprocessing/PreProcessing.cpp
+++ b/media/libeffects/preprocessing/PreProcessing.cpp
@@ -1889,6 +1889,8 @@ int PreProcessingLib_GetDescriptor(const effect_uuid_t *uuid,
return 0;
}
+// This is the only symbol that needs to be exported
+__attribute__ ((visibility ("default")))
audio_effect_library_t AUDIO_EFFECT_LIBRARY_INFO_SYM = {
tag : AUDIO_EFFECT_LIBRARY_TAG,
version : EFFECT_LIBRARY_API_VERSION,