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 15 LOCAL_PATH := $(call my-dir) 16 17 ifneq ($(TARGET_BUILD_PDK), true) 18 19 # Build the java code 20 # ============================================================ 21 22 wificond_aidl_path := system/connectivity/wificond/aidl 23 wificond_aidl_rel_path := ../../../../../$(wificond_aidl_path) 24 25 include $(CLEAR_VARS) 26 27 LOCAL_AIDL_INCLUDES := $(LOCAL_PATH)/java $(wificond_aidl_path) 28 LOCAL_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 33 LOCAL_JAVA_LIBRARIES := \ 34 android.hidl.manager-V1.2-java \ 35 error_prone_annotations \ 36 libprotobuf-java-lite \ 37 jsr305 \ 38 services 39 LOCAL_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 53 LOCAL_REQUIRED_MODULES := \ 54 services \ 55 libwifi-service \ 56 cacerts_wfa 57 LOCAL_MODULE_TAGS := 58 LOCAL_MODULE := wifi-service 59 LOCAL_INIT_RC := wifi-events.rc 60 61 LOCAL_DEX_PREOPT_APP_IMAGE := false 62 LOCAL_DEX_PREOPT_GENERATE_PROFILE := true 63 LOCAL_DEX_PREOPT_PROFILE_CLASS_LISTING := frameworks/base/services/art-profile 64 LOCAL_ERROR_PRONE_FLAGS := -Xep:CheckReturnValue:ERROR 65 66 include $(BUILD_JAVA_LIBRARY) 67 68 endif # !TARGET_BUILD_PDK 69