Manish Dewangan | b8c83a4 | 2016-09-23 15:10:48 +0530 | [diff] [blame] | 1 | ifeq ($(strip $(BOARD_SUPPORTS_QAHW)),true) |
| 2 | |
| 3 | LOCAL_PATH := $(call my-dir) |
| 4 | |
| 5 | include $(CLEAR_VARS) |
| 6 | |
| 7 | libqahw-inc := $(LOCAL_PATH)/inc |
| 8 | |
| 9 | LOCAL_MODULE := libqahw |
| 10 | LOCAL_MODULE_TAGS := optional |
| 11 | LOCAL_MODULE_OWNER := qti |
| 12 | LOCAL_C_INCLUDES := $(libqahw-inc) |
| 13 | |
| 14 | LOCAL_SRC_FILES := \ |
| 15 | src/qahw.c |
| 16 | |
| 17 | LOCAL_SHARED_LIBRARIES := \ |
| 18 | liblog \ |
| 19 | libcutils \ |
Dhananjay Kumar | bbb34ae | 2016-10-25 18:03:42 +0530 | [diff] [blame] | 20 | libhardware \ |
| 21 | libdl |
Manish Dewangan | b8c83a4 | 2016-09-23 15:10:48 +0530 | [diff] [blame] | 22 | |
| 23 | LOCAL_COPY_HEADERS_TO := mm-audio/qahw_api/inc |
| 24 | LOCAL_COPY_HEADERS := inc/qahw_api.h |
| 25 | LOCAL_COPY_HEADERS += inc/qahw_defs.h |
| 26 | |
| 27 | LOCAL_PRELINK_MODULE := false |
Manish Dewangan | b8c83a4 | 2016-09-23 15:10:48 +0530 | [diff] [blame] | 28 | |
| 29 | include $(BUILD_SHARED_LIBRARY) |
| 30 | |
Manish Dewangan | 141cb56 | 2016-09-27 11:58:05 +0530 | [diff] [blame] | 31 | #test app compilation |
| 32 | include $(LOCAL_PATH)/test/Android.mk |
Manish Dewangan | b8c83a4 | 2016-09-23 15:10:48 +0530 | [diff] [blame] | 33 | endif |