• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#########################################################################
2# Build FrameworksServicesTests package
3#########################################################################
4
5LOCAL_PATH:= $(call my-dir)
6include $(CLEAR_VARS)
7
8# We only want this apk build for tests.
9LOCAL_MODULE_TAGS := tests
10
11# Include all test java files.
12LOCAL_SRC_FILES := $(call all-java-files-under, src)
13
14LOCAL_STATIC_JAVA_LIBRARIES := \
15    frameworks-base-testutils \
16    services.core \
17    services.devicepolicy \
18    services.net \
19    services.usage \
20    easymocklib \
21    guava \
22    android-support-test \
23    mockito-target \
24    ShortcutManagerTestUtils
25
26LOCAL_JAVA_LIBRARIES := android.test.runner
27
28LOCAL_PACKAGE_NAME := FrameworksServicesTests
29
30LOCAL_CERTIFICATE := platform
31
32# These are not normally accessible from apps so they must be explicitly included.
33LOCAL_JNI_SHARED_LIBRARIES := libservicestestsjni \
34    libbacktrace \
35    libbase \
36    libbinder \
37    libc++ \
38    libcutils \
39    liblog \
40    liblzma \
41    libnativehelper \
42    libnetdaidl \
43    libui \
44    libunwind \
45    libutils
46
47LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
48
49include $(BUILD_PACKAGE)
50
51#########################################################################
52# Build JNI Shared Library
53#########################################################################
54
55LOCAL_PATH:= $(LOCAL_PATH)/jni
56
57include $(CLEAR_VARS)
58
59LOCAL_MODULE_TAGS := tests
60
61LOCAL_CFLAGS := -Wall -Wextra -Werror
62
63LOCAL_C_INCLUDES := \
64  libpcap \
65  hardware/google/apf
66
67LOCAL_SRC_FILES := $(call all-cpp-files-under)
68
69LOCAL_SHARED_LIBRARIES := \
70  libbinder \
71  libcutils \
72  libnativehelper \
73  libnetdaidl
74
75LOCAL_STATIC_LIBRARIES := \
76  libpcap \
77  libapf
78
79LOCAL_MODULE := libservicestestsjni
80
81include $(BUILD_SHARED_LIBRARY)
82