blob: 79f6e4d2f0002ee81ccaceab48616daccdc18c03 [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
27
28LOCAL_CERTIFICATE := platform
29
30# These are not normally accessible from apps so they must be explicitly included.
31LOCAL_JNI_SHARED_LIBRARIES := libframeworksnettestsjni \
32 libbacktrace \
33 libbase \
34 libbinder \
35 libc++ \
36 libcutils \
37 liblog \
38 liblzma \
39 libnativehelper \
40 libnetdaidl \
41 libui \
42 libunwind \
Hugo Benichi22291f82017-03-08 10:10:28 +090043 libutils \
44 libcrypto \
45 libhidl-gen-utils \
46 libhidlbase \
47 libhidltransport \
48 libpackagelistparser \
49 libpcre2 \
50 libselinux \
51 libtinyxml2 \
52 libvintf \
53 libhwbinder \
54 android.hidl.base@1.0 \
55 android.hidl.token@1.0
Lorenzo Colittiecc986d2016-10-28 12:48:36 +090056
57LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
58
59include $(BUILD_PACKAGE)
60
61#########################################################################
62# Build JNI Shared Library
63#########################################################################
64
65LOCAL_PATH:= $(LOCAL_PATH)/jni
66
67include $(CLEAR_VARS)
68
69LOCAL_MODULE_TAGS := tests
70
71LOCAL_CFLAGS := -Wall -Wextra -Werror
72
73LOCAL_C_INCLUDES := \
74 libpcap \
75 hardware/google/apf
76
77LOCAL_SRC_FILES := $(call all-cpp-files-under)
78
79LOCAL_SHARED_LIBRARIES := \
80 libbinder \
81 liblog \
82 libcutils \
83 libnativehelper \
84 libnetdaidl
85
86LOCAL_STATIC_LIBRARIES := \
87 libpcap \
88 libapf
89
90LOCAL_MODULE := libframeworksnettestsjni
91
92include $(BUILD_SHARED_LIBRARY)