Allow implicit-fallthrough warnings locally. DO NOT MERGE.
[android/platform-hardware-interfaces.git] / wifi / 1.2 / default / Android.mk
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)
16 ###
17 ### android.hardware.wifi static library
18 ###
19 include $(CLEAR_VARS)
20 LOCAL_MODULE := android.hardware.wifi@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 # Allow implicit fallthroughs in wifi_legacy_hal.cpp until they are fixed.
34 LOCAL_CFLAGS += -Wno-error=implicit-fallthrough
35 LOCAL_SRC_FILES := \
36     hidl_struct_util.cpp \
37     hidl_sync_util.cpp \
38     ringbuffer.cpp \
39     wifi.cpp \
40     wifi_ap_iface.cpp \
41     wifi_chip.cpp \
42     wifi_feature_flags.cpp \
43     wifi_legacy_hal.cpp \
44     wifi_legacy_hal_stubs.cpp \
45     wifi_mode_controller.cpp \
46     wifi_nan_iface.cpp \
47     wifi_p2p_iface.cpp \
48     wifi_rtt_controller.cpp \
49     wifi_sta_iface.cpp \
50     wifi_status_util.cpp
51 LOCAL_SHARED_LIBRARIES := \
52     libbase \
53     libcutils \
54     libhidlbase \
55     libhidltransport \
56     liblog \
57     libnl \
58     libutils \
59     libwifi-hal \
60     libwifi-system-iface \
61     android.hardware.wifi@1.0 \
62     android.hardware.wifi@1.1 \
63     android.hardware.wifi@1.2
64 LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
65 include $(BUILD_STATIC_LIBRARY)
67 ###
68 ### android.hardware.wifi daemon
69 ###
70 include $(CLEAR_VARS)
71 LOCAL_MODULE := android.hardware.wifi@1.0-service
72 LOCAL_MODULE_RELATIVE_PATH := hw
73 LOCAL_PROPRIETARY_MODULE := true
74 LOCAL_CPPFLAGS := -Wall -Werror -Wextra
75 LOCAL_SRC_FILES := \
76     service.cpp
77 LOCAL_SHARED_LIBRARIES := \
78     libbase \
79     libcutils \
80     libhidlbase \
81     libhidltransport \
82     liblog \
83     libnl \
84     libutils \
85     libwifi-hal \
86     libwifi-system-iface \
87     android.hardware.wifi@1.0 \
88     android.hardware.wifi@1.1 \
89     android.hardware.wifi@1.2
90 LOCAL_STATIC_LIBRARIES := \
91     android.hardware.wifi@1.0-service-lib
92 LOCAL_INIT_RC := android.hardware.wifi@1.0-service.rc
93 include $(BUILD_EXECUTABLE)
95 ###
96 ### android.hardware.wifi unit tests.
97 ###
98 include $(CLEAR_VARS)
99 LOCAL_MODULE := android.hardware.wifi@1.0-service-tests
100 LOCAL_PROPRIETARY_MODULE := true
101 LOCAL_SRC_FILES := \
102     tests/hidl_struct_util_unit_tests.cpp \
103     tests/main.cpp \
104     tests/mock_wifi_feature_flags.cpp \
105     tests/mock_wifi_legacy_hal.cpp \
106     tests/mock_wifi_mode_controller.cpp \
107     tests/ringbuffer_unit_tests.cpp \
108     tests/wifi_chip_unit_tests.cpp
109 LOCAL_STATIC_LIBRARIES := \
110     libgmock \
111     libgtest \
112     android.hardware.wifi@1.0-service-lib
113 LOCAL_SHARED_LIBRARIES := \
114     libbase \
115     libcutils \
116     libhidlbase \
117     libhidltransport \
118     liblog \
119     libnl \
120     libutils \
121     libwifi-hal \
122     libwifi-system-iface \
123     android.hardware.wifi@1.0 \
124     android.hardware.wifi@1.1 \
125     android.hardware.wifi@1.2
126 include $(BUILD_NATIVE_TEST)