blob: 504d54eeb3a9f50a90ff80faef9df053f9277030 [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 \
45 libcrypto \
46 libhidl-gen-utils \
47 libhidlbase \
48 libhidltransport \
49 libpackagelistparser \
50 libpcre2 \
51 libselinux \
52 libtinyxml2 \
53 libvintf \
54 libhwbinder \
55 android.hidl.base@1.0 \
56 android.hidl.token@1.0
Lorenzo Colittiecc986d2016-10-28 12:48:36 +090057
58LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
59
60include $(BUILD_PACKAGE)
61
62#########################################################################
63# Build JNI Shared Library
64#########################################################################
65
66LOCAL_PATH:= $(LOCAL_PATH)/jni
67
68include $(CLEAR_VARS)
69
70LOCAL_MODULE_TAGS := tests
71
72LOCAL_CFLAGS := -Wall -Wextra -Werror
73
74LOCAL_C_INCLUDES := \
75 libpcap \
76 hardware/google/apf
77
78LOCAL_SRC_FILES := $(call all-cpp-files-under)
79
80LOCAL_SHARED_LIBRARIES := \
81 libbinder \
82 liblog \
83 libcutils \
84 libnativehelper \
85 libnetdaidl
86
87LOCAL_STATIC_LIBRARIES := \
88 libpcap \
89 libapf
90
91LOCAL_MODULE := libframeworksnettestsjni
92
93include $(BUILD_SHARED_LIBRARY)