Dmitriy Ivanov | c343cac | 2014-11-04 09:37:51 -0800 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2012 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 load order: |
| 19 | # libtest_check_order_2_right.so |
| 20 | # ----------------------------------------------------------------------------- |
| 21 | libtest_check_order_dlsym_2_right_src_files := \ |
| 22 | dlopen_check_order_dlsym_answer.cpp |
| 23 | |
| 24 | libtest_check_order_dlsym_2_right_cflags := -D__ANSWER=42 |
| 25 | module := libtest_check_order_dlsym_2_right |
| 26 | include $(LOCAL_PATH)/Android.build.testlib.mk |
| 27 | |
| 28 | # ----------------------------------------------------------------------------- |
| 29 | # libtest_check_order_a.so |
| 30 | # ----------------------------------------------------------------------------- |
| 31 | libtest_check_order_dlsym_a_src_files := \ |
| 32 | dlopen_check_order_dlsym_answer.cpp |
| 33 | |
| 34 | libtest_check_order_dlsym_a_cflags := -D__ANSWER=1 |
| 35 | module := libtest_check_order_dlsym_a |
| 36 | include $(LOCAL_PATH)/Android.build.testlib.mk |
| 37 | |
| 38 | # ----------------------------------------------------------------------------- |
| 39 | # libtest_check_order_b.so |
| 40 | # ----------------------------------------------------------------------------- |
| 41 | libtest_check_order_dlsym_b_src_files := \ |
| 42 | dlopen_check_order_dlsym_answer.cpp |
| 43 | |
| 44 | libtest_check_order_dlsym_b_cflags := -D__ANSWER=2 -D__ANSWER2=43 |
| 45 | module := libtest_check_order_dlsym_b |
| 46 | include $(LOCAL_PATH)/Android.build.testlib.mk |
| 47 | |
| 48 | # ----------------------------------------------------------------------------- |
| 49 | # libtest_check_order_c.so |
| 50 | # ----------------------------------------------------------------------------- |
| 51 | libtest_check_order_dlsym_3_c_src_files := \ |
| 52 | dlopen_check_order_dlsym_answer.cpp |
| 53 | |
| 54 | libtest_check_order_dlsym_3_c_cflags := -D__ANSWER=3 |
| 55 | module := libtest_check_order_dlsym_3_c |
| 56 | include $(LOCAL_PATH)/Android.build.testlib.mk |
| 57 | |
| 58 | # ----------------------------------------------------------------------------- |
| 59 | # libtest_check_order_d.so |
| 60 | # ----------------------------------------------------------------------------- |
| 61 | libtest_check_order_dlsym_d_src_files := \ |
| 62 | dlopen_check_order_dlsym_answer.cpp |
| 63 | |
| 64 | libtest_check_order_dlsym_d_shared_libraries := libtest_check_order_dlsym_b |
| 65 | libtest_check_order_dlsym_d_cflags := -D__ANSWER=4 -D__ANSWER2=4 |
| 66 | module := libtest_check_order_dlsym_d |
| 67 | include $(LOCAL_PATH)/Android.build.testlib.mk |
| 68 | |
| 69 | # ----------------------------------------------------------------------------- |
| 70 | # libtest_check_order_left.so |
| 71 | # ----------------------------------------------------------------------------- |
| 72 | libtest_check_order_dlsym_1_left_src_files := \ |
| 73 | empty.cpp |
| 74 | |
| 75 | libtest_check_order_dlsym_1_left_shared_libraries := libtest_check_order_dlsym_a libtest_check_order_dlsym_b |
| 76 | |
| 77 | module := libtest_check_order_dlsym_1_left |
| 78 | include $(LOCAL_PATH)/Android.build.testlib.mk |
| 79 | |
| 80 | # ----------------------------------------------------------------------------- |
| 81 | # libtest_check_order.so |
| 82 | # ----------------------------------------------------------------------------- |
| 83 | libtest_check_order_dlsym_src_files := \ |
| 84 | empty.cpp |
| 85 | |
| 86 | libtest_check_order_dlsym_shared_libraries := libtest_check_order_dlsym_1_left \ |
| 87 | libtest_check_order_dlsym_2_right libtest_check_order_dlsym_3_c |
| 88 | |
| 89 | module := libtest_check_order_dlsym |
| 90 | include $(LOCAL_PATH)/Android.build.testlib.mk |