Android.mk revision f20d640fa2b155a971ddfe0965fc803a73b5e53c
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 print \ 28 restrictions \ 29 usb \ 30 voiceinteraction 31 32# The convention is to name each service module 'services.$(module_name)' 33LOCAL_STATIC_JAVA_LIBRARIES := $(addprefix services.,$(services)) 34 35include $(BUILD_JAVA_LIBRARY) 36 37# native library 38# ============================================================= 39 40include $(CLEAR_VARS) 41 42LOCAL_SRC_FILES := 43LOCAL_SHARED_LIBRARIES := 44 45# include all the jni subdirs to collect their sources 46include $(wildcard $(LOCAL_PATH)/*/jni/Android.mk) 47 48LOCAL_CFLAGS += -DEGL_EGLEXT_PROTOTYPES -DGL_GLEXT_PROTOTYPES 49 50ifeq ($(WITH_MALLOC_LEAK_CHECK),true) 51 LOCAL_CFLAGS += -DMALLOC_LEAK_CHECK 52endif 53 54LOCAL_MODULE:= libandroid_servers 55 56include $(BUILD_SHARED_LIBRARY) 57 58# ============================================================= 59 60ifeq (,$(ONE_SHOT_MAKEFILE)) 61# A full make is happening, so make everything. 62include $(call all-makefiles-under,$(LOCAL_PATH)) 63else 64# If we ran an mm[m] command, we still want to build the individual 65# services that we depend on. This differs from the above condition 66# by only including service makefiles and not any tests or other 67# modules. 68include $(patsubst %,$(LOCAL_PATH)/%/Android.mk,$(services)) 69endif 70 71