blob: 49078940d474d139314dbfae856cb18eb39f1f4b [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
Simran Basi473a16e2017-03-15 14:43:58 -070027LOCAL_COMPATIBILITY_SUITE := device-tests
Lorenzo Colittiecc986d2016-10-28 12:48:36 +090028
29LOCAL_CERTIFICATE := platform
30
31# These are not normally accessible from apps so they must be explicitly included.
Lorenzo Colittif7fab102018-01-22 12:53:18 +090032LOCAL_JNI_SHARED_LIBRARIES := \
33 android.hidl.token@1.0 \
Lorenzo Colittiecc986d2016-10-28 12:48:36 +090034 libbacktrace \
35 libbase \
36 libbinder \
37 libc++ \
Lorenzo Colittif7fab102018-01-22 12:53:18 +090038 libcrypto \
Lorenzo Colittiecc986d2016-10-28 12:48:36 +090039 libcutils \
Hugo Benichi57751772018-01-29 13:16:12 +090040 libdexfile \
Lorenzo Colittif7fab102018-01-22 12:53:18 +090041 libframeworksnettestsjni \
42 libhidl-gen-utils \
43 libhidlbase \
44 libhidltransport \
45 libhwbinder \
Lorenzo Colittiecc986d2016-10-28 12:48:36 +090046 liblog \
47 liblzma \
48 libnativehelper \
49 libnetdaidl \
Hugo Benichi22291f82017-03-08 10:10:28 +090050 libpackagelistparser \
51 libpcre2 \
52 libselinux \
Lorenzo Colittif7fab102018-01-22 12:53:18 +090053 libui \
54 libunwind \
55 libutils \
Hugo Benichi22291f82017-03-08 10:10:28 +090056 libvintf \
Lorenzo Colittif7fab102018-01-22 12:53:18 +090057 libvndksupport \
58 libtinyxml2 \
Hugo Benichicd9b7162017-08-04 12:12:25 +090059 libunwindstack \
Lorenzo Colittif7fab102018-01-22 12:53:18 +090060 libutilscallstack
Lorenzo Colittiecc986d2016-10-28 12:48:36 +090061
62LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
63
64include $(BUILD_PACKAGE)
65
66#########################################################################
67# Build JNI Shared Library
68#########################################################################
69
70LOCAL_PATH:= $(LOCAL_PATH)/jni
71
72include $(CLEAR_VARS)
73
74LOCAL_MODULE_TAGS := tests
75
76LOCAL_CFLAGS := -Wall -Wextra -Werror
77
78LOCAL_C_INCLUDES := \
79 libpcap \
80 hardware/google/apf
81
82LOCAL_SRC_FILES := $(call all-cpp-files-under)
83
84LOCAL_SHARED_LIBRARIES := \
85 libbinder \
86 liblog \
87 libcutils \
88 libnativehelper \
89 libnetdaidl
90
91LOCAL_STATIC_LIBRARIES := \
92 libpcap \
93 libapf
94
95LOCAL_MODULE := libframeworksnettestsjni
96
97include $(BUILD_SHARED_LIBRARY)