blob: 7b3b1158199614d6182b58b6dc1e257eac04ec33 [file] [log] [blame]
Vinit Deshpande155b9d02014-01-08 23:46:46 +00001# 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
Colin Cross432674a2014-03-18 12:39:15 -070017ifneq ($(TARGET_BUILD_PDK), true)
18
Vinit Deshpande155b9d02014-01-08 23:46:46 +000019# Make the JNI part
20# ============================================================
21include $(CLEAR_VARS)
22
Mitchell Wills208f92c2016-02-25 13:43:25 -080023LOCAL_CFLAGS += -Wall -Werror -Wextra -Wno-unused-parameter -Wno-unused-function \
24 -Wunused-variable -Winit-self -Wwrite-strings -Wshadow
Vinit Deshpande155b9d02014-01-08 23:46:46 +000025
26LOCAL_C_INCLUDES += \
27 $(JNI_H_INCLUDE) \
Vinit Deshapnde766cb4b2014-05-07 18:00:44 -070028
Vinit Deshpande155b9d02014-01-08 23:46:46 +000029LOCAL_SHARED_LIBRARIES += \
Dimitry Ivanovd1ee51c2016-02-12 17:06:26 -080030 liblog \
Vinit Deshpande155b9d02014-01-08 23:46:46 +000031 libnativehelper \
32 libcutils \
33 libutils \
Roshan Piusb8b3fb82017-03-09 09:11:35 -080034 libdl
Vinit Deshapnde7ef73dd2014-02-28 08:42:14 -080035
Vinit Deshapnde7f9a15d2014-05-07 16:29:44 -070036LOCAL_SRC_FILES := \
37 jni/com_android_server_wifi_WifiNative.cpp \
Etan Cohendb3c9d32017-01-30 13:32:10 -080038 jni/jni_helper.cpp
Etan Cohen956f54b2015-09-29 13:49:16 -070039
Vinit Deshpande155b9d02014-01-08 23:46:46 +000040LOCAL_MODULE := libwifi-service
41
42include $(BUILD_SHARED_LIBRARY)
Colin Cross432674a2014-03-18 12:39:15 -070043
Vinit Deshapnde766cb4b2014-05-07 18:00:44 -070044# Build the java code
Vinit Deshapnde7f9a15d2014-05-07 16:29:44 -070045# ============================================================
46
Christopher Wileyed63ba72016-06-24 11:16:54 -070047wificond_aidl_path := system/connectivity/wificond/aidl
48wificond_aidl_rel_path := ../../../../../$(wificond_aidl_path)
49
Vinit Deshapnde7f9a15d2014-05-07 16:29:44 -070050include $(CLEAR_VARS)
51
Christopher Wileyed63ba72016-06-24 11:16:54 -070052LOCAL_AIDL_INCLUDES := $(LOCAL_PATH)/java $(wificond_aidl_path)
Vinit Deshapnde766cb4b2014-05-07 18:00:44 -070053LOCAL_SRC_FILES := $(call all-java-files-under, java) \
54 $(call all-Iaidl-files-under, java) \
Christopher Wileyed63ba72016-06-24 11:16:54 -070055 $(call all-Iaidl-files-under, $(wificond_aidl_rel_path)) \
Glen Kuhnea1c695b2016-10-25 12:55:16 -070056 $(call all-logtags-files-under, java)
Vinit Deshapnde7f9a15d2014-05-07 16:29:44 -070057
Roshan Piusf1a963a2017-05-08 10:25:27 -070058LOCAL_JAVA_LIBRARIES := \
59 android.hidl.manager-V1.0-java \
60 bouncycastle \
61 conscrypt \
62 jsr305 \
63 services
Etan Cohendd4dcab2017-01-19 19:55:25 -080064LOCAL_STATIC_JAVA_LIBRARIES := \
Roshan Piusf1a963a2017-05-08 10:25:27 -070065 android.hardware.wifi-V1.0-java \
Roshan Piusba890092017-07-06 15:29:07 -070066 android.hardware.wifi-V1.1-java \
Roshan Piusf1a963a2017-05-08 10:25:27 -070067 android.hardware.wifi.supplicant-V1.0-java
Garfield Tanf3c1e412017-08-09 13:49:20 -070068LOCAL_REQUIRED_MODULES := \
69 services \
70 libwifi-service
Vinit Deshapnde766cb4b2014-05-07 18:00:44 -070071LOCAL_MODULE_TAGS :=
72LOCAL_MODULE := wifi-service
mukesh agrawal16518e52017-01-06 18:43:27 -080073LOCAL_INIT_RC := wifi-events.rc
mukesh agrawal16518e52017-01-06 18:43:27 -080074
Mathieu Chartier8f87f2d2017-06-16 15:27:10 -070075LOCAL_DEX_PREOPT_APP_IMAGE := false
76LOCAL_DEX_PREOPT_GENERATE_PROFILE := true
77LOCAL_DEX_PREOPT_PROFILE_CLASS_LISTING := frameworks/base/services/art-profile
78
Allen Hair355a0da2016-08-25 17:09:49 -070079
Vinit Deshapnde766cb4b2014-05-07 18:00:44 -070080include $(BUILD_JAVA_LIBRARY)
Vinit Deshapnde7f9a15d2014-05-07 16:29:44 -070081
mukesh agrawal16518e52017-01-06 18:43:27 -080082endif # !TARGET_BUILD_PDK