OSDN Git Service

Rate limit notification sounds/vibrations
[android-x86/frameworks-base.git] / services / Android.mk
1 LOCAL_PATH:= $(call my-dir)
2
3 # merge all required services into one jar
4 # ============================================================
5 include $(CLEAR_VARS)
6
7 LOCAL_MODULE := services
8 LOCAL_DEX_PREOPT_APP_IMAGE := true
9 LOCAL_DEX_PREOPT_GENERATE_PROFILE := true
10 LOCAL_DEX_PREOPT_PROFILE_CLASS_LISTING := $(LOCAL_PATH)/art-profile
11
12 LOCAL_SRC_FILES := $(call all-java-files-under,java)
13
14 # EventLogTags files.
15 LOCAL_SRC_FILES += \
16         core/java/com/android/server/EventLogTags.logtags
17
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 \
28     autofill \
29     backup \
30     companion \
31     coverage\
32     devicepolicy \
33     midi \
34     net \
35     print \
36     restrictions \
37     retaildemo \
38     usage \
39     usb \
40     voiceinteraction
41
42 # The convention is to name each service module 'services.$(module_name)'
43 LOCAL_STATIC_JAVA_LIBRARIES := $(addprefix services.,$(services)) \
44     android.hidl.base-V1.0-java-static \
45     android.hardware.biometrics.fingerprint-V2.1-java-static
46
47 LOCAL_JAVA_LIBRARIES := \
48     android.hidl.manager-V1.0-java
49
50 ifeq ($(EMMA_INSTRUMENT_FRAMEWORK),true)
51 LOCAL_EMMA_INSTRUMENT := true
52 endif
53
54 include $(BUILD_JAVA_LIBRARY)
55
56 # native library
57 # =============================================================
58
59 include $(CLEAR_VARS)
60
61 LOCAL_SRC_FILES :=
62 LOCAL_SHARED_LIBRARIES :=
63
64 # include all the jni subdirs to collect their sources
65 include $(wildcard $(LOCAL_PATH)/*/jni/Android.mk)
66
67 LOCAL_CFLAGS += -DEGL_EGLEXT_PROTOTYPES -DGL_GLEXT_PROTOTYPES
68
69 LOCAL_MODULE:= libandroid_servers
70
71 include $(BUILD_SHARED_LIBRARY)
72
73 # =============================================================
74
75 ifeq (,$(ONE_SHOT_MAKEFILE))
76 # A full make is happening, so make everything.
77 include $(call all-makefiles-under,$(LOCAL_PATH))
78 else
79 # If we ran an mm[m] command, we still want to build the individual
80 # services that we depend on. This differs from the above condition
81 # by only including service makefiles and not any tests or other
82 # modules.
83 include $(patsubst %,$(LOCAL_PATH)/%/Android.mk,$(services))
84 endif
85