summaryrefslogtreecommitdiffstats
path: root/service/Android.mk
blob: b396214c715ddac4a0a3f12f5be79b3d5ddb0227 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Copyright (C) 2011 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

LOCAL_PATH := $(call my-dir)

ifneq ($(TARGET_BUILD_PDK), true)

# Build the java code
# ============================================================

wificond_aidl_path := system/connectivity/wificond/aidl
wificond_aidl_rel_path := ../../../../../$(wificond_aidl_path)

include $(CLEAR_VARS)

LOCAL_AIDL_INCLUDES := $(LOCAL_PATH)/java $(wificond_aidl_path)
LOCAL_SRC_FILES := $(call all-java-files-under, java) \
	$(call all-Iaidl-files-under, java) \
	$(call all-Iaidl-files-under, $(wificond_aidl_rel_path)) \
	$(call all-logtags-files-under, java)

LOCAL_JAVA_LIBRARIES := \
	android.hidl.manager-V1.2-java \
	error_prone_annotations \
	libprotobuf-java-lite \
	jsr305 \
	services
LOCAL_STATIC_JAVA_LIBRARIES := \
	android.hardware.wifi-V1.0-java \
	android.hardware.wifi-V1.1-java \
	android.hardware.wifi-V1.2-java \
	android.hardware.wifi-V1.3-java \
	android.hardware.wifi.hostapd-V1.0-java \
	android.hardware.wifi.hostapd-V1.1-java \
	android.hardware.wifi.supplicant-V1.0-java \
	android.hardware.wifi.supplicant-V1.1-java \
	android.hardware.wifi.supplicant-V1.2-java \
	wifi_service_proto \
	ksoap2 \
	libnanohttpd

LOCAL_REQUIRED_MODULES := \
	services \
	libwifi-service \
	cacerts_wfa
LOCAL_MODULE_TAGS :=
LOCAL_MODULE := wifi-service
LOCAL_INIT_RC := wifi-events.rc

LOCAL_DEX_PREOPT_APP_IMAGE := false
LOCAL_DEX_PREOPT_GENERATE_PROFILE := true
LOCAL_DEX_PREOPT_PROFILE_CLASS_LISTING := frameworks/base/services/art-profile
LOCAL_ERROR_PRONE_FLAGS := -Xep:CheckReturnValue:ERROR

include $(BUILD_JAVA_LIBRARY)

endif  # !TARGET_BUILD_PDK