blob: 071ec1b025f098a308c782cdeac98fc1fb151582 [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 := \
Narayan Kamathd8b54e82014-08-21 12:25:24 +010015 services.core \
16 services.devicepolicy \
Lorenzo Colittia12bde32015-03-31 16:26:57 +090017 services.net \
Amith Yamasania93542f2016-02-03 18:02:06 -080018 services.usage \
Jeff Sharkeyb7342ac2011-04-25 23:44:11 -070019 easymocklib \
Jeff Sharkeyfb878b62012-07-26 18:32:30 -070020 guava \
Xiaohui Chenf86676a2015-08-19 13:30:07 -070021 android-support-test \
Jeff Sharkey3671b1e2013-01-31 17:22:26 -080022 mockito-target
Neal Nguyen1a44d5d2010-01-13 10:42:43 -080023
Narayan Kamathd8b54e82014-08-21 12:25:24 +010024LOCAL_JAVA_LIBRARIES := android.test.runner
Svetoslav Ganov0b29a582010-04-16 18:52:49 -070025
Neal Nguyen1a44d5d2010-01-13 10:42:43 -080026LOCAL_PACKAGE_NAME := FrameworksServicesTests
27
Neal Nguyen3433d3c2010-02-02 17:09:00 -080028LOCAL_CERTIFICATE := platform
29
Paul Jensen514a3bf2016-02-04 09:11:40 -050030LOCAL_JNI_SHARED_LIBRARIES := \
31 libapfjni \
32 libnativehelper
Paul Jensend38fb7662016-01-07 23:13:19 -050033
Neal Nguyen1a44d5d2010-01-13 10:42:43 -080034include $(BUILD_PACKAGE)
35
Paul Jensend38fb7662016-01-07 23:13:19 -050036#########################################################################
37# Build JNI Shared Library
38#########################################################################
39
40LOCAL_PATH:= $(LOCAL_PATH)/jni
41
42include $(CLEAR_VARS)
43
44LOCAL_MODULE_TAGS := tests
45
46LOCAL_CFLAGS := -Wall -Werror
47
48LOCAL_C_INCLUDES := \
49 libpcap \
50 hardware/google/apf
51
52LOCAL_SRC_FILES := apf_jni.cpp
53
54LOCAL_SHARED_LIBRARIES := \
55 libnativehelper \
56 liblog
57
58LOCAL_STATIC_LIBRARIES := \
59 libpcap \
60 libapf
61
62LOCAL_MODULE := libapfjni
63
64include $(BUILD_SHARED_LIBRARY)