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 # Make the JNI part 20 # ============================================================ 21 include $(CLEAR_VARS) 22 23 LOCAL_CFLAGS += -Wall -Werror -Wextra -Wno-unused-parameter -Wno-unused-function \ 24 -Wunused-variable -Winit-self -Wwrite-strings -Wshadow 25 26 LOCAL_C_INCLUDES += \ 27 $(JNI_H_INCLUDE) \ 28 29 LOCAL_SHARED_LIBRARIES += \ 30 liblog \ 31 libnativehelper \ 32 libcutils \ 33 libutils \ 34 libdl 35 36 LOCAL_SRC_FILES := \ 37 jni/com_android_server_wifi_WifiNative.cpp \ 38 jni/jni_helper.cpp 39 40 LOCAL_MODULE := libwifi-service 41 42 include $(BUILD_SHARED_LIBRARY) 43 44 # Build the java code 45 # ============================================================ 46 47 wificond_aidl_path := system/connectivity/wificond/aidl 48 wificond_aidl_rel_path := ../../../../../$(wificond_aidl_path) 49 50 include $(CLEAR_VARS) 51 52 LOCAL_AIDL_INCLUDES := $(LOCAL_PATH)/java $(wificond_aidl_path) 53 LOCAL_SRC_FILES := $(call all-java-files-under, java) \ 54 $(call all-Iaidl-files-under, java) \ 55 $(call all-Iaidl-files-under, $(wificond_aidl_rel_path)) \ 56 $(call all-logtags-files-under, java) 57 58 LOCAL_JAVA_LIBRARIES := \ 59 android.hidl.manager-V1.0-java \ 60 bouncycastle \ 61 conscrypt \ 62 jsr305 \ 63 services 64 LOCAL_STATIC_JAVA_LIBRARIES := \ 65 android.hardware.wifi-V1.0-java \ 66 android.hardware.wifi-V1.1-java \ 67 android.hardware.wifi.supplicant-V1.0-java 68 LOCAL_REQUIRED_MODULES := services 69 LOCAL_MODULE_TAGS := 70 LOCAL_MODULE := wifi-service 71 LOCAL_INIT_RC := wifi-events.rc 72 73 LOCAL_DEX_PREOPT_APP_IMAGE := false 74 LOCAL_DEX_PREOPT_GENERATE_PROFILE := true 75 LOCAL_DEX_PREOPT_PROFILE_CLASS_LISTING := frameworks/base/services/art-profile 76 77 ifeq ($(EMMA_INSTRUMENT_FRAMEWORK),true) 78 LOCAL_EMMA_INSTRUMENT := true 79 endif 80 81 LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.server.wifi.* 82 83 include $(BUILD_JAVA_LIBRARY) 84 85 endif # !TARGET_BUILD_PDK 86