blob: 2659732c5f6015ba79195a1643c1bf6392d70ec4 [file] [log] [blame]
Vinit Deshpande155b9d02014-01-08 23:46:46 +00001# 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
15LOCAL_PATH := $(call my-dir)
16
Colin Cross432674a2014-03-18 12:39:15 -070017ifneq ($(TARGET_BUILD_PDK), true)
18
Vinit Deshpande155b9d02014-01-08 23:46:46 +000019include $(CLEAR_VARS)
20
21LOCAL_AIDL_INCLUDES := $(LOCAL_PATH)/java
22LOCAL_SRC_FILES := $(call all-java-files-under, java) \
23 $(call all-Iaidl-files-under, java) \
24 $(call all-logtags-files-under, java)
25
26LOCAL_JNI_SHARED_LIBRARIES := libandroid_runtime
27LOCAL_JAVA_LIBRARIES := services
28LOCAL_REQUIRED_MODULES := services
29LOCAL_MODULE_TAGS :=
30LOCAL_MODULE := wifi-service
31
32include $(BUILD_JAVA_LIBRARY)
33
Vinit Deshapnde7ef73dd2014-02-28 08:42:14 -080034# Make the HAL library
35# ============================================================
36include $(CLEAR_VARS)
37
38LOCAL_REQUIRED_MODULES :=
39
40LOCAL_CFLAGS += -Wno-unused-parameter -Wno-int-to-pointer-cast
41LOCAL_CFLAGS += -Wno-maybe-uninitialized -Wno-parentheses
42LOCAL_CPPFLAGS += -Wno-conversion-null
43
44LOCAL_C_INCLUDES += \
Colin Crossb13c0f22014-03-19 18:46:03 -070045 external/libnl/include
Vinit Deshapnde7ef73dd2014-02-28 08:42:14 -080046
47LOCAL_SRC_FILES := \
48 lib/wifi_hal.cpp \
49 lib/common.cpp \
50 lib/cpp_bindings.cpp \
51 lib/gscan.cpp
52
53LOCAL_MODULE := libwifi-hal
54
55include $(BUILD_STATIC_LIBRARY)
56
Vinit Deshpande155b9d02014-01-08 23:46:46 +000057# Make the JNI part
58# ============================================================
59include $(CLEAR_VARS)
60
61LOCAL_REQUIRED_MODULES := libandroid_runtime libhardware_legacy
62
63LOCAL_CFLAGS += -Wno-unused-parameter -Wno-int-to-pointer-cast
64LOCAL_CFLAGS += -Wno-maybe-uninitialized -Wno-parentheses
65LOCAL_CPPFLAGS += -Wno-conversion-null
66
67LOCAL_C_INCLUDES += \
68 $(JNI_H_INCLUDE) \
69 $(call include-path-for, libhardware)/hardware \
70 $(call include-path-for, libhardware_legacy)/hardware_legacy \
Vinit Deshapnde7ef73dd2014-02-28 08:42:14 -080071 libcore/include \
72 $(LOCAL_PATH)/lib
73
Vinit Deshpande155b9d02014-01-08 23:46:46 +000074LOCAL_SHARED_LIBRARIES += \
75 libnativehelper \
76 libcutils \
77 libutils \
78 libhardware \
79 libhardware_legacy \
Colin Crossb13c0f22014-03-19 18:46:03 -070080 libandroid_runtime \
81 libnl
Vinit Deshapnde7ef73dd2014-02-28 08:42:14 -080082
Colin Crossb13c0f22014-03-19 18:46:03 -070083LOCAL_STATIC_LIBRARIES += libwifi-hal
Vinit Deshpande155b9d02014-01-08 23:46:46 +000084
Vinit Deshapnde7f9a15d2014-05-07 16:29:44 -070085LOCAL_SRC_FILES := \
86 jni/com_android_server_wifi_WifiNative.cpp \
87 jni/jni_helper.cpp
88
Vinit Deshpande155b9d02014-01-08 23:46:46 +000089LOCAL_MODULE := libwifi-service
90
91include $(BUILD_SHARED_LIBRARY)
Colin Cross432674a2014-03-18 12:39:15 -070092
Vinit Deshapnde7f9a15d2014-05-07 16:29:44 -070093# Build the halutil
94# ============================================================
95
96include $(CLEAR_VARS)
97
98LOCAL_REQUIRED_MODULES := libandroid_runtime libhardware_legacy
99
100LOCAL_CFLAGS += -Wno-unused-parameter -Wno-int-to-pointer-cast
101LOCAL_CFLAGS += -Wno-maybe-uninitialized -Wno-parentheses
102LOCAL_CPPFLAGS += -Wno-conversion-null
103
104LOCAL_C_INCLUDES += \
105 libcore/include \
106 $(LOCAL_PATH)/lib
107
108LOCAL_SHARES_LIBRARIES += \
109 libcutils \
110 libutils \
111 libandroid_runtime
112
113LOCAL_STATIC_LIBRARIES := libwifi-hal libnl_2
114
115LOCAL_SHARED_LIBRARIES += \
116 libnativehelper \
117 libcutils \
118 libutils \
119 libhardware \
120 libhardware_legacy
121
122LOCAL_SRC_FILES := \
123 tools/halutil/halutil.cpp
124
125LOCAL_MODULE := halutil
126
127include $(BUILD_EXECUTABLE)
128