blob: e529b933bb80aa9929324eccaafd75586ceded8d [file] [log] [blame]
Lorenzo Colittiecc986d2016-10-28 12:48:36 +09001#########################################################################
2# Build FrameworksNetTests 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, java)
13
14LOCAL_STATIC_JAVA_LIBRARIES := \
15 frameworks-base-testutils \
16 framework-protos \
17 android-support-test \
18 mockito-target-minus-junit4 \
19 platform-test-annotations \
20 services.core \
21 services.net
22
23LOCAL_JAVA_LIBRARIES := \
Paul Duffin2710ca12017-12-05 18:36:56 +000024 android.test.runner \
25 android.test.base \
26 android.test.mock
Lorenzo Colittiecc986d2016-10-28 12:48:36 +090027
28LOCAL_PACKAGE_NAME := FrameworksNetTests
Anton Hanssond137c872018-02-23 12:57:51 +000029LOCAL_PRIVATE_PLATFORM_APIS := true
Simran Basi473a16e2017-03-15 14:43:58 -070030LOCAL_COMPATIBILITY_SUITE := device-tests
Lorenzo Colittiecc986d2016-10-28 12:48:36 +090031
32LOCAL_CERTIFICATE := platform
33
34# These are not normally accessible from apps so they must be explicitly included.
Lorenzo Colitti18aeff82018-01-22 12:53:18 +090035LOCAL_JNI_SHARED_LIBRARIES := \
36 android.hidl.token@1.0 \
Remi NGUYEN VAN76be3722018-05-30 13:52:08 +090037 libartbase \
Lorenzo Colittiecc986d2016-10-28 12:48:36 +090038 libbacktrace \
39 libbase \
40 libbinder \
41 libc++ \
Lorenzo Colitti18aeff82018-01-22 12:53:18 +090042 libcrypto \
Lorenzo Colittiecc986d2016-10-28 12:48:36 +090043 libcutils \
Hugo Benichi57751772018-01-29 13:16:12 +090044 libdexfile \
Lorenzo Colitti18aeff82018-01-22 12:53:18 +090045 libframeworksnettestsjni \
46 libhidl-gen-utils \
47 libhidlbase \
48 libhidltransport \
49 libhwbinder \
Lorenzo Colittiecc986d2016-10-28 12:48:36 +090050 liblog \
51 liblzma \
52 libnativehelper \
53 libnetdaidl \
Hugo Benichi22291f82017-03-08 10:10:28 +090054 libpackagelistparser \
55 libpcre2 \
56 libselinux \
Lorenzo Colitti18aeff82018-01-22 12:53:18 +090057 libui \
Lorenzo Colitti18aeff82018-01-22 12:53:18 +090058 libutils \
Hugo Benichi22291f82017-03-08 10:10:28 +090059 libvintf \
Lorenzo Colitti18aeff82018-01-22 12:53:18 +090060 libvndksupport \
61 libtinyxml2 \
Hugo Benichi99e8ab62017-08-04 12:12:25 +090062 libunwindstack \
Remi NGUYEN VAN76be3722018-05-30 13:52:08 +090063 libutilscallstack \
64 libziparchive \
65 libz
Lorenzo Colittiecc986d2016-10-28 12:48:36 +090066
67LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
68
69include $(BUILD_PACKAGE)
70
71#########################################################################
72# Build JNI Shared Library
73#########################################################################
74
75LOCAL_PATH:= $(LOCAL_PATH)/jni
76
77include $(CLEAR_VARS)
78
79LOCAL_MODULE_TAGS := tests
80
81LOCAL_CFLAGS := -Wall -Wextra -Werror
82
83LOCAL_C_INCLUDES := \
84 libpcap \
85 hardware/google/apf
86
87LOCAL_SRC_FILES := $(call all-cpp-files-under)
88
89LOCAL_SHARED_LIBRARIES := \
90 libbinder \
91 liblog \
92 libcutils \
93 libnativehelper \
94 libnetdaidl
95
96LOCAL_STATIC_LIBRARIES := \
97 libpcap \
98 libapf
99
100LOCAL_MODULE := libframeworksnettestsjni
101
102include $(BUILD_SHARED_LIBRARY)