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 ifeq ($(TARGET_BUILD_VARIANT),userdebug)
     23 LOCAL_CFLAGS += "-DLOG_NDEBUG=0"
     24 endif
     25 
     26 # gscan.cpp: address of array 'cached_results[i].results' will always evaluate to 'true'
     27 LOCAL_CLANG_CFLAGS := -Wno-pointer-bool-conversion
     28 
     29 LOCAL_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 
     37 LOCAL_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 
     58 LOCAL_MODULE := libwifi-hal-qcom
     59 LOCAL_CLANG := true
     60 LOCAL_SHARED_LIBRARIES += libnetutils liblog
     61 
     62 ifneq ($(wildcard external/libnl),)
     63 LOCAL_SHARED_LIBRARIES += libnl
     64 LOCAL_C_INCLUDES += external/libnl/include
     65 else
     66 LOCAL_SHARED_LIBRARIES += libnl_2
     67 LOCAL_C_INCLUDES += external/libnl-headers
     68 endif
     69 
     70 include $(BUILD_STATIC_LIBRARY)
     71 
     72 include $(CLEAR_VARS)
     73 
     74 LOCAL_REQUIRED_MODULES :=
     75 
     76 LOCAL_CFLAGS += -Wno-unused-parameter -Wall -Werror
     77 LOCAL_CPPFLAGS += -Wno-conversion-null
     78 ifeq ($(TARGET_BUILD_VARIANT),userdebug)
     79 LOCAL_CFLAGS += "-DLOG_NDEBUG=0"
     80 endif
     81 
     82 # gscan.cpp: address of array 'cached_results[i].results' will always evaluate to 'true'
     83 LOCAL_CLANG_CFLAGS := -Wno-pointer-bool-conversion
     84 
     85 LOCAL_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 
     93 LOCAL_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 
    114 LOCAL_MODULE := libwifi-hal-qcom
    115 LOCAL_CLANG := true
    116 LOCAL_SHARED_LIBRARIES += libnetutils liblog
    117 LOCAL_SHARED_LIBRARIES += libdl libhardware_legacy
    118 
    119 ifneq ($(wildcard external/libnl),)
    120 LOCAL_SHARED_LIBRARIES += libnl
    121 LOCAL_C_INCLUDES += external/libnl/include
    122 else
    123 LOCAL_SHARED_LIBRARIES += libnl_2
    124 LOCAL_C_INCLUDES += external/libnl-headers
    125 endif
    126 
    127 include $(BUILD_SHARED_LIBRARY)
    128