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