blob: 1bc4fd5ec58243cb2f536fc59b72384aed2aab1e [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 \
Lorenzo Colittiecc986d2016-10-28 12:48:36 +090037 libbacktrace \
38 libbase \
39 libbinder \
40 libc++ \
Lorenzo Colitti18aeff82018-01-22 12:53:18 +090041 libcrypto \
Lorenzo Colittiecc986d2016-10-28 12:48:36 +090042 libcutils \
Hugo Benichi57751772018-01-29 13:16:12 +090043 libdexfile \
Lorenzo Colitti18aeff82018-01-22 12:53:18 +090044 libframeworksnettestsjni \
45 libhidl-gen-utils \
46 libhidlbase \
47 libhidltransport \
48 libhwbinder \
Lorenzo Colittiecc986d2016-10-28 12:48:36 +090049 liblog \
50 liblzma \
51 libnativehelper \
52 libnetdaidl \
Hugo Benichi22291f82017-03-08 10:10:28 +090053 libpackagelistparser \
54 libpcre2 \
55 libselinux \
Lorenzo Colitti18aeff82018-01-22 12:53:18 +090056 libui \
57 libunwind \
58 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 \
Lorenzo Colitti18aeff82018-01-22 12:53:18 +090063 libutilscallstack
Lorenzo Colittiecc986d2016-10-28 12:48:36 +090064
65LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
66
67include $(BUILD_PACKAGE)
68
69#########################################################################
70# Build JNI Shared Library
71#########################################################################
72
73LOCAL_PATH:= $(LOCAL_PATH)/jni
74
75include $(CLEAR_VARS)
76
77LOCAL_MODULE_TAGS := tests
78
79LOCAL_CFLAGS := -Wall -Wextra -Werror
80
81LOCAL_C_INCLUDES := \
82 libpcap \
83 hardware/google/apf
84
85LOCAL_SRC_FILES := $(call all-cpp-files-under)
86
87LOCAL_SHARED_LIBRARIES := \
88 libbinder \
89 liblog \
90 libcutils \
91 libnativehelper \
92 libnetdaidl
93
94LOCAL_STATIC_LIBRARIES := \
95 libpcap \
96 libapf
97
98LOCAL_MODULE := libframeworksnettestsjni
99
100include $(BUILD_SHARED_LIBRARY)