blob: a6559e76c4632c8eb88f37fd7b7c15562552d890 [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 := \
24 android.test.runner
25
26LOCAL_PACKAGE_NAME := FrameworksNetTests
Anton Hanssonbe72e622018-02-23 12:57:51 +000027LOCAL_PRIVATE_PLATFORM_APIS := true
Simran Basi473a16e2017-03-15 14:43:58 -070028LOCAL_COMPATIBILITY_SUITE := device-tests
Lorenzo Colittiecc986d2016-10-28 12:48:36 +090029
30LOCAL_CERTIFICATE := platform
31
32# These are not normally accessible from apps so they must be explicitly included.
Lorenzo Colittif7fab102018-01-22 12:53:18 +090033LOCAL_JNI_SHARED_LIBRARIES := \
34 android.hidl.token@1.0 \
Lorenzo Colittiecc986d2016-10-28 12:48:36 +090035 libbacktrace \
36 libbase \
37 libbinder \
38 libc++ \
Lorenzo Colittif7fab102018-01-22 12:53:18 +090039 libcrypto \
Lorenzo Colittiecc986d2016-10-28 12:48:36 +090040 libcutils \
Hugo Benichi57751772018-01-29 13:16:12 +090041 libdexfile \
Lorenzo Colittif7fab102018-01-22 12:53:18 +090042 libframeworksnettestsjni \
43 libhidl-gen-utils \
44 libhidlbase \
45 libhidltransport \
46 libhwbinder \
Lorenzo Colittiecc986d2016-10-28 12:48:36 +090047 liblog \
48 liblzma \
49 libnativehelper \
50 libnetdaidl \
Hugo Benichi22291f82017-03-08 10:10:28 +090051 libpackagelistparser \
52 libpcre2 \
53 libselinux \
Lorenzo Colittif7fab102018-01-22 12:53:18 +090054 libui \
55 libunwind \
56 libutils \
Hugo Benichi22291f82017-03-08 10:10:28 +090057 libvintf \
Lorenzo Colittif7fab102018-01-22 12:53:18 +090058 libvndksupport \
59 libtinyxml2 \
Hugo Benichicd9b7162017-08-04 12:12:25 +090060 libunwindstack \
Lorenzo Colittif7fab102018-01-22 12:53:18 +090061 libutilscallstack
Lorenzo Colittiecc986d2016-10-28 12:48:36 +090062
63LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
64
65include $(BUILD_PACKAGE)
66
67#########################################################################
68# Build JNI Shared Library
69#########################################################################
70
71LOCAL_PATH:= $(LOCAL_PATH)/jni
72
73include $(CLEAR_VARS)
74
75LOCAL_MODULE_TAGS := tests
76
77LOCAL_CFLAGS := -Wall -Wextra -Werror
78
79LOCAL_C_INCLUDES := \
80 libpcap \
81 hardware/google/apf
82
83LOCAL_SRC_FILES := $(call all-cpp-files-under)
84
85LOCAL_SHARED_LIBRARIES := \
86 libbinder \
87 liblog \
88 libcutils \
89 libnativehelper \
90 libnetdaidl
91
92LOCAL_STATIC_LIBRARIES := \
93 libpcap \
94 libapf
95
96LOCAL_MODULE := libframeworksnettestsjni
97
98include $(BUILD_SHARED_LIBRARY)