Home | History | Annotate | Download | only in default
      1 # Copyright (C) 2016 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 LOCAL_PATH := $(call my-dir)
     15 
     16 ###
     17 ### android.hardware.wifi static library
     18 ###
     19 include $(CLEAR_VARS)
     20 LOCAL_MODULE := android.hardware.wifi (a] 1.0-service-lib
     21 LOCAL_MODULE_RELATIVE_PATH := hw
     22 LOCAL_PROPRIETARY_MODULE := true
     23 LOCAL_CPPFLAGS := -Wall -Werror -Wextra
     24 ifdef WIFI_HIDL_FEATURE_AWARE
     25 LOCAL_CPPFLAGS += -DWIFI_HIDL_FEATURE_AWARE
     26 endif
     27 ifdef WIFI_HIDL_FEATURE_DUAL_INTERFACE
     28 LOCAL_CPPFLAGS += -DWIFI_HIDL_FEATURE_DUAL_INTERFACE
     29 endif
     30 ifdef WIFI_HIDL_FEATURE_DISABLE_AP
     31 LOCAL_CPPFLAGS += -DWIFI_HIDL_FEATURE_DISABLE_AP
     32 endif
     33 LOCAL_SRC_FILES := \
     34     hidl_struct_util.cpp \
     35     hidl_sync_util.cpp \
     36     ringbuffer.cpp \
     37     wifi.cpp \
     38     wifi_ap_iface.cpp \
     39     wifi_chip.cpp \
     40     wifi_feature_flags.cpp \
     41     wifi_legacy_hal.cpp \
     42     wifi_legacy_hal_stubs.cpp \
     43     wifi_mode_controller.cpp \
     44     wifi_nan_iface.cpp \
     45     wifi_p2p_iface.cpp \
     46     wifi_rtt_controller.cpp \
     47     wifi_sta_iface.cpp \
     48     wifi_status_util.cpp
     49 LOCAL_SHARED_LIBRARIES := \
     50     libbase \
     51     libcutils \
     52     libhidlbase \
     53     libhidltransport \
     54     liblog \
     55     libnl \
     56     libutils \
     57     libwifi-hal \
     58     libwifi-system-iface \
     59     android.hardware.wifi (a] 1.0 \
     60     android.hardware.wifi (a] 1.1 \
     61     android.hardware.wifi (a] 1.2
     62 LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
     63 include $(BUILD_STATIC_LIBRARY)
     64 
     65 ###
     66 ### android.hardware.wifi daemon
     67 ###
     68 include $(CLEAR_VARS)
     69 LOCAL_MODULE := android.hardware.wifi (a] 1.0-service
     70 LOCAL_MODULE_RELATIVE_PATH := hw
     71 LOCAL_PROPRIETARY_MODULE := true
     72 LOCAL_CPPFLAGS := -Wall -Werror -Wextra
     73 LOCAL_SRC_FILES := \
     74     service.cpp
     75 LOCAL_SHARED_LIBRARIES := \
     76     libbase \
     77     libcutils \
     78     libhidlbase \
     79     libhidltransport \
     80     liblog \
     81     libnl \
     82     libutils \
     83     libwifi-hal \
     84     libwifi-system-iface \
     85     android.hardware.wifi (a] 1.0 \
     86     android.hardware.wifi (a] 1.1 \
     87     android.hardware.wifi (a] 1.2
     88 LOCAL_STATIC_LIBRARIES := \
     89     android.hardware.wifi (a] 1.0-service-lib
     90 LOCAL_INIT_RC := android.hardware.wifi (a] 1.0-service.rc
     91 include $(BUILD_EXECUTABLE)
     92 
     93 ###
     94 ### android.hardware.wifi unit tests.
     95 ###
     96 include $(CLEAR_VARS)
     97 LOCAL_MODULE := android.hardware.wifi (a] 1.0-service-tests
     98 LOCAL_PROPRIETARY_MODULE := true
     99 LOCAL_SRC_FILES := \
    100     tests/hidl_struct_util_unit_tests.cpp \
    101     tests/main.cpp \
    102     tests/mock_wifi_feature_flags.cpp \
    103     tests/mock_wifi_legacy_hal.cpp \
    104     tests/mock_wifi_mode_controller.cpp \
    105     tests/ringbuffer_unit_tests.cpp \
    106     tests/wifi_chip_unit_tests.cpp
    107 LOCAL_STATIC_LIBRARIES := \
    108     libgmock \
    109     libgtest \
    110     android.hardware.wifi (a] 1.0-service-lib
    111 LOCAL_SHARED_LIBRARIES := \
    112     libbase \
    113     libcutils \
    114     libhidlbase \
    115     libhidltransport \
    116     liblog \
    117     libnl \
    118     libutils \
    119     libwifi-hal \
    120     libwifi-system-iface \
    121     android.hardware.wifi (a] 1.0 \
    122     android.hardware.wifi (a] 1.1 \
    123     android.hardware.wifi (a] 1.2
    124 include $(BUILD_NATIVE_TEST)
    125