• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2#  Copyright (C) 2015 Google, Inc.
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
17LOCAL_PATH := $(call my-dir)
18
19include $(CLEAR_VARS)
20
21LOCAL_MODULE_TAGS := optional
22LOCAL_MODULE := sl4n
23
24LOCAL_C_INCLUDES += \
25  frameworks/opt/net/wifi/service/jni \
26  hardware/libhardware_legacy/include/hardware_legacy \
27  system/bt \
28  $(LOCAL_PATH)/rapidjson/include \
29  $(LOCAL_PATH)/facades
30
31LOCAL_SRC_FILES := \
32  facades/bluetooth/bluetooth_binder_facade.cpp \
33  facades/wifi/wifi_facade.cpp \
34  main.cpp \
35  utils/command_receiver.cpp \
36  utils/common_utils.cpp
37
38LOCAL_SHARED_LIBRARIES += \
39  libbinder \
40  libchrome \
41  libcutils \
42  libutils \
43  libhardware \
44  libhardware_legacy \
45  liblog
46
47LOCAL_STATIC_LIBRARIES += \
48  libbtcore \
49  libosi \
50  libbluetooth-client
51
52# set correct Wi-Fi HAL library path and add Wi-Fi related libraries
53# ============================================================
54LIB_WIFI_HAL := libwifi-hal
55
56ifeq ($(BOARD_WLAN_DEVICE), bcmdhd)
57  LIB_WIFI_HAL := libwifi-hal-bcm
58else ifeq ($(BOARD_WLAN_DEVICE), qcwcn)
59  LIB_WIFI_HAL := libwifi-hal-qcom
60else ifeq ($(BOARD_WLAN_DEVICE), mrvl)
61  # this is commented because none of the nexus devices
62  # that sport Marvell's wifi have support for HAL
63  # LIB_WIFI_HAL := libwifi-hal-mrvl
64else ifeq ($(BOARD_WLAN_DEVICE), MediaTek)
65  # support MTK WIFI HAL
66  LIB_WIFI_HAL := libwifi-hal-mt66xx
67endif
68
69LOCAL_STATIC_LIBRARIES += \
70  $(LIB_WIFI_HAL) \
71  libnl \
72  libwifi-hal-stub
73
74
75LOCAL_CFLAGS += -std=c++11 -Wall -Wno-unused-parameter -Wno-missing-field-initializers
76
77include $(BUILD_EXECUTABLE)
78