Vinit Deshpande | 155b9d0 | 2014-01-08 23:46:46 +0000 | [diff] [blame] | 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 | |
Colin Cross | 432674a | 2014-03-18 12:39:15 -0700 | [diff] [blame] | 17 | ifneq ($(TARGET_BUILD_PDK), true) |
| 18 | |
Vinit Deshpande | 155b9d0 | 2014-01-08 23:46:46 +0000 | [diff] [blame] | 19 | # Make the JNI part |
| 20 | # ============================================================ |
| 21 | include $(CLEAR_VARS) |
| 22 | |
Mitchell Wills | 208f92c | 2016-02-25 13:43:25 -0800 | [diff] [blame] | 23 | LOCAL_CFLAGS += -Wall -Werror -Wextra -Wno-unused-parameter -Wno-unused-function \ |
| 24 | -Wunused-variable -Winit-self -Wwrite-strings -Wshadow |
Vinit Deshpande | 155b9d0 | 2014-01-08 23:46:46 +0000 | [diff] [blame] | 25 | |
| 26 | LOCAL_C_INCLUDES += \ |
| 27 | $(JNI_H_INCLUDE) \ |
Vinit Deshapnde | 766cb4b | 2014-05-07 18:00:44 -0700 | [diff] [blame] | 28 | |
Vinit Deshpande | 155b9d0 | 2014-01-08 23:46:46 +0000 | [diff] [blame] | 29 | LOCAL_SHARED_LIBRARIES += \ |
Dimitry Ivanov | d1ee51c | 2016-02-12 17:06:26 -0800 | [diff] [blame] | 30 | liblog \ |
Vinit Deshpande | 155b9d0 | 2014-01-08 23:46:46 +0000 | [diff] [blame] | 31 | libnativehelper \ |
| 32 | libcutils \ |
| 33 | libutils \ |
Roshan Pius | b8b3fb8 | 2017-03-09 09:11:35 -0800 | [diff] [blame] | 34 | libdl |
Vinit Deshapnde | 7ef73dd | 2014-02-28 08:42:14 -0800 | [diff] [blame] | 35 | |
Vinit Deshapnde | 7f9a15d | 2014-05-07 16:29:44 -0700 | [diff] [blame] | 36 | LOCAL_SRC_FILES := \ |
| 37 | jni/com_android_server_wifi_WifiNative.cpp \ |
Etan Cohen | db3c9d3 | 2017-01-30 13:32:10 -0800 | [diff] [blame] | 38 | jni/jni_helper.cpp |
Etan Cohen | 956f54b | 2015-09-29 13:49:16 -0700 | [diff] [blame] | 39 | |
Vinit Deshpande | 155b9d0 | 2014-01-08 23:46:46 +0000 | [diff] [blame] | 40 | LOCAL_MODULE := libwifi-service |
| 41 | |
| 42 | include $(BUILD_SHARED_LIBRARY) |
Colin Cross | 432674a | 2014-03-18 12:39:15 -0700 | [diff] [blame] | 43 | |
Vinit Deshapnde | 766cb4b | 2014-05-07 18:00:44 -0700 | [diff] [blame] | 44 | # Build the java code |
Vinit Deshapnde | 7f9a15d | 2014-05-07 16:29:44 -0700 | [diff] [blame] | 45 | # ============================================================ |
| 46 | |
Christopher Wiley | ed63ba7 | 2016-06-24 11:16:54 -0700 | [diff] [blame] | 47 | wificond_aidl_path := system/connectivity/wificond/aidl |
| 48 | wificond_aidl_rel_path := ../../../../../$(wificond_aidl_path) |
| 49 | |
Vinit Deshapnde | 7f9a15d | 2014-05-07 16:29:44 -0700 | [diff] [blame] | 50 | include $(CLEAR_VARS) |
| 51 | |
Christopher Wiley | ed63ba7 | 2016-06-24 11:16:54 -0700 | [diff] [blame] | 52 | LOCAL_AIDL_INCLUDES := $(LOCAL_PATH)/java $(wificond_aidl_path) |
Vinit Deshapnde | 766cb4b | 2014-05-07 18:00:44 -0700 | [diff] [blame] | 53 | LOCAL_SRC_FILES := $(call all-java-files-under, java) \ |
| 54 | $(call all-Iaidl-files-under, java) \ |
Christopher Wiley | ed63ba7 | 2016-06-24 11:16:54 -0700 | [diff] [blame] | 55 | $(call all-Iaidl-files-under, $(wificond_aidl_rel_path)) \ |
Glen Kuhne | a1c695b | 2016-10-25 12:55:16 -0700 | [diff] [blame] | 56 | $(call all-logtags-files-under, java) |
Vinit Deshapnde | 7f9a15d | 2014-05-07 16:29:44 -0700 | [diff] [blame] | 57 | |
Roshan Pius | f1a963a | 2017-05-08 10:25:27 -0700 | [diff] [blame] | 58 | LOCAL_JAVA_LIBRARIES := \ |
| 59 | android.hidl.manager-V1.0-java \ |
| 60 | bouncycastle \ |
| 61 | conscrypt \ |
| 62 | jsr305 \ |
| 63 | services |
Etan Cohen | dd4dcab | 2017-01-19 19:55:25 -0800 | [diff] [blame] | 64 | LOCAL_STATIC_JAVA_LIBRARIES := \ |
Roshan Pius | f1a963a | 2017-05-08 10:25:27 -0700 | [diff] [blame] | 65 | android.hardware.wifi-V1.0-java \ |
Roshan Pius | ba89009 | 2017-07-06 15:29:07 -0700 | [diff] [blame] | 66 | android.hardware.wifi-V1.1-java \ |
Etan Cohen | ab706cc | 2017-12-21 08:59:37 -0800 | [diff] [blame] | 67 | android.hardware.wifi-V1.2-java \ |
Roshan Pius | 1fdc86f | 2017-12-08 13:22:57 -0800 | [diff] [blame] | 68 | android.hardware.wifi.supplicant-V1.0-java \ |
| 69 | android.hardware.wifi.supplicant-V1.1-java |
Garfield Tan | badaf65 | 2017-08-09 13:49:20 -0700 | [diff] [blame] | 70 | LOCAL_REQUIRED_MODULES := \ |
| 71 | services \ |
| 72 | libwifi-service |
Vinit Deshapnde | 766cb4b | 2014-05-07 18:00:44 -0700 | [diff] [blame] | 73 | LOCAL_MODULE_TAGS := |
| 74 | LOCAL_MODULE := wifi-service |
mukesh agrawal | 16518e5 | 2017-01-06 18:43:27 -0800 | [diff] [blame] | 75 | LOCAL_INIT_RC := wifi-events.rc |
mukesh agrawal | 16518e5 | 2017-01-06 18:43:27 -0800 | [diff] [blame] | 76 | |
Mathieu Chartier | 8f87f2d | 2017-06-16 15:27:10 -0700 | [diff] [blame] | 77 | LOCAL_DEX_PREOPT_APP_IMAGE := false |
| 78 | LOCAL_DEX_PREOPT_GENERATE_PROFILE := true |
| 79 | LOCAL_DEX_PREOPT_PROFILE_CLASS_LISTING := frameworks/base/services/art-profile |
| 80 | |
Allen Hair | 355a0da | 2016-08-25 17:09:49 -0700 | [diff] [blame] | 81 | |
Vinit Deshapnde | 766cb4b | 2014-05-07 18:00:44 -0700 | [diff] [blame] | 82 | include $(BUILD_JAVA_LIBRARY) |
Vinit Deshapnde | 7f9a15d | 2014-05-07 16:29:44 -0700 | [diff] [blame] | 83 | |
mukesh agrawal | 16518e5 | 2017-01-06 18:43:27 -0800 | [diff] [blame] | 84 | endif # !TARGET_BUILD_PDK |