blob: 1bd1af5e3c229d09ad70f79f029a4ac90a9ad6f4 [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.
34LOCAL_JNI_SHARED_LIBRARIES := libframeworksnettestsjni \
35 libbacktrace \
36 libbase \
37 libbinder \
38 libc++ \
39 libcutils \
40 liblog \
41 liblzma \
42 libnativehelper \
43 libnetdaidl \
44 libui \
45 libunwind \
Hugo Benichi22291f82017-03-08 10:10:28 +090046 libutils \
Hugo Benichi9a2041e2017-06-01 15:54:59 +090047 libvndksupport \
Hugo Benichi22291f82017-03-08 10:10:28 +090048 libcrypto \
49 libhidl-gen-utils \
50 libhidlbase \
51 libhidltransport \
52 libpackagelistparser \
53 libpcre2 \
54 libselinux \
55 libtinyxml2 \
56 libvintf \
57 libhwbinder \
Hugo Benichi99e8ab62017-08-04 12:12:25 +090058 libunwindstack \
Hugo Benichi22291f82017-03-08 10:10:28 +090059 android.hidl.token@1.0
Lorenzo Colittiecc986d2016-10-28 12:48:36 +090060
61LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
62
63include $(BUILD_PACKAGE)
64
65#########################################################################
66# Build JNI Shared Library
67#########################################################################
68
69LOCAL_PATH:= $(LOCAL_PATH)/jni
70
71include $(CLEAR_VARS)
72
73LOCAL_MODULE_TAGS := tests
74
75LOCAL_CFLAGS := -Wall -Wextra -Werror
76
77LOCAL_C_INCLUDES := \
78 libpcap \
79 hardware/google/apf
80
81LOCAL_SRC_FILES := $(call all-cpp-files-under)
82
83LOCAL_SHARED_LIBRARIES := \
84 libbinder \
85 liblog \
86 libcutils \
87 libnativehelper \
88 libnetdaidl
89
90LOCAL_STATIC_LIBRARIES := \
91 libpcap \
92 libapf
93
94LOCAL_MODULE := libframeworksnettestsjni
95
96include $(BUILD_SHARED_LIBRARY)