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 |
Mathieu Chartier | a30bc6a | 2017-02-28 13:04:43 -0800 | [diff] [blame] | 8 | LOCAL_DEX_PREOPT_APP_IMAGE := true |
| 9 | LOCAL_DEX_PREOPT_GENERATE_PROFILE := true |
| 10 | LOCAL_DEX_PREOPT_PROFILE_CLASS_LISTING := $(LOCAL_PATH)/profile-classes |
Amith Yamasani | 9158825 | 2013-11-22 08:25:26 -0800 | [diff] [blame] | 11 | |
Adam Lesinski | 898c13d | 2014-01-28 15:34:50 -0800 | [diff] [blame] | 12 | LOCAL_SRC_FILES := $(call all-java-files-under,java) |
Amith Yamasani | 9158825 | 2013-11-22 08:25:26 -0800 | [diff] [blame] | 13 | |
Alan Viverette | 12cf314 | 2014-03-17 15:31:04 -0700 | [diff] [blame] | 14 | # EventLogTags files. |
| 15 | LOCAL_SRC_FILES += \ |
| 16 | core/java/com/android/server/EventLogTags.logtags |
| 17 | |
Adam Lesinski | 2cb6c60 | 2014-02-14 17:19:56 -0800 | [diff] [blame] | 18 | # Uncomment to enable output of certain warnings (deprecated, unchecked) |
| 19 | # LOCAL_JAVACFLAGS := -Xlint |
| 20 | |
| 21 | # Services that will be built as part of services.jar |
| 22 | # These should map to directory names relative to this |
| 23 | # Android.mk. |
| 24 | services := \ |
| 25 | core \ |
| 26 | accessibility \ |
| 27 | appwidget \ |
Felipe Leme | 5381aa4 | 2016-10-13 09:02:32 -0700 | [diff] [blame] | 28 | autofill \ |
Adam Lesinski | 2cb6c60 | 2014-02-14 17:19:56 -0800 | [diff] [blame] | 29 | backup \ |
Eugene Susla | 0d3dd12 | 2017-04-18 10:56:37 -0700 | [diff] [blame] | 30 | companion \ |
Allen Hair | 1f556e3 | 2016-11-11 15:42:50 -0800 | [diff] [blame] | 31 | coverage\ |
Adam Lesinski | 2cb6c60 | 2014-02-14 17:19:56 -0800 | [diff] [blame] | 32 | devicepolicy \ |
Mike Lockwood | 5781cd5 | 2015-03-27 13:23:41 -0700 | [diff] [blame] | 33 | midi \ |
Lorenzo Colitti | eca9b9b | 2015-03-10 01:36:14 +0900 | [diff] [blame] | 34 | net \ |
Adam Lesinski | 2cb6c60 | 2014-02-14 17:19:56 -0800 | [diff] [blame] | 35 | print \ |
Amith Yamasani | f20d640 | 2014-05-24 15:34:37 -0700 | [diff] [blame] | 36 | restrictions \ |
Adam Lesinski | 0debc9a | 2014-07-16 19:09:13 -0700 | [diff] [blame] | 37 | usage \ |
Dianne Hackborn | 91097de | 2014-04-04 18:02:06 -0700 | [diff] [blame] | 38 | usb \ |
| 39 | voiceinteraction |
Adam Lesinski | 2cb6c60 | 2014-02-14 17:19:56 -0800 | [diff] [blame] | 40 | |
| 41 | # The convention is to name each service module 'services.$(module_name)' |
Jim Miller | 40e4645 | 2016-12-16 18:38:53 -0800 | [diff] [blame] | 42 | LOCAL_STATIC_JAVA_LIBRARIES := $(addprefix services.,$(services)) \ |
Steven Moreland | 3068930 | 2017-08-02 09:02:13 -0700 | [diff] [blame] | 43 | android.hidl.base-V1.0-java \ |
| 44 | android.hardware.biometrics.fingerprint-V2.1-java |
Amith Yamasani | 9158825 | 2013-11-22 08:25:26 -0800 | [diff] [blame] | 45 | |
Allen Hair | 1f556e3 | 2016-11-11 15:42:50 -0800 | [diff] [blame] | 46 | ifeq ($(EMMA_INSTRUMENT_FRAMEWORK),true) |
| 47 | LOCAL_EMMA_INSTRUMENT := true |
| 48 | endif |
| 49 | |
Amith Yamasani | 9158825 | 2013-11-22 08:25:26 -0800 | [diff] [blame] | 50 | include $(BUILD_JAVA_LIBRARY) |
| 51 | |
Amith Yamasani | 9158825 | 2013-11-22 08:25:26 -0800 | [diff] [blame] | 52 | # native library |
| 53 | # ============================================================= |
| 54 | |
| 55 | include $(CLEAR_VARS) |
| 56 | |
| 57 | LOCAL_SRC_FILES := |
| 58 | LOCAL_SHARED_LIBRARIES := |
| 59 | |
| 60 | # include all the jni subdirs to collect their sources |
| 61 | include $(wildcard $(LOCAL_PATH)/*/jni/Android.mk) |
| 62 | |
| 63 | LOCAL_CFLAGS += -DEGL_EGLEXT_PROTOTYPES -DGL_GLEXT_PROTOTYPES |
| 64 | |
Amith Yamasani | 9158825 | 2013-11-22 08:25:26 -0800 | [diff] [blame] | 65 | LOCAL_MODULE:= libandroid_servers |
| 66 | |
| 67 | include $(BUILD_SHARED_LIBRARY) |
| 68 | |
Adam Lesinski | 2cb6c60 | 2014-02-14 17:19:56 -0800 | [diff] [blame] | 69 | # ============================================================= |
| 70 | |
Amith Yamasani | 22eba28 | 2014-01-09 15:38:12 -0800 | [diff] [blame] | 71 | ifeq (,$(ONE_SHOT_MAKEFILE)) |
Adam Lesinski | 2cb6c60 | 2014-02-14 17:19:56 -0800 | [diff] [blame] | 72 | # A full make is happening, so make everything. |
| 73 | include $(call all-makefiles-under,$(LOCAL_PATH)) |
| 74 | else |
| 75 | # If we ran an mm[m] command, we still want to build the individual |
| 76 | # services that we depend on. This differs from the above condition |
| 77 | # by only including service makefiles and not any tests or other |
| 78 | # modules. |
| 79 | include $(patsubst %,$(LOCAL_PATH)/%/Android.mk,$(services)) |
Amith Yamasani | 22eba28 | 2014-01-09 15:38:12 -0800 | [diff] [blame] | 80 | endif |
| 81 | |