blob: e4bf590d758643619f97594cf3f6d2cf05eb8c6e [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 Benichi22291f82017-03-08 10:10:28 +090056 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)