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