1LOCAL_PATH:= $(call my-dir) 2 3# merge all required services into one jar 4# ============================================================ 5include $(CLEAR_VARS) 6 7LOCAL_MODULE := services 8LOCAL_DEX_PREOPT_APP_IMAGE := true 9LOCAL_DEX_PREOPT_GENERATE_PROFILE := true 10LOCAL_DEX_PREOPT_PROFILE_CLASS_LISTING := $(LOCAL_PATH)/art-profile 11 12LOCAL_SRC_FILES := $(call all-java-files-under,java) 13 14# EventLogTags files. 15LOCAL_SRC_FILES += \ 16 core/java/com/android/server/EventLogTags.logtags 17 18# 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 \ 28 autofill \ 29 backup \ 30 companion \ 31 coverage\ 32 devicepolicy \ 33 midi \ 34 net \ 35 print \ 36 restrictions \ 37 usage \ 38 usb \ 39 voiceinteraction 40 41# The convention is to name each service module 'services.$(module_name)' 42LOCAL_STATIC_JAVA_LIBRARIES := $(addprefix services.,$(services)) \ 43 android.hidl.base-V1.0-java-static \ 44 android.hardware.biometrics.fingerprint-V2.1-java-static 45 46LOCAL_JAVA_LIBRARIES := \ 47 android.hidl.manager-V1.0-java 48 49ifeq ($(EMMA_INSTRUMENT_FRAMEWORK),true) 50LOCAL_EMMA_INSTRUMENT := true 51endif 52 53include $(BUILD_JAVA_LIBRARY) 54 55# native library 56# ============================================================= 57 58include $(CLEAR_VARS) 59 60LOCAL_SRC_FILES := 61LOCAL_SHARED_LIBRARIES := 62 63# include all the jni subdirs to collect their sources 64include $(wildcard $(LOCAL_PATH)/*/jni/Android.mk) 65 66LOCAL_CFLAGS += -DEGL_EGLEXT_PROTOTYPES -DGL_GLEXT_PROTOTYPES 67 68LOCAL_MODULE:= libandroid_servers 69 70include $(BUILD_SHARED_LIBRARY) 71 72# ============================================================= 73 74ifeq (,$(ONE_SHOT_MAKEFILE)) 75# A full make is happening, so make everything. 76include $(call all-makefiles-under,$(LOCAL_PATH)) 77else 78# If we ran an mm[m] command, we still want to build the individual 79# services that we depend on. This differs from the above condition 80# by only including service makefiles and not any tests or other 81# modules. 82include $(patsubst %,$(LOCAL_PATH)/%/Android.mk,$(services)) 83endif 84 85