blob: 9130e7db80a138457c09c92f801b53cd3cc7aa19 [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
Simran Basi473a16e2017-03-15 14:43:58 -070029LOCAL_COMPATIBILITY_SUITE := device-tests
Lorenzo Colittiecc986d2016-10-28 12:48:36 +090030
31LOCAL_CERTIFICATE := platform
32
33# These are not normally accessible from apps so they must be explicitly included.
Lorenzo Colitti18aeff82018-01-22 12:53:18 +090034LOCAL_JNI_SHARED_LIBRARIES := \
35 android.hidl.token@1.0 \
Lorenzo Colittiecc986d2016-10-28 12:48:36 +090036 libbacktrace \
37 libbase \
38 libbinder \
39 libc++ \
Lorenzo Colitti18aeff82018-01-22 12:53:18 +090040 libcrypto \
Lorenzo Colittiecc986d2016-10-28 12:48:36 +090041 libcutils \
Hugo Benichi57751772018-01-29 13:16:12 +090042 libdexfile \
Lorenzo Colitti18aeff82018-01-22 12:53:18 +090043 libframeworksnettestsjni \
44 libhidl-gen-utils \
45 libhidlbase \
46 libhidltransport \
47 libhwbinder \
Lorenzo Colittiecc986d2016-10-28 12:48:36 +090048 liblog \
49 liblzma \
50 libnativehelper \
51 libnetdaidl \
Hugo Benichi22291f82017-03-08 10:10:28 +090052 libpackagelistparser \
53 libpcre2 \
54 libselinux \
Lorenzo Colitti18aeff82018-01-22 12:53:18 +090055 libui \
56 libunwind \
57 libutils \
Hugo Benichi22291f82017-03-08 10:10:28 +090058 libvintf \
Lorenzo Colitti18aeff82018-01-22 12:53:18 +090059 libvndksupport \
60 libtinyxml2 \
Hugo Benichi99e8ab62017-08-04 12:12:25 +090061 libunwindstack \
Lorenzo Colitti18aeff82018-01-22 12:53:18 +090062 libutilscallstack
Lorenzo Colittiecc986d2016-10-28 12:48:36 +090063
64LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
65
66include $(BUILD_PACKAGE)
67
68#########################################################################
69# Build JNI Shared Library
70#########################################################################
71
72LOCAL_PATH:= $(LOCAL_PATH)/jni
73
74include $(CLEAR_VARS)
75
76LOCAL_MODULE_TAGS := tests
77
78LOCAL_CFLAGS := -Wall -Wextra -Werror
79
80LOCAL_C_INCLUDES := \
81 libpcap \
82 hardware/google/apf
83
84LOCAL_SRC_FILES := $(call all-cpp-files-under)
85
86LOCAL_SHARED_LIBRARIES := \
87 libbinder \
88 liblog \
89 libcutils \
90 libnativehelper \
91 libnetdaidl
92
93LOCAL_STATIC_LIBRARIES := \
94 libpcap \
95 libapf
96
97LOCAL_MODULE := libframeworksnettestsjni
98
99include $(BUILD_SHARED_LIBRARY)