diff options
author | Steven Moreland <smoreland@google.com> | 2017-06-30 15:02:57 -0700 |
---|---|---|
committer | Steven Moreland <smoreland@google.com> | 2017-06-30 15:02:57 -0700 |
commit | 30faba12a948bc8e03ce47ad2c792c36bc4b7d2f (patch) | |
tree | 64b5fd95907f9b1e930148eed9d8c29b3e30f213 /visualizer | |
parent | b86c05d52198a0e7fcadfc3b46ed9fdb4358fadb (diff) | |
download | android_hardware_qcom_audio-30faba12a948bc8e03ce47ad2c792c36bc4b7d2f.tar.gz android_hardware_qcom_audio-30faba12a948bc8e03ce47ad2c792c36bc4b7d2f.tar.bz2 android_hardware_qcom_audio-30faba12a948bc8e03ce47ad2c792c36bc4b7d2f.zip |
Make libqcomvisualizer build with the VNDK.
When the vndk is enabled (BOARD_VNDK_VERSION=current),
vendor libraries must only link against vendor variants
in the build system. This means that they receive restricted
sets of headers and that automatic global headers are restricted.
Test: build libqcomvisualizer with BOARD_VNDK_VERSION=current
Bug: 37342627
Change-Id: I7f17946754091ac3a71ccc6451429bb1cd60d13b
Diffstat (limited to 'visualizer')
-rw-r--r-- | visualizer/Android.mk | 2 | ||||
-rw-r--r-- | visualizer/offload_visualizer.c | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/visualizer/Android.mk b/visualizer/Android.mk index 29a093e1..3b856e37 100644 --- a/visualizer/Android.mk +++ b/visualizer/Android.mk @@ -27,6 +27,8 @@ LOCAL_SHARED_LIBRARIES := \ libdl \ libtinyalsa +LOCAL_HEADER_LIBRARIES := libhardware_headers + LOCAL_MODULE_RELATIVE_PATH := soundfx LOCAL_MODULE:= libqcomvisualizer LOCAL_MODULE_OWNER := qcom diff --git a/visualizer/offload_visualizer.c b/visualizer/offload_visualizer.c index 4d1373f9..ab269ffe 100644 --- a/visualizer/offload_visualizer.c +++ b/visualizer/offload_visualizer.c @@ -17,12 +17,14 @@ #define LOG_TAG "offload_visualizer" /*#define LOG_NDEBUG 0*/ #include <assert.h> +#include <dlfcn.h> #include <math.h> +#include <pthread.h> #include <stdlib.h> #include <string.h> -#include <time.h> #include <sys/prctl.h> -#include <dlfcn.h> +#include <time.h> +#include <unistd.h> #include <cutils/list.h> #include <cutils/log.h> |