Home | History | Annotate | Download | only in wifi_hal
      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 
     15 LOCAL_PATH := $(call my-dir)
     16 
     17 # Make the HAL library
     18 # ============================================================
     19 include $(CLEAR_VARS)
     20 
     21 LOCAL_CFLAGS := -Wno-unused-parameter
     22 
     23 # gscan.cpp: address of array 'cached_results[i].results' will always evaluate to 'true'
     24 LOCAL_CLANG_CFLAGS := -Wno-pointer-bool-conversion
     25 
     26 LOCAL_C_INCLUDES += \
     27 	$(LOCAL_PATH) \
     28 	external/libnl/include \
     29 	$(call include-path-for, libhardware_legacy)/hardware_legacy \
     30 	external/wpa_supplicant_8/src/drivers \
     31 	$(TARGET_OUT_HEADERS)/libwpa_client \
     32 	$(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
     33 
     34 LOCAL_SRC_FILES := \
     35 	wifi_hal.cpp \
     36 	common.cpp \
     37 	cpp_bindings.cpp \
     38 	llstats.cpp \
     39 	gscan.cpp \
     40 	gscan_event_handler.cpp \
     41 	rtt.cpp \
     42 	ifaceeventhandler.cpp \
     43 	tdls.cpp \
     44 	nan.cpp \
     45 	nan_ind.cpp \
     46 	nan_req.cpp \
     47 	nan_rsp.cpp \
     48 	wificonfig.cpp \
     49 	wifilogger.cpp \
     50 	wifilogger_diag.cpp \
     51 	ring_buffer.cpp \
     52 	rb_wrapper.cpp \
     53 	rssi_monitor.cpp
     54 
     55 LOCAL_MODULE := libwifi-hal-qcom
     56 LOCAL_SHARED_LIBRARIES += libnetutils liblog
     57 
     58 ifneq ($(wildcard external/libnl),)
     59 LOCAL_SHARED_LIBRARIES += libnl
     60 LOCAL_C_INCLUDES += external/libnl/include
     61 else
     62 LOCAL_SHARED_LIBRARIES += libnl_2
     63 LOCAL_C_INCLUDES += external/libnl-headers
     64 endif
     65 
     66 include $(BUILD_STATIC_LIBRARY)
     67 
     68 include $(CLEAR_VARS)
     69 
     70 LOCAL_REQUIRED_MODULES :=
     71 
     72 LOCAL_CFLAGS += -Wno-unused-parameter
     73 LOCAL_CFLAGS += -DNAN_2_0
     74 LOCAL_CPPFLAGS += -Wno-conversion-null
     75 
     76 # gscan.cpp: address of array 'cached_results[i].results' will always evaluate to 'true'
     77 LOCAL_CLANG_CFLAGS := -Wno-pointer-bool-conversion
     78 
     79 LOCAL_C_INCLUDES += \
     80 	$(LOCAL_PATH) \
     81 	external/libnl/include \
     82 	$(call include-path-for, libhardware_legacy)/hardware_legacy \
     83 	external/wpa_supplicant_8/src/drivers \
     84 	$(TARGET_OUT_HEADERS)/libwpa_client \
     85 	$(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
     86 
     87 LOCAL_SRC_FILES := \
     88 	wifi_hal.cpp \
     89 	common.cpp \
     90 	cpp_bindings.cpp \
     91 	llstats.cpp \
     92 	gscan.cpp \
     93 	gscan_event_handler.cpp \
     94 	rtt.cpp \
     95 	ifaceeventhandler.cpp \
     96 	tdls.cpp \
     97 	nan.cpp \
     98 	nan_ind.cpp \
     99 	nan_req.cpp \
    100 	nan_rsp.cpp \
    101 	wificonfig.cpp \
    102 	wifilogger.cpp \
    103 	wifilogger_diag.cpp \
    104 	ring_buffer.cpp \
    105 	rb_wrapper.cpp \
    106 	rssi_monitor.cpp
    107 
    108 LOCAL_MODULE := libwifi-hal-qcom
    109 LOCAL_SHARED_LIBRARIES += libnetutils liblog
    110 LOCAL_SHARED_LIBRARIES += libdl libhardware_legacy
    111 
    112 ifneq ($(wildcard external/libnl),)
    113 LOCAL_SHARED_LIBRARIES += libnl
    114 LOCAL_C_INCLUDES += external/libnl/include
    115 else
    116 LOCAL_SHARED_LIBRARIES += libnl_2
    117 LOCAL_C_INCLUDES += external/libnl-headers
    118 endif
    119 
    120 include $(BUILD_SHARED_LIBRARY)
    121