• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2011 The Android Open Source Project
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#      http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15LOCAL_PATH := $(call my-dir)
16
17# Make the HAL library
18# ============================================================
19include $(CLEAR_VARS)
20
21LOCAL_CFLAGS := -Wno-unused-parameter
22ifeq ($(TARGET_BUILD_VARIANT),userdebug)
23LOCAL_CFLAGS += "-DLOG_NDEBUG=0"
24endif
25
26# gscan.cpp: address of array 'cached_results[i].results' will always evaluate to 'true'
27LOCAL_CLANG_CFLAGS := -Wno-pointer-bool-conversion
28
29LOCAL_C_INCLUDES += \
30	$(LOCAL_PATH) \
31	external/libnl/include \
32	$(call include-path-for, libhardware_legacy)/hardware_legacy \
33	external/wpa_supplicant_8/src/drivers \
34	$(TARGET_OUT_HEADERS)/libwpa_client \
35	$(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
36
37LOCAL_SRC_FILES := \
38	wifi_hal.cpp \
39	common.cpp \
40	cpp_bindings.cpp \
41	llstats.cpp \
42	gscan.cpp \
43	gscan_event_handler.cpp \
44	rtt.cpp \
45	ifaceeventhandler.cpp \
46	tdls.cpp \
47	nan.cpp \
48	nan_ind.cpp \
49	nan_req.cpp \
50	nan_rsp.cpp \
51	wificonfig.cpp \
52	wifilogger.cpp \
53	wifilogger_diag.cpp \
54	ring_buffer.cpp \
55	rb_wrapper.cpp \
56	rssi_monitor.cpp
57
58LOCAL_MODULE := libwifi-hal-qcom
59LOCAL_CLANG := true
60LOCAL_SHARED_LIBRARIES += libnetutils liblog
61
62ifneq ($(wildcard external/libnl),)
63LOCAL_SHARED_LIBRARIES += libnl
64LOCAL_C_INCLUDES += external/libnl/include
65else
66LOCAL_SHARED_LIBRARIES += libnl_2
67LOCAL_C_INCLUDES += external/libnl-headers
68endif
69
70include $(BUILD_STATIC_LIBRARY)
71
72include $(CLEAR_VARS)
73
74LOCAL_REQUIRED_MODULES :=
75
76LOCAL_CFLAGS += -Wno-unused-parameter
77LOCAL_CPPFLAGS += -Wno-conversion-null
78ifeq ($(TARGET_BUILD_VARIANT),userdebug)
79LOCAL_CFLAGS += "-DLOG_NDEBUG=0"
80endif
81
82# gscan.cpp: address of array 'cached_results[i].results' will always evaluate to 'true'
83LOCAL_CLANG_CFLAGS := -Wno-pointer-bool-conversion
84
85LOCAL_C_INCLUDES += \
86	$(LOCAL_PATH) \
87	external/libnl/include \
88	$(call include-path-for, libhardware_legacy)/hardware_legacy \
89	external/wpa_supplicant_8/src/drivers \
90	$(TARGET_OUT_HEADERS)/libwpa_client \
91	$(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
92
93LOCAL_SRC_FILES := \
94	wifi_hal.cpp \
95	common.cpp \
96	cpp_bindings.cpp \
97	llstats.cpp \
98	gscan.cpp \
99	gscan_event_handler.cpp \
100	rtt.cpp \
101	ifaceeventhandler.cpp \
102	tdls.cpp \
103	nan.cpp \
104	nan_ind.cpp \
105	nan_req.cpp \
106	nan_rsp.cpp \
107	wificonfig.cpp \
108	wifilogger.cpp \
109	wifilogger_diag.cpp \
110	ring_buffer.cpp \
111	rb_wrapper.cpp \
112	rssi_monitor.cpp
113
114LOCAL_MODULE := libwifi-hal-qcom
115LOCAL_CLANG := true
116LOCAL_SHARED_LIBRARIES += libnetutils liblog
117LOCAL_SHARED_LIBRARIES += libdl libhardware_legacy
118
119ifneq ($(wildcard external/libnl),)
120LOCAL_SHARED_LIBRARIES += libnl
121LOCAL_C_INCLUDES += external/libnl/include
122else
123LOCAL_SHARED_LIBRARIES += libnl_2
124LOCAL_C_INCLUDES += external/libnl-headers
125endif
126
127include $(BUILD_SHARED_LIBRARY)
128