blob: e760fe2bed13e5b6ab0525e4543428f07581b291 [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
Amith Yamasani91588252013-11-22 08:25:26 -08008
Adam Lesinski898c13d2014-01-28 15:34:50 -08009LOCAL_SRC_FILES := $(call all-java-files-under,java)
Amith Yamasani91588252013-11-22 08:25:26 -080010
Alan Viverette12cf3142014-03-17 15:31:04 -070011# EventLogTags files.
12LOCAL_SRC_FILES += \
13 core/java/com/android/server/EventLogTags.logtags
14
Adam Lesinski2cb6c602014-02-14 17:19:56 -080015# Uncomment to enable output of certain warnings (deprecated, unchecked)
16# LOCAL_JAVACFLAGS := -Xlint
17
18# Services that will be built as part of services.jar
19# These should map to directory names relative to this
20# Android.mk.
21services := \
22 core \
23 accessibility \
24 appwidget \
Felipe Leme5381aa42016-10-13 09:02:32 -070025 autofill \
Adam Lesinski2cb6c602014-02-14 17:19:56 -080026 backup \
Allen Hair1f556e32016-11-11 15:42:50 -080027 coverage\
Adam Lesinski2cb6c602014-02-14 17:19:56 -080028 devicepolicy \
Mike Lockwood5781cd52015-03-27 13:23:41 -070029 midi \
Lorenzo Colittieca9b9b2015-03-10 01:36:14 +090030 net \
Adam Lesinski2cb6c602014-02-14 17:19:56 -080031 print \
Amith Yamasanif20d6402014-05-24 15:34:37 -070032 restrictions \
Suprabh Shukla64725012016-06-15 13:19:28 -070033 retaildemo \
Adam Lesinski0debc9a2014-07-16 19:09:13 -070034 usage \
Dianne Hackborn91097de2014-04-04 18:02:06 -070035 usb \
36 voiceinteraction
Adam Lesinski2cb6c602014-02-14 17:19:56 -080037
38# The convention is to name each service module 'services.$(module_name)'
Jim Miller40e46452016-12-16 18:38:53 -080039LOCAL_STATIC_JAVA_LIBRARIES := $(addprefix services.,$(services)) \
Jim Miller163c7d32017-01-17 14:56:57 -080040 android.hidl.base@1.0-java-static \
41 android.hardware.biometrics.fingerprint@2.1-java-static
Amith Yamasani91588252013-11-22 08:25:26 -080042
Allen Hair1f556e32016-11-11 15:42:50 -080043ifeq ($(EMMA_INSTRUMENT_FRAMEWORK),true)
44LOCAL_EMMA_INSTRUMENT := true
45endif
46
Amith Yamasani91588252013-11-22 08:25:26 -080047include $(BUILD_JAVA_LIBRARY)
48
Amith Yamasani91588252013-11-22 08:25:26 -080049# native library
50# =============================================================
51
52include $(CLEAR_VARS)
53
54LOCAL_SRC_FILES :=
55LOCAL_SHARED_LIBRARIES :=
56
57# include all the jni subdirs to collect their sources
58include $(wildcard $(LOCAL_PATH)/*/jni/Android.mk)
59
60LOCAL_CFLAGS += -DEGL_EGLEXT_PROTOTYPES -DGL_GLEXT_PROTOTYPES
61
Amith Yamasani91588252013-11-22 08:25:26 -080062LOCAL_MODULE:= libandroid_servers
63
64include $(BUILD_SHARED_LIBRARY)
65
Adam Lesinski2cb6c602014-02-14 17:19:56 -080066# =============================================================
67
Amith Yamasani22eba282014-01-09 15:38:12 -080068ifeq (,$(ONE_SHOT_MAKEFILE))
Adam Lesinski2cb6c602014-02-14 17:19:56 -080069# A full make is happening, so make everything.
70include $(call all-makefiles-under,$(LOCAL_PATH))
71else
72# If we ran an mm[m] command, we still want to build the individual
73# services that we depend on. This differs from the above condition
74# by only including service makefiles and not any tests or other
75# modules.
76include $(patsubst %,$(LOCAL_PATH)/%/Android.mk,$(services))
Amith Yamasani22eba282014-01-09 15:38:12 -080077endif
78