blob: f6f35fdadcd1724836224c5cf2146831ea92b5a8 [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 \
Chalard Jean8c141bd2018-12-04 20:20:56 +090021 services.ipmemorystore \
Lorenzo Colittiecc986d2016-10-28 12:48:36 +090022 services.net
23
24LOCAL_JAVA_LIBRARIES := \
Paul Duffin2710ca12017-12-05 18:36:56 +000025 android.test.runner \
26 android.test.base \
27 android.test.mock
Lorenzo Colittiecc986d2016-10-28 12:48:36 +090028
29LOCAL_PACKAGE_NAME := FrameworksNetTests
Anton Hanssond137c872018-02-23 12:57:51 +000030LOCAL_PRIVATE_PLATFORM_APIS := true
Simran Basi473a16e2017-03-15 14:43:58 -070031LOCAL_COMPATIBILITY_SUITE := device-tests
Lorenzo Colittiecc986d2016-10-28 12:48:36 +090032
33LOCAL_CERTIFICATE := platform
34
35# These are not normally accessible from apps so they must be explicitly included.
Lorenzo Colitti18aeff82018-01-22 12:53:18 +090036LOCAL_JNI_SHARED_LIBRARIES := \
37 android.hidl.token@1.0 \
Remi NGUYEN VAN76be3722018-05-30 13:52:08 +090038 libartbase \
Lorenzo Colittiecc986d2016-10-28 12:48:36 +090039 libbacktrace \
40 libbase \
41 libbinder \
Jayant Chowdhary14aeab62018-09-28 12:56:05 -070042 libbinderthreadstate \
Lorenzo Colittiecc986d2016-10-28 12:48:36 +090043 libc++ \
Lorenzo Colitti18aeff82018-01-22 12:53:18 +090044 libcrypto \
Lorenzo Colittiecc986d2016-10-28 12:48:36 +090045 libcutils \
Hugo Benichi57751772018-01-29 13:16:12 +090046 libdexfile \
Lorenzo Colitti18aeff82018-01-22 12:53:18 +090047 libframeworksnettestsjni \
48 libhidl-gen-utils \
49 libhidlbase \
50 libhidltransport \
51 libhwbinder \
Lorenzo Colittiecc986d2016-10-28 12:48:36 +090052 liblog \
53 liblzma \
54 libnativehelper \
Hugo Benichi22291f82017-03-08 10:10:28 +090055 libpackagelistparser \
56 libpcre2 \
57 libselinux \
Lorenzo Colitti18aeff82018-01-22 12:53:18 +090058 libui \
Lorenzo Colitti18aeff82018-01-22 12:53:18 +090059 libutils \
Hugo Benichi22291f82017-03-08 10:10:28 +090060 libvintf \
Lorenzo Colitti18aeff82018-01-22 12:53:18 +090061 libvndksupport \
62 libtinyxml2 \
Hugo Benichi99e8ab62017-08-04 12:12:25 +090063 libunwindstack \
Remi NGUYEN VAN76be3722018-05-30 13:52:08 +090064 libutilscallstack \
65 libziparchive \
Luke Huang13b79e82018-09-26 14:53:42 +080066 libz \
67 netd_aidl_interface-cpp
Lorenzo Colittiecc986d2016-10-28 12:48:36 +090068
69LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
70
71include $(BUILD_PACKAGE)
72
73#########################################################################
74# Build JNI Shared Library
75#########################################################################
76
77LOCAL_PATH:= $(LOCAL_PATH)/jni
78
79include $(CLEAR_VARS)
80
81LOCAL_MODULE_TAGS := tests
82
83LOCAL_CFLAGS := -Wall -Wextra -Werror
84
85LOCAL_C_INCLUDES := \
86 libpcap \
87 hardware/google/apf
88
89LOCAL_SRC_FILES := $(call all-cpp-files-under)
90
91LOCAL_SHARED_LIBRARIES := \
92 libbinder \
93 liblog \
94 libcutils \
95 libnativehelper \
Luke Huang13b79e82018-09-26 14:53:42 +080096 netd_aidl_interface-cpp
Lorenzo Colittiecc986d2016-10-28 12:48:36 +090097
98LOCAL_STATIC_LIBRARIES := \
99 libpcap \
100 libapf
101
102LOCAL_MODULE := libframeworksnettestsjni
103
104include $(BUILD_SHARED_LIBRARY)