OSDN Git Service

Add host native build of primitives_test
authorGlenn Kasten <gkasten@google.com>
Fri, 8 Jul 2016 21:10:33 +0000 (14:10 -0700)
committerGlenn Kasten <gkasten@google.com>
Fri, 8 Jul 2016 22:10:16 +0000 (15:10 -0700)
Change-Id: Ib3271c787363e63800cdf40984e2b345e0e4ed6e

audio_utils/tests/Android.mk

index 0db09dc..cd76cf0 100644 (file)
@@ -1,26 +1,37 @@
 # Build the unit tests for audio_utils
 
 LOCAL_PATH:= $(call my-dir)
-include $(CLEAR_VARS)
 
+include $(CLEAR_VARS)
 LOCAL_SHARED_LIBRARIES := \
        liblog \
        libcutils \
        libaudioutils
-
 LOCAL_C_INCLUDES := \
        $(call include-path-for, audio-utils)
-
 LOCAL_SRC_FILES := \
        primitives_tests.cpp
-
 LOCAL_MODULE := primitives_tests
 LOCAL_MODULE_TAGS := tests
-
 LOCAL_CFLAGS := -Werror -Wall
 include $(BUILD_NATIVE_TEST)
 
 include $(CLEAR_VARS)
+LOCAL_SHARED_LIBRARIES := \
+       liblog \
+       libcutils
+LOCAL_STATIC_LIBRARIES := \
+       libaudioutils
+LOCAL_C_INCLUDES := \
+       $(call include-path-for, audio-utils)
+LOCAL_SRC_FILES := \
+       primitives_tests.cpp
+LOCAL_MODULE := primitives_tests
+LOCAL_MODULE_TAGS := tests
+LOCAL_CFLAGS := -Werror -Wall
+include $(BUILD_HOST_NATIVE_TEST)
+
+include $(CLEAR_VARS)
 LOCAL_SRC_FILES := fifo_tests.cpp
 LOCAL_MODULE := fifo_tests
 LOCAL_C_INCLUDES := $(call include-path-for, audio-utils)