blob: e4b0cbb7d18360ddd55f8f365407fe1097240e11 [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 \
25 backup \
26 devicepolicy \
Lorenzo Colittic95a87f2015-03-10 01:36:14 +090027 net \
Adam Lesinski2cb6c602014-02-14 17:19:56 -080028 print \
Amith Yamasanif20d6402014-05-24 15:34:37 -070029 restrictions \
Adam Lesinski0debc9a2014-07-16 19:09:13 -070030 usage \
Dianne Hackborn91097de2014-04-04 18:02:06 -070031 usb \
32 voiceinteraction
Adam Lesinski2cb6c602014-02-14 17:19:56 -080033
34# The convention is to name each service module 'services.$(module_name)'
35LOCAL_STATIC_JAVA_LIBRARIES := $(addprefix services.,$(services))
Amith Yamasani91588252013-11-22 08:25:26 -080036
37include $(BUILD_JAVA_LIBRARY)
38
Amith Yamasani91588252013-11-22 08:25:26 -080039# 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
52ifeq ($(WITH_MALLOC_LEAK_CHECK),true)
53 LOCAL_CFLAGS += -DMALLOC_LEAK_CHECK
54endif
55
56LOCAL_MODULE:= libandroid_servers
57
58include $(BUILD_SHARED_LIBRARY)
59
Adam Lesinski2cb6c602014-02-14 17:19:56 -080060# =============================================================
61
Amith Yamasani22eba282014-01-09 15:38:12 -080062ifeq (,$(ONE_SHOT_MAKEFILE))
Adam Lesinski2cb6c602014-02-14 17:19:56 -080063# A full make is happening, so make everything.
64include $(call all-makefiles-under,$(LOCAL_PATH))
65else
66# If we ran an mm[m] command, we still want to build the individual
67# services that we depend on. This differs from the above condition
68# by only including service makefiles and not any tests or other
69# modules.
70include $(patsubst %,$(LOCAL_PATH)/%/Android.mk,$(services))
Amith Yamasani22eba282014-01-09 15:38:12 -080071endif
72