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 # ----------------------------------------------------------------------------- 25 libtest_check_order_reloc_siblings_1_src_files := \ 26 empty.cpp 27 28 libtest_check_order_reloc_siblings_1_shared_libraries := \ 29 libtest_check_order_reloc_siblings_a \ 30 libtest_check_order_reloc_siblings_b 31 32 module := libtest_check_order_reloc_siblings_1 33 include $(LOCAL_PATH)/Android.build.testlib.mk 34 35 36 # ----------------------------------------------------------------------------- 37 # ..._2.so - empty 38 # ----------------------------------------------------------------------------- 39 libtest_check_order_reloc_siblings_2_src_files := \ 40 dlopen_check_order_reloc_grandchild_answer.cpp 41 42 libtest_check_order_reloc_siblings_2_shared_libraries := \ 43 libtest_check_order_reloc_siblings_c \ 44 libtest_check_order_reloc_siblings_d 45 46 libtest_check_order_reloc_siblings_2_allow_undefined_symbols := true 47 module := libtest_check_order_reloc_siblings_2 48 include $(LOCAL_PATH)/Android.build.testlib.mk 49 50 # ----------------------------------------------------------------------------- 51 # ..._3.so - get_answer2(); 52 # ----------------------------------------------------------------------------- 53 libtest_check_order_reloc_siblings_3_src_files := \ 54 dlopen_check_order_reloc_nephew_answer.cpp 55 56 libtest_check_order_reloc_siblings_3_shared_libraries := \ 57 libtest_check_order_reloc_siblings_e \ 58 libtest_check_order_reloc_siblings_f 59 60 module := libtest_check_order_reloc_siblings_3 61 include $(LOCAL_PATH)/Android.build.testlib.mk 62 63 # ----------------------------------------------------------------------------- 64 # ..._a.so <- correct impl 65 # ----------------------------------------------------------------------------- 66 libtest_check_order_reloc_siblings_a_src_files := \ 67 dlopen_check_order_reloc_answer_impl.cpp 68 69 libtest_check_order_reloc_siblings_a_cflags := -D__ANSWER=42 70 module := libtest_check_order_reloc_siblings_a 71 include $(LOCAL_PATH)/Android.build.testlib.mk 72 73 # ----------------------------------------------------------------------------- 74 # ..._b.so 75 # ----------------------------------------------------------------------------- 76 libtest_check_order_reloc_siblings_b_src_files := \ 77 dlopen_check_order_reloc_answer_impl.cpp 78 79 libtest_check_order_reloc_siblings_b_cflags := -D__ANSWER=1 80 module := libtest_check_order_reloc_siblings_b 81 include $(LOCAL_PATH)/Android.build.testlib.mk 82 83 # ----------------------------------------------------------------------------- 84 # ..._c.so 85 # ----------------------------------------------------------------------------- 86 libtest_check_order_reloc_siblings_c_src_files := \ 87 dlopen_check_order_reloc_answer_impl.cpp 88 89 libtest_check_order_reloc_siblings_c_cflags := -D__ANSWER=2 90 libtest_check_order_reloc_siblings_c_shared_libraries := \ 91 libtest_check_order_reloc_siblings_c_1 \ 92 libtest_check_order_reloc_siblings_c_2 93 94 module := libtest_check_order_reloc_siblings_c 95 include $(LOCAL_PATH)/Android.build.testlib.mk 96 97 # ----------------------------------------------------------------------------- 98 # ..._d.so 99 # ----------------------------------------------------------------------------- 100 libtest_check_order_reloc_siblings_d_src_files := \ 101 dlopen_check_order_reloc_answer_impl.cpp 102 103 libtest_check_order_reloc_siblings_d_cflags := -D__ANSWER=3 104 module := libtest_check_order_reloc_siblings_d 105 include $(LOCAL_PATH)/Android.build.testlib.mk 106 107 # ----------------------------------------------------------------------------- 108 # ..._e.so 109 # ----------------------------------------------------------------------------- 110 libtest_check_order_reloc_siblings_e_src_files := \ 111 dlopen_check_order_reloc_answer_impl.cpp 112 113 libtest_check_order_reloc_siblings_e_cflags := -D__ANSWER=4 114 module := libtest_check_order_reloc_siblings_e 115 include $(LOCAL_PATH)/Android.build.testlib.mk 116 117 # ----------------------------------------------------------------------------- 118 # ..._f.so <- get_answer() 119 # ----------------------------------------------------------------------------- 120 libtest_check_order_reloc_siblings_f_src_files := \ 121 dlopen_check_order_reloc_answer.cpp 122 123 module := libtest_check_order_reloc_siblings_f 124 include $(LOCAL_PATH)/Android.build.testlib.mk 125 126 # ----------------------------------------------------------------------------- 127 # ..._c_1.so 128 # ----------------------------------------------------------------------------- 129 libtest_check_order_reloc_siblings_c_1_src_files := \ 130 dlopen_check_order_reloc_grandchild_answer_impl.cpp 131 132 libtest_check_order_reloc_siblings_c_1_cflags := -D__ANSWER=42 133 module := libtest_check_order_reloc_siblings_c_1 134 include $(LOCAL_PATH)/Android.build.testlib.mk 135 136 # ----------------------------------------------------------------------------- 137 # ..._c_2.so 138 # ----------------------------------------------------------------------------- 139 libtest_check_order_reloc_siblings_c_2_src_files := \ 140 dlopen_check_order_reloc_grandchild_answer_impl.cpp 141 142 libtest_check_order_reloc_siblings_c_2_cflags := -D__ANSWER=0 143 module := libtest_check_order_reloc_siblings_c_2 144 include $(LOCAL_PATH)/Android.build.testlib.mk 145 146 # ----------------------------------------------------------------------------- 147 # libtest_check_order_reloc_siblings.so 148 # ----------------------------------------------------------------------------- 149 libtest_check_order_reloc_siblings_src_files := \ 150 empty.cpp 151 152 libtest_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 157 module := libtest_check_order_reloc_siblings 158 include $(LOCAL_PATH)/Android.build.testlib.mk 159