Android.mk revision eca9b9bd8b9a4d0a2de8af8edc20834dd46b98b3
1LOCAL_PATH:= $(call my-dir) 2 3# merge all required services into one jar 4# ============================================================ 5include $(CLEAR_VARS) 6 7LOCAL_MODULE := services 8 9LOCAL_SRC_FILES := $(call all-java-files-under,java) 10 11# EventLogTags files. 12LOCAL_SRC_FILES += \ 13 core/java/com/android/server/EventLogTags.logtags 14 15# 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 \ 25 backup \ 26 devicepolicy \ 27 net \ 28 print \ 29 restrictions \ 30 usage \ 31 usb \ 32 voiceinteraction 33 34# The convention is to name each service module 'services.$(module_name)' 35LOCAL_STATIC_JAVA_LIBRARIES := $(addprefix services.,$(services)) 36 37include $(BUILD_JAVA_LIBRARY) 38 39# native library 40# ============================================================= 41 42include $(CLEAR_VARS) 43 44LOCAL_SRC_FILES := 45LOCAL_SHARED_LIBRARIES := 46 47# include all the jni subdirs to collect their sources 48include $(wildcard $(LOCAL_PATH)/*/jni/Android.mk) 49 50LOCAL_CFLAGS += -DEGL_EGLEXT_PROTOTYPES -DGL_GLEXT_PROTOTYPES 51 52LOCAL_MODULE:= libandroid_servers 53 54include $(BUILD_SHARED_LIBRARY) 55 56# ============================================================= 57 58ifeq (,$(ONE_SHOT_MAKEFILE)) 59# A full make is happening, so make everything. 60include $(call all-makefiles-under,$(LOCAL_PATH)) 61else 62# If we ran an mm[m] command, we still want to build the individual 63# services that we depend on. This differs from the above condition 64# by only including service makefiles and not any tests or other 65# modules. 66include $(patsubst %,$(LOCAL_PATH)/%/Android.mk,$(services)) 67endif 68 69