blob: 6a1d0502e785585e16363c93c004795712dfb265 [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),)
Bootsma, James795d0482020-01-20 17:49:04 -070018ifneq ($(BOARD_ANT_WIRELESS_DEVICE),"qualcomm-hidl")
Rohan Martin95c4bdb2012-11-01 15:20:17 -060019
Rohan Martinaf8cf682012-11-16 21:11:07 -070020LOCAL_PATH := $(call my-dir)
21
Rohan Martin95c4bdb2012-11-01 15:20:17 -060022#
23# ANT native library
24#
25
26include $(CLEAR_VARS)
27
ANT-Shaned494ba32013-11-15 11:19:05 -070028# For known qualcomm smd devices we remap the chip name to "qualcomm-smd"
29
30ifeq ($(BOARD_ANT_WIRELESS_DEVICE),"wcn3680")
31
32BOARD_ANT_WIRELESS_DEVICE := "qualcomm-smd"
33
34endif
35
Rohan Martin95c4bdb2012-11-01 15:20:17 -060036ifeq ($(BOARD_ANT_WIRELESS_DEVICE),"wl12xx")
37
Rohan Martinaf8cf682012-11-16 21:11:07 -070038ANT_DIR := src/bluez_hci
Rohan Martin95c4bdb2012-11-01 15:20:17 -060039
Rohan Martinaf8cf682012-11-16 21:11:07 -070040else ifeq ($(BOARD_ANT_WIRELESS_DEVICE),"bcm433x")
Rohan Martin95c4bdb2012-11-01 15:20:17 -060041
Rohan Martinaf8cf682012-11-16 21:11:07 -070042ANT_DIR := src/bluez_hci
Rohan Martin95c4bdb2012-11-01 15:20:17 -060043
Rohan Martin758780f2012-12-05 17:31:21 -070044else ifeq ($(BOARD_ANT_WIRELESS_DEVICE),"cg29xx")
45
46ANT_DIR := src/vfs
47
ANT-Shaned494ba32013-11-15 11:19:05 -070048else ifeq ($(BOARD_ANT_WIRELESS_DEVICE),"qualcomm-smd")
49
50ANT_DIR := src/vfs
51
James Bootsma9200d292013-11-25 10:54:02 -070052else ifeq ($(BOARD_ANT_WIRELESS_DEVICE),"qualcomm-uart")
ANT-Shaned494ba32013-11-15 11:19:05 -070053
54ANT_DIR := src/bt-vendor_vfs
55
Rohan Martinaf8cf682012-11-16 21:11:07 -070056else ifeq ($(BOARD_ANT_WIRELESS_DEVICE),"vfs-prerelease")
Rohan Martin95c4bdb2012-11-01 15:20:17 -060057
Rohan Martinaf8cf682012-11-16 21:11:07 -070058ANT_DIR := src/vfs
Rohan Martin95c4bdb2012-11-01 15:20:17 -060059
60else
61
62$(error Unsupported BOARD_ANT_WIRELESS_DEVICE := $(BOARD_ANT_WIRELESS_DEVICE))
63
64endif # BOARD_ANT_WIRELESS_DEVICE type
65
Rohan Martinaf8cf682012-11-16 21:11:07 -070066COMMON_DIR := src/common
67
68include $(LOCAL_PATH)/$(ANT_DIR)/Android.mk
Rohan Martin95c4bdb2012-11-01 15:20:17 -060069
70#
71# ANT Application
72#
73
74include $(CLEAR_VARS)
75
76LOCAL_C_INCLUDES:= \
77 $(LOCAL_PATH)/src/common/inc \
78 $(LOCAL_PATH)/app
79
Divya Sharmab9e23a52017-01-12 20:38:52 -080080LOCAL_C_INCLUDES += frameworks/base/core/jni/include
81
Rohan Martin95c4bdb2012-11-01 15:20:17 -060082LOCAL_CFLAGS:= -g -c -W -Wall -O2
83
84LOCAL_SRC_FILES:= \
Rohan Martinaf8cf682012-11-16 21:11:07 -070085 app/ant_app.c
Rohan Martin95c4bdb2012-11-01 15:20:17 -060086
87LOCAL_SHARED_LIBRARIES := \
88 libantradio \
89 libcutils
90
91LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
Rohan Martin95c4bdb2012-11-01 15:20:17 -060092LOCAL_MODULE:=antradio_app
93
Bootsma, James1e9946b2020-01-16 13:55:12 -070094LOCAL_SYSTEM_EXT_MODULE := true
95
Rohan Martin95c4bdb2012-11-01 15:20:17 -060096include $(BUILD_EXECUTABLE)
97
Bootsma, James795d0482020-01-20 17:49:04 -070098endif
Rohan Martin95c4bdb2012-11-01 15:20:17 -060099endif # BOARD_ANT_WIRELESS_DEVICE defined