blob: abbb5487a8d3e44f2a03e4fd1e26e8ecb5950f0a [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
James Bootsma9eb78a32017-06-13 09:42:00 -060055else ifeq ($(BOARD_ANT_WIRELESS_DEVICE),"qualcomm-hidl")
56
57ANT_DIR := src/qcomm-hidl
58
Rohan Martinaf8cf682012-11-16 21:11:07 -070059else ifeq ($(BOARD_ANT_WIRELESS_DEVICE),"vfs-prerelease")
Rohan Martin95c4bdb2012-11-01 15:20:17 -060060
Rohan Martinaf8cf682012-11-16 21:11:07 -070061ANT_DIR := src/vfs
Rohan Martin95c4bdb2012-11-01 15:20:17 -060062
63else
64
65$(error Unsupported BOARD_ANT_WIRELESS_DEVICE := $(BOARD_ANT_WIRELESS_DEVICE))
66
67endif # BOARD_ANT_WIRELESS_DEVICE type
68
Rohan Martinaf8cf682012-11-16 21:11:07 -070069COMMON_DIR := src/common
70
71include $(LOCAL_PATH)/$(ANT_DIR)/Android.mk
Rohan Martin95c4bdb2012-11-01 15:20:17 -060072
73#
74# ANT Application
75#
76
77include $(CLEAR_VARS)
78
79LOCAL_C_INCLUDES:= \
80 $(LOCAL_PATH)/src/common/inc \
81 $(LOCAL_PATH)/app
82
Divya Sharmab9e23a52017-01-12 20:38:52 -080083LOCAL_C_INCLUDES += frameworks/base/core/jni/include
84
Rohan Martin95c4bdb2012-11-01 15:20:17 -060085LOCAL_CFLAGS:= -g -c -W -Wall -O2
86
87LOCAL_SRC_FILES:= \
Rohan Martinaf8cf682012-11-16 21:11:07 -070088 app/ant_app.c
Rohan Martin95c4bdb2012-11-01 15:20:17 -060089
90LOCAL_SHARED_LIBRARIES := \
91 libantradio \
92 libcutils
93
94LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
Rohan Martin95c4bdb2012-11-01 15:20:17 -060095LOCAL_MODULE:=antradio_app
96
97include $(BUILD_EXECUTABLE)
98
99
100endif # BOARD_ANT_WIRELESS_DEVICE defined