blob: 94c3bb27e61793921a7bc0db7b3b51012106b751 [file] [log] [blame]
Rohan Martin95c4bdb2012-11-01 15:20:17 -06001#
2# Copyright (C) 2009 Dynastream Innovations
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
17ifneq ($(BOARD_ANT_WIRELESS_DEVICE),)
18
Rohan Martinaf8cf682012-11-16 21:11:07 -070019LOCAL_PATH := $(call my-dir)
20
Rohan Martin95c4bdb2012-11-01 15:20:17 -060021#
22# ANT native library
23#
24
25include $(CLEAR_VARS)
26
ANT-Shaned494ba32013-11-15 11:19:05 -070027# For known qualcomm smd devices we remap the chip name to "qualcomm-smd"
28
29ifeq ($(BOARD_ANT_WIRELESS_DEVICE),"wcn3680")
30
31BOARD_ANT_WIRELESS_DEVICE := "qualcomm-smd"
32
33endif
34
Rohan Martin95c4bdb2012-11-01 15:20:17 -060035ifeq ($(BOARD_ANT_WIRELESS_DEVICE),"wl12xx")
36
Rohan Martinaf8cf682012-11-16 21:11:07 -070037ANT_DIR := src/bluez_hci
Rohan Martin95c4bdb2012-11-01 15:20:17 -060038
Rohan Martinaf8cf682012-11-16 21:11:07 -070039else ifeq ($(BOARD_ANT_WIRELESS_DEVICE),"bcm433x")
Rohan Martin95c4bdb2012-11-01 15:20:17 -060040
Rohan Martinaf8cf682012-11-16 21:11:07 -070041ANT_DIR := src/bluez_hci
Rohan Martin95c4bdb2012-11-01 15:20:17 -060042
Rohan Martin758780f2012-12-05 17:31:21 -070043else ifeq ($(BOARD_ANT_WIRELESS_DEVICE),"cg29xx")
44
45ANT_DIR := src/vfs
46
ANT-Shaned494ba32013-11-15 11:19:05 -070047else ifeq ($(BOARD_ANT_WIRELESS_DEVICE),"qualcomm-smd")
48
49ANT_DIR := src/vfs
50
James Bootsma9200d292013-11-25 10:54:02 -070051else ifeq ($(BOARD_ANT_WIRELESS_DEVICE),"qualcomm-uart")
ANT-Shaned494ba32013-11-15 11:19:05 -070052
53ANT_DIR := src/bt-vendor_vfs
54
Rohan Martinaf8cf682012-11-16 21:11:07 -070055else ifeq ($(BOARD_ANT_WIRELESS_DEVICE),"vfs-prerelease")
Rohan Martin95c4bdb2012-11-01 15:20:17 -060056
Rohan Martinaf8cf682012-11-16 21:11:07 -070057ANT_DIR := src/vfs
Rohan Martin95c4bdb2012-11-01 15:20:17 -060058
59else
60
61$(error Unsupported BOARD_ANT_WIRELESS_DEVICE := $(BOARD_ANT_WIRELESS_DEVICE))
62
63endif # BOARD_ANT_WIRELESS_DEVICE type
64
Rohan Martinaf8cf682012-11-16 21:11:07 -070065COMMON_DIR := src/common
66
67include $(LOCAL_PATH)/$(ANT_DIR)/Android.mk
Rohan Martin95c4bdb2012-11-01 15:20:17 -060068
69#
70# ANT Application
71#
72
73include $(CLEAR_VARS)
74
75LOCAL_C_INCLUDES:= \
76 $(LOCAL_PATH)/src/common/inc \
77 $(LOCAL_PATH)/app
78
79LOCAL_CFLAGS:= -g -c -W -Wall -O2
80
81LOCAL_SRC_FILES:= \
Rohan Martinaf8cf682012-11-16 21:11:07 -070082 app/ant_app.c
Rohan Martin95c4bdb2012-11-01 15:20:17 -060083
84LOCAL_SHARED_LIBRARIES := \
85 libantradio \
86 libcutils
87
88LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
89LOCAL_MODULE_TAGS := debug
90LOCAL_MODULE:=antradio_app
91
92include $(BUILD_EXECUTABLE)
93
94
95endif # BOARD_ANT_WIRELESS_DEVICE defined