OSDN Git Service

Binder interface skeleten of wificond
[android-x86/system-connectivity-wificond.git] / 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
15 LOCAL_PATH := $(call my-dir)
16
17 wificond_cpp_flags := -std=c++11 -Wall -Werror -Wno-unused-parameter
18 wificond_cpp_src := looper_backed_event_loop.cpp
19
20 ###
21 ### wificond daemon.
22 ###
23 include $(CLEAR_VARS)
24 LOCAL_MODULE := wificond
25 LOCAL_CPPFLAGS := $(wificond_cpp_flags)
26 LOCAL_INIT_RC := wificond.rc
27 LOCAL_AIDL_INCLUDES += $(LOCAL_PATH)/aidl
28 LOCAL_SRC_FILES := \
29     main.cpp \
30     aidl/android/wificond/IServer.aidl \
31     server.cpp
32 LOCAL_SHARED_LIBRARIES := \
33     libbinder \
34     libbase \
35     libutils
36 LOCAL_STATIC_LIBRARIES := \
37     libwificond
38 include $(BUILD_EXECUTABLE)
39
40 ###
41 ### wificond static library
42 ###
43 include $(CLEAR_VARS)
44 LOCAL_MODULE := libwificond
45 LOCAL_CPPFLAGS := $(wificond_cpp_flags)
46 LOCAL_SRC_FILES := $(wificond_cpp_src)
47 LOCAL_SHARED_LIBRARIES := \
48     libbase \
49     libutils
50 include $(BUILD_STATIC_LIBRARY)
51
52 ###
53 ### wificond host static library
54 ###
55 include $(CLEAR_VARS)
56 LOCAL_MODULE := libwificond_host
57 LOCAL_CPPFLAGS := $(wificond_cpp_flags)
58 LOCAL_SRC_FILES := $(wificond_cpp_src)
59 LOCAL_STATIC_LIBRARIES := \
60     libbase \
61     libutils
62 LOCAL_MODULE_HOST_OS := linux
63 include $(BUILD_HOST_STATIC_LIBRARY)
64
65 ###
66 ### wificond host unit tests.
67 ###
68 include $(CLEAR_VARS)
69 LOCAL_MODULE := wificond_unit_test
70 LOCAL_CPPFLAGS := $(wificond_cpp_flags)
71 LOCAL_SRC_FILES := \
72     tests/main.cpp \
73     tests/looper_backed_event_loop_unittest.cpp
74 LOCAL_STATIC_LIBRARIES := \
75     libgmock_host \
76     libwificond_host \
77     libbase \
78     libutils \
79     liblog
80 LOCAL_MODULE_HOST_OS := linux
81 include $(BUILD_HOST_NATIVE_TEST)