blob: 6a73d5f653519be2c7af775166b6268da7ee6df1 [file] [log] [blame]
Amith Yamasani91588252013-11-22 08:25:26 -08001LOCAL_PATH:= $(call my-dir)
2
Adam Lesinski898c13d2014-01-28 15:34:50 -08003# merge all required services into one jar
Amith Yamasani91588252013-11-22 08:25:26 -08004# ============================================================
5include $(CLEAR_VARS)
6
Adam Lesinski898c13d2014-01-28 15:34:50 -08007LOCAL_MODULE := services
Mathieu Chartiera30bc6a2017-02-28 13:04:43 -08008LOCAL_DEX_PREOPT_APP_IMAGE := true
9LOCAL_DEX_PREOPT_GENERATE_PROFILE := true
Mathieu Chartier22b64ac2017-06-16 09:55:08 -070010LOCAL_DEX_PREOPT_PROFILE_CLASS_LISTING := $(LOCAL_PATH)/art-profile
Amith Yamasani91588252013-11-22 08:25:26 -080011
Adam Lesinski898c13d2014-01-28 15:34:50 -080012LOCAL_SRC_FILES := $(call all-java-files-under,java)
Amith Yamasani91588252013-11-22 08:25:26 -080013
Alan Viverette12cf3142014-03-17 15:31:04 -070014# EventLogTags files.
15LOCAL_SRC_FILES += \
16 core/java/com/android/server/EventLogTags.logtags
17
Adam Lesinski2cb6c602014-02-14 17:19:56 -080018# Uncomment to enable output of certain warnings (deprecated, unchecked)
19# LOCAL_JAVACFLAGS := -Xlint
20
21# Services that will be built as part of services.jar
22# These should map to directory names relative to this
23# Android.mk.
24services := \
25 core \
26 accessibility \
27 appwidget \
Felipe Leme5381aa42016-10-13 09:02:32 -070028 autofill \
Adam Lesinski2cb6c602014-02-14 17:19:56 -080029 backup \
Eugene Susla0d3dd122017-04-18 10:56:37 -070030 companion \
Allen Hair1f556e32016-11-11 15:42:50 -080031 coverage\
Adam Lesinski2cb6c602014-02-14 17:19:56 -080032 devicepolicy \
Mike Lockwood5781cd52015-03-27 13:23:41 -070033 midi \
Lorenzo Colittieca9b9b2015-03-10 01:36:14 +090034 net \
Adam Lesinski2cb6c602014-02-14 17:19:56 -080035 print \
Amith Yamasanif20d6402014-05-24 15:34:37 -070036 restrictions \
Suprabh Shukla64725012016-06-15 13:19:28 -070037 retaildemo \
Adam Lesinski0debc9a2014-07-16 19:09:13 -070038 usage \
Dianne Hackborn91097de2014-04-04 18:02:06 -070039 usb \
40 voiceinteraction
Adam Lesinski2cb6c602014-02-14 17:19:56 -080041
42# The convention is to name each service module 'services.$(module_name)'
Jim Miller40e46452016-12-16 18:38:53 -080043LOCAL_STATIC_JAVA_LIBRARIES := $(addprefix services.,$(services)) \
Andreas Huberf13eb2e2017-04-13 10:45:47 -070044 android.hidl.base-V1.0-java-static \
45 android.hardware.biometrics.fingerprint-V2.1-java-static
Amith Yamasani91588252013-11-22 08:25:26 -080046
Colin Crosse44d2ae2017-06-29 10:27:54 -070047LOCAL_JAVA_LIBRARIES := \
48 android.hidl.manager-V1.0-java
49
Allen Hair1f556e32016-11-11 15:42:50 -080050ifeq ($(EMMA_INSTRUMENT_FRAMEWORK),true)
51LOCAL_EMMA_INSTRUMENT := true
52endif
53
Amith Yamasani91588252013-11-22 08:25:26 -080054include $(BUILD_JAVA_LIBRARY)
55
Amith Yamasani91588252013-11-22 08:25:26 -080056# native library
57# =============================================================
58
59include $(CLEAR_VARS)
60
61LOCAL_SRC_FILES :=
62LOCAL_SHARED_LIBRARIES :=
63
64# include all the jni subdirs to collect their sources
65include $(wildcard $(LOCAL_PATH)/*/jni/Android.mk)
66
67LOCAL_CFLAGS += -DEGL_EGLEXT_PROTOTYPES -DGL_GLEXT_PROTOTYPES
68
Amith Yamasani91588252013-11-22 08:25:26 -080069LOCAL_MODULE:= libandroid_servers
70
71include $(BUILD_SHARED_LIBRARY)
72
Adam Lesinski2cb6c602014-02-14 17:19:56 -080073# =============================================================
74
Amith Yamasani22eba282014-01-09 15:38:12 -080075ifeq (,$(ONE_SHOT_MAKEFILE))
Adam Lesinski2cb6c602014-02-14 17:19:56 -080076# A full make is happening, so make everything.
77include $(call all-makefiles-under,$(LOCAL_PATH))
78else
79# If we ran an mm[m] command, we still want to build the individual
80# services that we depend on. This differs from the above condition
81# by only including service makefiles and not any tests or other
82# modules.
83include $(patsubst %,$(LOCAL_PATH)/%/Android.mk,$(services))
Amith Yamasani22eba282014-01-09 15:38:12 -080084endif
85