Exempt-From-Owner-Approval: Android.mk uses per-file permission to let the build team modify it without dependeing on us. However because this rule overrides the directory default owners, Android core networking is not owner anymore. This exemption is necessary to let Android core networking team fix their build file. Test: All tests in runtest frameworks-net pass. Merged-In: Ie0b8baa38ca39e92fbd698ebcead86dac0a67708 (cherry picked from commit 99e8ab6e46eec5dbd1b059b3732672d537b3cf34) Change-Id: I4471a5cd7f20852645f3d94684cc5aeef3324162
95 lines
2.0 KiB
Makefile
95 lines
2.0 KiB
Makefile
#########################################################################
|
|
# Build FrameworksNetTests package
|
|
#########################################################################
|
|
|
|
LOCAL_PATH:= $(call my-dir)
|
|
include $(CLEAR_VARS)
|
|
|
|
# We only want this apk build for tests.
|
|
LOCAL_MODULE_TAGS := tests
|
|
|
|
# Include all test java files.
|
|
LOCAL_SRC_FILES := $(call all-java-files-under, java)
|
|
|
|
LOCAL_STATIC_JAVA_LIBRARIES := \
|
|
frameworks-base-testutils \
|
|
framework-protos \
|
|
android-support-test \
|
|
mockito-target-minus-junit4 \
|
|
platform-test-annotations \
|
|
services.core \
|
|
services.net
|
|
|
|
LOCAL_JAVA_LIBRARIES := \
|
|
android.test.runner
|
|
|
|
LOCAL_PACKAGE_NAME := FrameworksNetTests
|
|
LOCAL_COMPATIBILITY_SUITE := device-tests
|
|
|
|
LOCAL_CERTIFICATE := platform
|
|
|
|
# These are not normally accessible from apps so they must be explicitly included.
|
|
LOCAL_JNI_SHARED_LIBRARIES := libframeworksnettestsjni \
|
|
libbacktrace \
|
|
libbase \
|
|
libbinder \
|
|
libc++ \
|
|
libcutils \
|
|
liblog \
|
|
liblzma \
|
|
libnativehelper \
|
|
libnetdaidl \
|
|
libui \
|
|
libunwind \
|
|
libutils \
|
|
libvndksupport \
|
|
libcrypto \
|
|
libhidl-gen-utils \
|
|
libhidlbase \
|
|
libhidltransport \
|
|
libpackagelistparser \
|
|
libpcre2 \
|
|
libselinux \
|
|
libtinyxml2 \
|
|
libvintf \
|
|
libhwbinder \
|
|
libunwindstack \
|
|
android.hidl.token@1.0
|
|
|
|
LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
|
|
|
|
include $(BUILD_PACKAGE)
|
|
|
|
#########################################################################
|
|
# Build JNI Shared Library
|
|
#########################################################################
|
|
|
|
LOCAL_PATH:= $(LOCAL_PATH)/jni
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE_TAGS := tests
|
|
|
|
LOCAL_CFLAGS := -Wall -Wextra -Werror
|
|
|
|
LOCAL_C_INCLUDES := \
|
|
libpcap \
|
|
hardware/google/apf
|
|
|
|
LOCAL_SRC_FILES := $(call all-cpp-files-under)
|
|
|
|
LOCAL_SHARED_LIBRARIES := \
|
|
libbinder \
|
|
liblog \
|
|
libcutils \
|
|
libnativehelper \
|
|
libnetdaidl
|
|
|
|
LOCAL_STATIC_LIBRARIES := \
|
|
libpcap \
|
|
libapf
|
|
|
|
LOCAL_MODULE := libframeworksnettestsjni
|
|
|
|
include $(BUILD_SHARED_LIBRARY)
|