OSDN Git Service

DO NOT MERGE. Grant MMS Uri permissions as the calling UID.
[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
9 LOCAL_SRC_FILES := $(call all-java-files-under,java)
10
11 # EventLogTags files.
12 LOCAL_SRC_FILES += \
13         core/java/com/android/server/EventLogTags.logtags
14
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 \
27     print \
28     restrictions \
29     usage \
30     usb \
31     voiceinteraction
32
33 # The convention is to name each service module 'services.$(module_name)'
34 LOCAL_STATIC_JAVA_LIBRARIES := $(addprefix services.,$(services))
35
36 include $(BUILD_JAVA_LIBRARY)
37
38 # native library
39 # =============================================================
40
41 include $(CLEAR_VARS)
42
43 LOCAL_SRC_FILES :=
44 LOCAL_SHARED_LIBRARIES :=
45
46 # include all the jni subdirs to collect their sources
47 include $(wildcard $(LOCAL_PATH)/*/jni/Android.mk)
48
49 LOCAL_CFLAGS += -DEGL_EGLEXT_PROTOTYPES -DGL_GLEXT_PROTOTYPES
50
51 ifeq ($(WITH_MALLOC_LEAK_CHECK),true)
52     LOCAL_CFLAGS += -DMALLOC_LEAK_CHECK
53 endif
54
55 LOCAL_MODULE:= libandroid_servers
56
57 include $(BUILD_SHARED_LIBRARY)
58
59 # =============================================================
60
61 ifeq (,$(ONE_SHOT_MAKEFILE))
62 # A full make is happening, so make everything.
63 include $(call all-makefiles-under,$(LOCAL_PATH))
64 else
65 # If we ran an mm[m] command, we still want to build the individual
66 # services that we depend on. This differs from the above condition
67 # by only including service makefiles and not any tests or other
68 # modules.
69 include $(patsubst %,$(LOCAL_PATH)/%/Android.mk,$(services))
70 endif
71