Amith Yamasani | 9158825 | 2013-11-22 08:25:26 -0800 | [diff] [blame] | 1 | LOCAL_PATH:= $(call my-dir) |
| 2 | |
Adam Lesinski | 898c13d | 2014-01-28 15:34:50 -0800 | [diff] [blame] | 3 | # merge all required services into one jar |
Amith Yamasani | 9158825 | 2013-11-22 08:25:26 -0800 | [diff] [blame] | 4 | # ============================================================ |
| 5 | include $(CLEAR_VARS) |
| 6 | |
Adam Lesinski | 898c13d | 2014-01-28 15:34:50 -0800 | [diff] [blame] | 7 | LOCAL_MODULE := services |
Amith Yamasani | 9158825 | 2013-11-22 08:25:26 -0800 | [diff] [blame] | 8 | |
Adam Lesinski | 898c13d | 2014-01-28 15:34:50 -0800 | [diff] [blame] | 9 | LOCAL_SRC_FILES := $(call all-java-files-under,java) |
Amith Yamasani | 9158825 | 2013-11-22 08:25:26 -0800 | [diff] [blame] | 10 | |
Alan Viverette | 12cf314 | 2014-03-17 15:31:04 -0700 | [diff] [blame] | 11 | # EventLogTags files. |
| 12 | LOCAL_SRC_FILES += \ |
| 13 | core/java/com/android/server/EventLogTags.logtags |
| 14 | |
Adam Lesinski | 2cb6c60 | 2014-02-14 17:19:56 -0800 | [diff] [blame] | 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. |
| 21 | services := \ |
| 22 | core \ |
| 23 | accessibility \ |
| 24 | appwidget \ |
| 25 | backup \ |
| 26 | devicepolicy \ |
Mike Lockwood | 5781cd5 | 2015-03-27 13:23:41 -0700 | [diff] [blame] | 27 | midi \ |
Lorenzo Colitti | eca9b9b | 2015-03-10 01:36:14 +0900 | [diff] [blame] | 28 | net \ |
Adam Lesinski | 2cb6c60 | 2014-02-14 17:19:56 -0800 | [diff] [blame] | 29 | print \ |
Amith Yamasani | f20d640 | 2014-05-24 15:34:37 -0700 | [diff] [blame] | 30 | restrictions \ |
Adam Lesinski | 0debc9a | 2014-07-16 19:09:13 -0700 | [diff] [blame] | 31 | usage \ |
Dianne Hackborn | 91097de | 2014-04-04 18:02:06 -0700 | [diff] [blame] | 32 | usb \ |
| 33 | voiceinteraction |
Adam Lesinski | 2cb6c60 | 2014-02-14 17:19:56 -0800 | [diff] [blame] | 34 | |
| 35 | # The convention is to name each service module 'services.$(module_name)' |
| 36 | LOCAL_STATIC_JAVA_LIBRARIES := $(addprefix services.,$(services)) |
Amith Yamasani | 9158825 | 2013-11-22 08:25:26 -0800 | [diff] [blame] | 37 | |
| 38 | include $(BUILD_JAVA_LIBRARY) |
| 39 | |
Amith Yamasani | 9158825 | 2013-11-22 08:25:26 -0800 | [diff] [blame] | 40 | # native library |
| 41 | # ============================================================= |
| 42 | |
| 43 | include $(CLEAR_VARS) |
| 44 | |
| 45 | LOCAL_SRC_FILES := |
| 46 | LOCAL_SHARED_LIBRARIES := |
| 47 | |
| 48 | # include all the jni subdirs to collect their sources |
| 49 | include $(wildcard $(LOCAL_PATH)/*/jni/Android.mk) |
| 50 | |
| 51 | LOCAL_CFLAGS += -DEGL_EGLEXT_PROTOTYPES -DGL_GLEXT_PROTOTYPES |
| 52 | |
Amith Yamasani | 9158825 | 2013-11-22 08:25:26 -0800 | [diff] [blame] | 53 | LOCAL_MODULE:= libandroid_servers |
| 54 | |
| 55 | include $(BUILD_SHARED_LIBRARY) |
| 56 | |
Adam Lesinski | 2cb6c60 | 2014-02-14 17:19:56 -0800 | [diff] [blame] | 57 | # ============================================================= |
| 58 | |
Amith Yamasani | 22eba28 | 2014-01-09 15:38:12 -0800 | [diff] [blame] | 59 | ifeq (,$(ONE_SHOT_MAKEFILE)) |
Adam Lesinski | 2cb6c60 | 2014-02-14 17:19:56 -0800 | [diff] [blame] | 60 | # A full make is happening, so make everything. |
| 61 | include $(call all-makefiles-under,$(LOCAL_PATH)) |
| 62 | else |
| 63 | # If we ran an mm[m] command, we still want to build the individual |
| 64 | # services that we depend on. This differs from the above condition |
| 65 | # by only including service makefiles and not any tests or other |
| 66 | # modules. |
| 67 | include $(patsubst %,$(LOCAL_PATH)/%/Android.mk,$(services)) |
Amith Yamasani | 22eba28 | 2014-01-09 15:38:12 -0800 | [diff] [blame] | 68 | endif |
| 69 | |