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 19# Build the java code 20# ============================================================ 21 22wificond_aidl_path := system/connectivity/wificond/aidl 23wificond_aidl_rel_path := ../../../../../$(wificond_aidl_path) 24 25include $(CLEAR_VARS) 26 27LOCAL_AIDL_INCLUDES := $(LOCAL_PATH)/java $(wificond_aidl_path) 28LOCAL_SRC_FILES := $(call all-java-files-under, java) \ 29 $(call all-Iaidl-files-under, java) \ 30 $(call all-Iaidl-files-under, $(wificond_aidl_rel_path)) \ 31 $(call all-logtags-files-under, java) 32 33LOCAL_JAVA_LIBRARIES := \ 34 android.hidl.manager-V1.2-java \ 35 error_prone_annotations \ 36 libprotobuf-java-lite \ 37 jsr305 \ 38 services 39LOCAL_STATIC_JAVA_LIBRARIES := \ 40 android.hardware.wifi-V1.0-java \ 41 android.hardware.wifi-V1.1-java \ 42 android.hardware.wifi-V1.2-java \ 43 android.hardware.wifi-V1.3-java \ 44 android.hardware.wifi.hostapd-V1.0-java \ 45 android.hardware.wifi.hostapd-V1.1-java \ 46 android.hardware.wifi.supplicant-V1.0-java \ 47 android.hardware.wifi.supplicant-V1.1-java \ 48 android.hardware.wifi.supplicant-V1.2-java \ 49 wifi_service_proto \ 50 ksoap2 \ 51 libnanohttpd 52 53LOCAL_REQUIRED_MODULES := \ 54 services \ 55 libwifi-service \ 56 cacerts_wfa 57LOCAL_MODULE_TAGS := 58LOCAL_MODULE := wifi-service 59LOCAL_INIT_RC := wifi-events.rc 60 61LOCAL_DEX_PREOPT_APP_IMAGE := false 62LOCAL_DEX_PREOPT_GENERATE_PROFILE := true 63LOCAL_DEX_PREOPT_PROFILE_CLASS_LISTING := frameworks/base/services/art-profile 64LOCAL_ERROR_PRONE_FLAGS := -Xep:CheckReturnValue:ERROR 65 66include $(BUILD_JAVA_LIBRARY) 67 68endif # !TARGET_BUILD_PDK 69