blob: 50e0662ad4d407e2844bf2db7f0dc668ba76c127 [file] [log] [blame]
Paul Jensend38fb7662016-01-07 23:13:19 -05001#########################################################################
2# Build FrameworksServicesTests package
3#########################################################################
4
Neal Nguyen1a44d5d2010-01-13 10:42:43 -08005LOCAL_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
Jeff Sharkeyb7342ac2011-04-25 23:44:11 -070014LOCAL_STATIC_JAVA_LIBRARIES := \
Christopher Wiley1cc6ffd2016-05-18 16:32:44 -070015 frameworks-base-testutils \
Narayan Kamathd8b54e82014-08-21 12:25:24 +010016 services.core \
17 services.devicepolicy \
Lorenzo Colittia12bde32015-03-31 16:26:57 +090018 services.net \
Amith Yamasania93542f2016-02-03 18:02:06 -080019 services.usage \
Jeff Sharkeyb7342ac2011-04-25 23:44:11 -070020 easymocklib \
Jeff Sharkeyfb878b62012-07-26 18:32:30 -070021 guava \
Xiaohui Chenf86676a2015-08-19 13:30:07 -070022 android-support-test \
Makoto Onuki5ba0d3e2016-04-11 14:03:46 -070023 mockito-target \
24 ShortcutManagerTestUtils
Neal Nguyen1a44d5d2010-01-13 10:42:43 -080025
Narayan Kamathd8b54e82014-08-21 12:25:24 +010026LOCAL_JAVA_LIBRARIES := android.test.runner
Svetoslav Ganov0b29a582010-04-16 18:52:49 -070027
Neal Nguyen1a44d5d2010-01-13 10:42:43 -080028LOCAL_PACKAGE_NAME := FrameworksServicesTests
29
Neal Nguyen3433d3c2010-02-02 17:09:00 -080030LOCAL_CERTIFICATE := platform
31
Robin Leecfe26692016-04-05 12:19:06 +010032# These are not normally accessible from apps so they must be explicitly included.
33LOCAL_JNI_SHARED_LIBRARIES := libservicestestsjni \
34 libbacktrace \
35 libbase \
36 libbinder \
Paul Jensen5f3dec32016-02-07 21:55:45 -050037 libc++ \
Robin Leecfe26692016-04-05 12:19:06 +010038 libcutils \
39 liblog \
40 liblzma \
41 libnativehelper \
42 libnetdaidl \
43 libui \
44 libunwind \
45 libutils
46
47LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
Paul Jensend38fb7662016-01-07 23:13:19 -050048
Neal Nguyen1a44d5d2010-01-13 10:42:43 -080049include $(BUILD_PACKAGE)
50
Paul Jensend38fb7662016-01-07 23:13:19 -050051#########################################################################
52# Build JNI Shared Library
53#########################################################################
54
55LOCAL_PATH:= $(LOCAL_PATH)/jni
56
57include $(CLEAR_VARS)
58
59LOCAL_MODULE_TAGS := tests
60
Robin Leecfe26692016-04-05 12:19:06 +010061LOCAL_CFLAGS := -Wall -Wextra -Werror
Paul Jensend38fb7662016-01-07 23:13:19 -050062
63LOCAL_C_INCLUDES := \
64 libpcap \
65 hardware/google/apf
66
Robin Leecfe26692016-04-05 12:19:06 +010067LOCAL_SRC_FILES := $(call all-cpp-files-under)
Paul Jensend38fb7662016-01-07 23:13:19 -050068
69LOCAL_SHARED_LIBRARIES := \
Robin Leecfe26692016-04-05 12:19:06 +010070 libbinder \
71 libcutils \
Paul Jensend38fb7662016-01-07 23:13:19 -050072 libnativehelper \
Robin Leecfe26692016-04-05 12:19:06 +010073 libnetdaidl
Paul Jensend38fb7662016-01-07 23:13:19 -050074
75LOCAL_STATIC_LIBRARIES := \
76 libpcap \
77 libapf
78
Robin Leecfe26692016-04-05 12:19:06 +010079LOCAL_MODULE := libservicestestsjni
Paul Jensend38fb7662016-01-07 23:13:19 -050080
81include $(BUILD_SHARED_LIBRARY)