OSDN Git Service

release-request-513a9883-0d18-4c2f-80ce-cadb234b4e89-for-git_nyc-mr2-pixel-monthly...
[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     midi \
28     net \
29     print \
30     restrictions \
31     retaildemo \
32     usage \
33     usb \
34     voiceinteraction
35
36 # The convention is to name each service module 'services.$(module_name)'
37 LOCAL_STATIC_JAVA_LIBRARIES := $(addprefix services.,$(services))
38
39 include $(BUILD_JAVA_LIBRARY)
40
41 # native library
42 # =============================================================
43
44 include $(CLEAR_VARS)
45
46 LOCAL_SRC_FILES :=
47 LOCAL_SHARED_LIBRARIES :=
48
49 # include all the jni subdirs to collect their sources
50 include $(wildcard $(LOCAL_PATH)/*/jni/Android.mk)
51
52 LOCAL_CFLAGS += -DEGL_EGLEXT_PROTOTYPES -DGL_GLEXT_PROTOTYPES
53
54 LOCAL_MODULE:= libandroid_servers
55
56 include $(BUILD_SHARED_LIBRARY)
57
58 # =============================================================
59
60 ifeq (,$(ONE_SHOT_MAKEFILE))
61 # A full make is happening, so make everything.
62 include $(call all-makefiles-under,$(LOCAL_PATH))
63 else
64 # If we ran an mm[m] command, we still want to build the individual
65 # services that we depend on. This differs from the above condition
66 # by only including service makefiles and not any tests or other
67 # modules.
68 include $(patsubst %,$(LOCAL_PATH)/%/Android.mk,$(services))
69 endif
70