2014-06-03 01:29:00 +02:00
|
|
|
#
|
|
|
|
# Copyright (C) 2012 The Android Open Source Project
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
#
|
|
|
|
|
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
TEST_PATH := $(LOCAL_PATH)/..
|
|
|
|
|
2017-11-16 20:36:56 +01:00
|
|
|
common_cppflags := -Wall -Werror
|
2014-10-17 20:47:18 +02:00
|
|
|
common_additional_dependencies := \
|
|
|
|
$(LOCAL_PATH)/Android.mk \
|
2015-06-10 22:38:39 +02:00
|
|
|
$(LOCAL_PATH)/Android.build.dt_runpath.mk \
|
2014-10-17 20:47:18 +02:00
|
|
|
$(LOCAL_PATH)/Android.build.dlext_testzip.mk \
|
2014-11-29 22:57:41 +01:00
|
|
|
$(LOCAL_PATH)/Android.build.dlopen_2_parents_reloc.mk \
|
2014-10-21 18:23:18 +02:00
|
|
|
$(LOCAL_PATH)/Android.build.dlopen_check_order_dlsym.mk \
|
|
|
|
$(LOCAL_PATH)/Android.build.dlopen_check_order_reloc_siblings.mk \
|
|
|
|
$(LOCAL_PATH)/Android.build.dlopen_check_order_reloc_main_executable.mk \
|
2015-10-30 01:01:24 +01:00
|
|
|
$(LOCAL_PATH)/Android.build.linker_namespaces.mk \
|
2014-11-21 05:47:02 +01:00
|
|
|
$(LOCAL_PATH)/Android.build.pthread_atfork.mk \
|
2014-10-17 20:47:18 +02:00
|
|
|
$(LOCAL_PATH)/Android.build.testlib.mk \
|
2016-09-01 20:37:39 +02:00
|
|
|
$(LOCAL_PATH)/Android.build.testlib.target.mk \
|
2015-04-09 22:42:33 +02:00
|
|
|
$(LOCAL_PATH)/Android.build.versioned_lib.mk \
|
2014-10-17 20:47:18 +02:00
|
|
|
$(TEST_PATH)/Android.build.mk
|
|
|
|
|
2014-06-03 01:29:00 +02:00
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# Library used by dlext tests - with GNU RELRO program header
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
libdlext_test_src_files := \
|
|
|
|
dlext_test_library.cpp \
|
|
|
|
|
|
|
|
libdlext_test_ldflags := \
|
|
|
|
-Wl,-z,relro \
|
|
|
|
|
2015-09-03 01:32:02 +02:00
|
|
|
libdlext_test_shared_libraries := libtest_simple
|
|
|
|
|
2014-06-03 01:29:00 +02:00
|
|
|
module := libdlext_test
|
|
|
|
module_tag := optional
|
2014-09-15 23:13:24 +02:00
|
|
|
include $(LOCAL_PATH)/Android.build.testlib.mk
|
2014-06-03 01:29:00 +02:00
|
|
|
|
2018-10-17 21:59:38 +02:00
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# Library used by dlext tests - recursive use of RELRO sharing
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
libdlext_test_recursive_src_files := \
|
|
|
|
dlext_test_recursive_library.cpp \
|
|
|
|
|
|
|
|
libdlext_test_recursive_ldflags := \
|
|
|
|
-Wl,-z,relro \
|
|
|
|
|
|
|
|
libdlext_test_recursive_shared_libraries := libdlext_test
|
|
|
|
|
|
|
|
module := libdlext_test_recursive
|
|
|
|
module_tag := optional
|
|
|
|
include $(LOCAL_PATH)/Android.build.testlib.mk
|
|
|
|
|
2014-07-01 23:10:16 +02:00
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# Library used by dlext tests - different name non-default location
|
|
|
|
# -----------------------------------------------------------------------------
|
2016-08-29 22:15:38 +02:00
|
|
|
module := libdlext_test_fd
|
|
|
|
|
2014-07-01 23:10:16 +02:00
|
|
|
libdlext_test_fd_src_files := \
|
|
|
|
dlext_test_library.cpp \
|
|
|
|
|
2015-09-03 01:32:02 +02:00
|
|
|
libdlext_test_fd_shared_libraries := libtest_simple
|
|
|
|
|
2016-09-01 20:37:39 +02:00
|
|
|
libdlext_test_fd_relative_install_path := $(module)
|
|
|
|
|
|
|
|
libdlext_test_fd_ldflags := -Wl,--rpath,\$${ORIGIN}/.. -Wl,--enable-new-dtags
|
|
|
|
|
2014-07-01 23:10:16 +02:00
|
|
|
module_tag := optional
|
2016-09-01 20:37:39 +02:00
|
|
|
include $(LOCAL_PATH)/Android.build.testlib.target.mk
|
2014-07-01 23:10:16 +02:00
|
|
|
|
2015-09-29 01:38:31 +02:00
|
|
|
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# Libraries used by dlext tests for open from a zip-file
|
|
|
|
# -----------------------------------------------------------------------------
|
2016-08-29 22:15:38 +02:00
|
|
|
module := libdlext_test_zip
|
|
|
|
|
2015-09-29 01:38:31 +02:00
|
|
|
libdlext_test_zip_src_files := \
|
|
|
|
dlext_test_library.cpp \
|
|
|
|
|
|
|
|
libdlext_test_zip_shared_libraries := libatest_simple_zip
|
|
|
|
|
2016-09-01 20:37:39 +02:00
|
|
|
libdlext_test_zip_relative_install_path := $(module)
|
2015-09-29 01:38:31 +02:00
|
|
|
module_tag := optional
|
2016-09-01 20:37:39 +02:00
|
|
|
include $(LOCAL_PATH)/Android.build.testlib.target.mk
|
2015-09-29 01:38:31 +02:00
|
|
|
|
2016-08-29 22:15:38 +02:00
|
|
|
module := libatest_simple_zip
|
|
|
|
|
2015-09-29 01:38:31 +02:00
|
|
|
libatest_simple_zip_src_files := \
|
|
|
|
dlopen_testlib_simple.cpp
|
|
|
|
|
2016-09-01 20:37:39 +02:00
|
|
|
libatest_simple_zip_relative_install_path := $(module)
|
2015-09-29 01:38:31 +02:00
|
|
|
module_tag := optional
|
2016-09-01 20:37:39 +02:00
|
|
|
include $(LOCAL_PATH)/Android.build.testlib.target.mk
|
2015-09-29 01:38:31 +02:00
|
|
|
|
2015-03-18 04:06:36 +01:00
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
# Library with soname which does not match filename
|
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
libdlext_test_different_soname_src_files := \
|
|
|
|
dlext_test_library.cpp \
|
|
|
|
|
|
|
|
module := libdlext_test_different_soname
|
|
|
|
module_tag := optional
|
|
|
|
libdlext_test_different_soname_ldflags := -Wl,-soname=libdlext_test_soname.so
|
|
|
|
include $(LOCAL_PATH)/Android.build.testlib.mk
|
|
|
|
|
2014-10-04 02:52:44 +02:00
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# Library used by dlext tests - zipped and aligned
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
include $(CLEAR_VARS)
|
2014-10-07 18:46:46 +02:00
|
|
|
bionic_2nd_arch_prefix :=
|
2014-10-04 02:52:44 +02:00
|
|
|
include $(LOCAL_PATH)/Android.build.dlext_testzip.mk
|
|
|
|
ifneq ($(TARGET_2ND_ARCH),)
|
2014-10-07 18:46:46 +02:00
|
|
|
bionic_2nd_arch_prefix := $(TARGET_2ND_ARCH_VAR_PREFIX)
|
2014-10-04 02:52:44 +02:00
|
|
|
include $(LOCAL_PATH)/Android.build.dlext_testzip.mk
|
|
|
|
endif
|
|
|
|
|
2015-10-30 01:01:24 +01:00
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# Build test helper libraries for linker namespaces
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
include $(LOCAL_PATH)/Android.build.linker_namespaces.mk
|
|
|
|
|
2015-06-10 22:38:39 +02:00
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# Build DT_RUNPATH test helper libraries
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
include $(LOCAL_PATH)/Android.build.dt_runpath.mk
|
|
|
|
|
2014-11-29 22:57:41 +01:00
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# Build library with two parents
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
include $(LOCAL_PATH)/Android.build.dlopen_2_parents_reloc.mk
|
|
|
|
|
2014-05-20 00:06:58 +02:00
|
|
|
# -----------------------------------------------------------------------------
|
2014-10-21 18:23:18 +02:00
|
|
|
# Build libtest_check_order_dlsym.so with its dependencies.
|
2014-09-06 01:42:53 +02:00
|
|
|
# -----------------------------------------------------------------------------
|
2014-10-21 18:23:18 +02:00
|
|
|
include $(LOCAL_PATH)/Android.build.dlopen_check_order_dlsym.mk
|
2014-09-06 01:42:53 +02:00
|
|
|
|
|
|
|
# -----------------------------------------------------------------------------
|
2014-10-21 18:23:18 +02:00
|
|
|
# Build libtest_check_order_siblings.so with its dependencies.
|
2014-09-06 01:42:53 +02:00
|
|
|
# -----------------------------------------------------------------------------
|
2014-10-21 18:23:18 +02:00
|
|
|
include $(LOCAL_PATH)/Android.build.dlopen_check_order_reloc_siblings.mk
|
2014-09-06 01:42:53 +02:00
|
|
|
|
|
|
|
# -----------------------------------------------------------------------------
|
2014-10-21 18:23:18 +02:00
|
|
|
# Build libtest_check_order_root.so with its dependencies.
|
2014-09-06 01:42:53 +02:00
|
|
|
# -----------------------------------------------------------------------------
|
2014-10-21 18:23:18 +02:00
|
|
|
include $(LOCAL_PATH)/Android.build.dlopen_check_order_reloc_main_executable.mk
|
2014-09-06 01:42:53 +02:00
|
|
|
|
2015-04-09 22:42:33 +02:00
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# Build libtest_versioned_lib.so with its dependencies.
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
include $(LOCAL_PATH)/Android.build.versioned_lib.mk
|
|
|
|
|
2014-11-21 05:47:02 +01:00
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# Build libraries needed by pthread_atfork tests
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
include $(LOCAL_PATH)/Android.build.pthread_atfork.mk
|
|
|
|
|
2014-07-29 02:32:20 +02:00
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# Library with dependency used by dlfcn tests
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
libtest_with_dependency_src_files := \
|
|
|
|
dlopen_testlib_simple.cpp
|
|
|
|
|
|
|
|
libtest_with_dependency_shared_libraries := libdlext_test
|
|
|
|
|
|
|
|
module := libtest_with_dependency
|
2014-09-15 23:13:24 +02:00
|
|
|
include $(LOCAL_PATH)/Android.build.testlib.mk
|