blob: 5260540bb44bacca7a02d63eae18bc363f1337d2 [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
Adam Lesinski2cb6c602014-02-14 17:19:56 -080011# Uncomment to enable output of certain warnings (deprecated, unchecked)
12# LOCAL_JAVACFLAGS := -Xlint
13
14# Services that will be built as part of services.jar
15# These should map to directory names relative to this
16# Android.mk.
17services := \
18 core \
19 accessibility \
20 appwidget \
21 backup \
22 devicepolicy \
23 print \
24 usb
25
26# The convention is to name each service module 'services.$(module_name)'
27LOCAL_STATIC_JAVA_LIBRARIES := $(addprefix services.,$(services))
Amith Yamasani91588252013-11-22 08:25:26 -080028
29include $(BUILD_JAVA_LIBRARY)
30
Amith Yamasani91588252013-11-22 08:25:26 -080031# native library
32# =============================================================
33
34include $(CLEAR_VARS)
35
36LOCAL_SRC_FILES :=
37LOCAL_SHARED_LIBRARIES :=
38
39# include all the jni subdirs to collect their sources
40include $(wildcard $(LOCAL_PATH)/*/jni/Android.mk)
41
42LOCAL_CFLAGS += -DEGL_EGLEXT_PROTOTYPES -DGL_GLEXT_PROTOTYPES
43
44ifeq ($(WITH_MALLOC_LEAK_CHECK),true)
45 LOCAL_CFLAGS += -DMALLOC_LEAK_CHECK
46endif
47
48LOCAL_MODULE:= libandroid_servers
49
50include $(BUILD_SHARED_LIBRARY)
51
Adam Lesinski2cb6c602014-02-14 17:19:56 -080052# =============================================================
53
Amith Yamasani22eba282014-01-09 15:38:12 -080054ifeq (,$(ONE_SHOT_MAKEFILE))
Adam Lesinski2cb6c602014-02-14 17:19:56 -080055# A full make is happening, so make everything.
56include $(call all-makefiles-under,$(LOCAL_PATH))
57else
58# If we ran an mm[m] command, we still want to build the individual
59# services that we depend on. This differs from the above condition
60# by only including service makefiles and not any tests or other
61# modules.
62include $(patsubst %,$(LOCAL_PATH)/%/Android.mk,$(services))
Amith Yamasani22eba282014-01-09 15:38:12 -080063endif
64