blob: 24524e307a1f7219a8dd4c1c65c2aee8aa24ca76 [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.
Lorenzo Colittif7fab102018-01-22 12:53:18 +090032LOCAL_JNI_SHARED_LIBRARIES := \
33 android.hidl.token@1.0 \
Lorenzo Colittiecc986d2016-10-28 12:48:36 +090034 libbacktrace \
35 libbase \
36 libbinder \
37 libc++ \
Lorenzo Colittif7fab102018-01-22 12:53:18 +090038 libcrypto \
Lorenzo Colittiecc986d2016-10-28 12:48:36 +090039 libcutils \
Lorenzo Colittif7fab102018-01-22 12:53:18 +090040 libframeworksnettestsjni \
41 libhidl-gen-utils \
42 libhidlbase \
43 libhidltransport \
44 libhwbinder \
Lorenzo Colittiecc986d2016-10-28 12:48:36 +090045 liblog \
46 liblzma \
47 libnativehelper \
48 libnetdaidl \
Hugo Benichi22291f82017-03-08 10:10:28 +090049 libpackagelistparser \
50 libpcre2 \
51 libselinux \
Lorenzo Colittif7fab102018-01-22 12:53:18 +090052 libui \
53 libunwind \
54 libutils \
Hugo Benichi22291f82017-03-08 10:10:28 +090055 libvintf \
Lorenzo Colittif7fab102018-01-22 12:53:18 +090056 libvndksupport \
57 libtinyxml2 \
Hugo Benichicd9b7162017-08-04 12:12:25 +090058 libunwindstack \
Lorenzo Colittif7fab102018-01-22 12:53:18 +090059 libutilscallstack
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)