1 # Copyright (C) 2016 The Android Open Source Project
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
7 # http://www.apache.org/licenses/LICENSE-2.0
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.
15 LOCAL_PATH := $(call my-dir)
17 wificond_cpp_flags := -std=c++11 -Wall -Werror -Wno-unused-parameter
18 wificond_cpp_src := looper_backed_event_loop.cpp
24 LOCAL_MODULE := wificond
25 LOCAL_CPPFLAGS := $(wificond_cpp_flags)
26 LOCAL_INIT_RC := wificond.rc
27 LOCAL_AIDL_INCLUDES += $(LOCAL_PATH)/aidl
30 aidl/android/wificond/IServer.aidl \
32 LOCAL_SHARED_LIBRARIES := \
36 LOCAL_STATIC_LIBRARIES := \
38 include $(BUILD_EXECUTABLE)
41 ### wificond static library
44 LOCAL_MODULE := libwificond
45 LOCAL_CPPFLAGS := $(wificond_cpp_flags)
46 LOCAL_SRC_FILES := $(wificond_cpp_src)
47 LOCAL_SHARED_LIBRARIES := \
50 include $(BUILD_STATIC_LIBRARY)
53 ### wificond host static library
56 LOCAL_MODULE := libwificond_host
57 LOCAL_CPPFLAGS := $(wificond_cpp_flags)
58 LOCAL_SRC_FILES := $(wificond_cpp_src)
59 LOCAL_STATIC_LIBRARIES := \
62 LOCAL_MODULE_HOST_OS := linux
63 include $(BUILD_HOST_STATIC_LIBRARY)
66 ### wificond host unit tests.
69 LOCAL_MODULE := wificond_unit_test
70 LOCAL_CPPFLAGS := $(wificond_cpp_flags)
73 tests/looper_backed_event_loop_unittest.cpp
74 LOCAL_STATIC_LIBRARIES := \
80 LOCAL_MODULE_HOST_OS := linux
81 include $(BUILD_HOST_NATIVE_TEST)