1# 2# Copyright (C) 2014 The Android Open Source Project 3# 4# Licensed under the Apache License, Version 2.0 (the "License"); 5# you may not use this file except in compliance with the License. 6# You may obtain a copy of the License at 7# 8# http://www.apache.org/licenses/LICENSE-2.0 9# 10# Unless required by applicable law or agreed to in writing, software 11# distributed under the License is distributed on an "AS IS" BASIS, 12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13# See the License for the specific language governing permissions and 14# limitations under the License. 15# 16 17# ----------------------------------------------------------------------------- 18# Libraries used by dlfcn tests to verify correct relocation order: 19# libtest_check_order_reloc_siblings*.so 20# ----------------------------------------------------------------------------- 21 22# ----------------------------------------------------------------------------- 23# ..._1.so - empty 24# ----------------------------------------------------------------------------- 25libtest_check_order_reloc_siblings_1_src_files := \ 26 empty.cpp 27 28libtest_check_order_reloc_siblings_1_shared_libraries := \ 29 libtest_check_order_reloc_siblings_a \ 30 libtest_check_order_reloc_siblings_b 31 32module := libtest_check_order_reloc_siblings_1 33include $(LOCAL_PATH)/Android.build.testlib.mk 34 35 36# ----------------------------------------------------------------------------- 37# ..._2.so - empty 38# ----------------------------------------------------------------------------- 39libtest_check_order_reloc_siblings_2_src_files := \ 40 dlopen_check_order_reloc_grandchild_answer.cpp 41 42libtest_check_order_reloc_siblings_2_shared_libraries := \ 43 libtest_check_order_reloc_siblings_c \ 44 libtest_check_order_reloc_siblings_d 45 46libtest_check_order_reloc_siblings_2_allow_undefined_symbols := true 47module := libtest_check_order_reloc_siblings_2 48include $(LOCAL_PATH)/Android.build.testlib.mk 49 50# ----------------------------------------------------------------------------- 51# ..._3.so - get_answer2(); 52# ----------------------------------------------------------------------------- 53libtest_check_order_reloc_siblings_3_src_files := \ 54 dlopen_check_order_reloc_nephew_answer.cpp 55 56libtest_check_order_reloc_siblings_3_shared_libraries := \ 57 libtest_check_order_reloc_siblings_e \ 58 libtest_check_order_reloc_siblings_f 59 60module := libtest_check_order_reloc_siblings_3 61include $(LOCAL_PATH)/Android.build.testlib.mk 62 63# ----------------------------------------------------------------------------- 64# ..._a.so <- correct impl 65# ----------------------------------------------------------------------------- 66libtest_check_order_reloc_siblings_a_src_files := \ 67 dlopen_check_order_reloc_answer_impl.cpp 68 69libtest_check_order_reloc_siblings_a_cflags := -D__ANSWER=42 70module := libtest_check_order_reloc_siblings_a 71include $(LOCAL_PATH)/Android.build.testlib.mk 72 73# ----------------------------------------------------------------------------- 74# ..._b.so 75# ----------------------------------------------------------------------------- 76libtest_check_order_reloc_siblings_b_src_files := \ 77 dlopen_check_order_reloc_answer_impl.cpp 78 79libtest_check_order_reloc_siblings_b_cflags := -D__ANSWER=1 80module := libtest_check_order_reloc_siblings_b 81include $(LOCAL_PATH)/Android.build.testlib.mk 82 83# ----------------------------------------------------------------------------- 84# ..._c.so 85# ----------------------------------------------------------------------------- 86libtest_check_order_reloc_siblings_c_src_files := \ 87 dlopen_check_order_reloc_answer_impl.cpp 88 89libtest_check_order_reloc_siblings_c_cflags := -D__ANSWER=2 90libtest_check_order_reloc_siblings_c_shared_libraries := \ 91 libtest_check_order_reloc_siblings_c_1 \ 92 libtest_check_order_reloc_siblings_c_2 93 94module := libtest_check_order_reloc_siblings_c 95include $(LOCAL_PATH)/Android.build.testlib.mk 96 97# ----------------------------------------------------------------------------- 98# ..._d.so 99# ----------------------------------------------------------------------------- 100libtest_check_order_reloc_siblings_d_src_files := \ 101 dlopen_check_order_reloc_answer_impl.cpp 102 103libtest_check_order_reloc_siblings_d_cflags := -D__ANSWER=3 104module := libtest_check_order_reloc_siblings_d 105include $(LOCAL_PATH)/Android.build.testlib.mk 106 107# ----------------------------------------------------------------------------- 108# ..._e.so 109# ----------------------------------------------------------------------------- 110libtest_check_order_reloc_siblings_e_src_files := \ 111 dlopen_check_order_reloc_answer_impl.cpp 112 113libtest_check_order_reloc_siblings_e_cflags := -D__ANSWER=4 114module := libtest_check_order_reloc_siblings_e 115include $(LOCAL_PATH)/Android.build.testlib.mk 116 117# ----------------------------------------------------------------------------- 118# ..._f.so <- get_answer() 119# ----------------------------------------------------------------------------- 120libtest_check_order_reloc_siblings_f_src_files := \ 121 dlopen_check_order_reloc_answer.cpp 122 123module := libtest_check_order_reloc_siblings_f 124include $(LOCAL_PATH)/Android.build.testlib.mk 125 126# ----------------------------------------------------------------------------- 127# ..._c_1.so 128# ----------------------------------------------------------------------------- 129libtest_check_order_reloc_siblings_c_1_src_files := \ 130 dlopen_check_order_reloc_grandchild_answer_impl.cpp 131 132libtest_check_order_reloc_siblings_c_1_cflags := -D__ANSWER=42 133module := libtest_check_order_reloc_siblings_c_1 134include $(LOCAL_PATH)/Android.build.testlib.mk 135 136# ----------------------------------------------------------------------------- 137# ..._c_2.so 138# ----------------------------------------------------------------------------- 139libtest_check_order_reloc_siblings_c_2_src_files := \ 140 dlopen_check_order_reloc_grandchild_answer_impl.cpp 141 142libtest_check_order_reloc_siblings_c_2_cflags := -D__ANSWER=0 143module := libtest_check_order_reloc_siblings_c_2 144include $(LOCAL_PATH)/Android.build.testlib.mk 145 146# ----------------------------------------------------------------------------- 147# libtest_check_order_reloc_siblings.so 148# ----------------------------------------------------------------------------- 149libtest_check_order_reloc_siblings_src_files := \ 150 empty.cpp 151 152libtest_check_order_reloc_siblings_shared_libraries := \ 153 libtest_check_order_reloc_siblings_1 \ 154 libtest_check_order_reloc_siblings_2 \ 155 libtest_check_order_reloc_siblings_3 156 157module := libtest_check_order_reloc_siblings 158include $(LOCAL_PATH)/Android.build.testlib.mk 159