blob: b3a82f5d83921dc70b4e08f839366e7163b4c051 [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 \
Remi NGUYEN VAN76be3722018-05-30 13:52:08 +090035 $(UBSAN_RUNTIME_LIBRARY) \
36 libartbase \
Lorenzo Colittiecc986d2016-10-28 12:48:36 +090037 libbacktrace \
38 libbase \
39 libbinder \
40 libc++ \
Lorenzo Colittif7fab102018-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 Colittif7fab102018-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 Colittif7fab102018-01-22 12:53:18 +090056 libui \
Lorenzo Colittif7fab102018-01-22 12:53:18 +090057 libutils \
Hugo Benichi22291f82017-03-08 10:10:28 +090058 libvintf \
Lorenzo Colittif7fab102018-01-22 12:53:18 +090059 libvndksupport \
60 libtinyxml2 \
Hugo Benichicd9b7162017-08-04 12:12:25 +090061 libunwindstack \
Remi NGUYEN VAN76be3722018-05-30 13:52:08 +090062 libutilscallstack \
63 libziparchive \
64 libz
Lorenzo Colittiecc986d2016-10-28 12:48:36 +090065
66LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
67
68include $(BUILD_PACKAGE)
69
70#########################################################################
71# Build JNI Shared Library
72#########################################################################
73
74LOCAL_PATH:= $(LOCAL_PATH)/jni
75
76include $(CLEAR_VARS)
77
78LOCAL_MODULE_TAGS := tests
79
80LOCAL_CFLAGS := -Wall -Wextra -Werror
81
82LOCAL_C_INCLUDES := \
83 libpcap \
84 hardware/google/apf
85
86LOCAL_SRC_FILES := $(call all-cpp-files-under)
87
88LOCAL_SHARED_LIBRARIES := \
89 libbinder \
90 liblog \
91 libcutils \
92 libnativehelper \
93 libnetdaidl
94
95LOCAL_STATIC_LIBRARIES := \
96 libpcap \
97 libapf
98
99LOCAL_MODULE := libframeworksnettestsjni
100
101include $(BUILD_SHARED_LIBRARY)