Android.mk revision b13c0f29f894bcbf9e304e3eb390bcbe42f2ea52
1# 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 17ifneq ($(TARGET_BUILD_PDK), true) 18 19include $(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 34# 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 += \ 45 external/libnl/include 46 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 57# 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 \ 71 libcore/include \ 72 $(LOCAL_PATH)/lib 73 74LOCAL_SHARED_LIBRARIES += \ 75 libnativehelper \ 76 libcutils \ 77 libutils \ 78 libhardware \ 79 libhardware_legacy \ 80 libandroid_runtime \ 81 libnl 82 83LOCAL_STATIC_LIBRARIES += libwifi-hal 84 85LOCAL_SRC_FILES := jni/com_android_server_wifi_WifiNative.cpp 86LOCAL_MODULE := libwifi-service 87 88include $(BUILD_SHARED_LIBRARY) 89 90endif 91