Fix build on Mac host
[android-sdk/platform-external-tinyalsa.git] / Android.mk
1 LOCAL_PATH:= $(call my-dir)
3 include $(CLEAR_VARS)
4 LOCAL_C_INCLUDES:= external/tinyalsa/include
5 LOCAL_SRC_FILES:= mixer.c pcm.c
6 LOCAL_MODULE := libtinyalsa
7 LOCAL_SHARED_LIBRARIES:= libcutils libutils
8 LOCAL_MODULE_TAGS := optional
9 LOCAL_PRELINK_MODULE := false
11 include $(BUILD_SHARED_LIBRARY)
13 ifeq ($(HOST_OS), linux)
14 include $(CLEAR_VARS)
15 LOCAL_C_INCLUDES:= external/tinyalsa/include
16 LOCAL_SRC_FILES:= mixer.c pcm.c
17 LOCAL_MODULE := libtinyalsa
18 LOCAL_STATIC_LIBRARIES:= libcutils libutils
19 include $(BUILD_HOST_STATIC_LIBRARY)
20 endif
22 include $(CLEAR_VARS)
23 LOCAL_C_INCLUDES:= external/tinyalsa/include
24 LOCAL_SRC_FILES:= tinyplay.c
25 LOCAL_MODULE := tinyplay
26 LOCAL_SHARED_LIBRARIES:= libcutils libutils libtinyalsa
27 LOCAL_MODULE_TAGS := optional
29 include $(BUILD_EXECUTABLE)
31 ifeq ($(HOST_OS), linux)
32 include $(CLEAR_VARS)
33 LOCAL_C_INCLUDES:= external/tinyalsa/include
34 LOCAL_SRC_FILES:= tinyplay.c
35 LOCAL_MODULE := tinyplay
36 LOCAL_STATIC_LIBRARIES:= libcutils libutils libtinyalsa
37 LOCAL_MODULE_TAGS := optional
39 include $(BUILD_HOST_EXECUTABLE)
40 endif
42 include $(CLEAR_VARS)
43 LOCAL_C_INCLUDES:= external/tinyalsa/include
44 LOCAL_SRC_FILES:= tinycap.c
45 LOCAL_MODULE := tinycap
46 LOCAL_SHARED_LIBRARIES:= libcutils libutils libtinyalsa
47 LOCAL_MODULE_TAGS := optional
49 include $(BUILD_EXECUTABLE)
51 include $(CLEAR_VARS)
52 LOCAL_C_INCLUDES:= external/tinyalsa/include
53 LOCAL_SRC_FILES:= tinymix.c
54 LOCAL_MODULE := tinymix
55 LOCAL_SHARED_LIBRARIES:= libcutils libutils libtinyalsa
56 LOCAL_MODULE_TAGS := optional
58 include $(BUILD_EXECUTABLE)
60 include $(CLEAR_VARS)
61 LOCAL_C_INCLUDES:= external/tinyalsa/include
62 LOCAL_SRC_FILES:= tinypcminfo.c
63 LOCAL_MODULE := tinypcminfo
64 LOCAL_SHARED_LIBRARIES:= libcutils libutils libtinyalsa
65 LOCAL_MODULE_TAGS := optional
67 include $(BUILD_EXECUTABLE)