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 relocation order:
19# libtest_check_order_reloc_root*.so
20# -----------------------------------------------------------------------------
21
22
23# -----------------------------------------------------------------------------
24# ..._1.so - empty
25# -----------------------------------------------------------------------------
26libtest_check_order_reloc_root_1_src_files := \
27    empty.cpp
28
29
30module := libtest_check_order_reloc_root_1
31include $(LOCAL_PATH)/Android.build.testlib.mk
32
33
34# -----------------------------------------------------------------------------
35# ..._2.so - this one has the incorrect answer
36# -----------------------------------------------------------------------------
37libtest_check_order_reloc_root_2_src_files := \
38    dlopen_check_order_reloc_root_answer_impl.cpp
39
40libtest_check_order_reloc_root_2_cflags := -D__ANSWER=2
41
42module := libtest_check_order_reloc_root_2
43include $(LOCAL_PATH)/Android.build.testlib.mk
44
45# -----------------------------------------------------------------------------
46# libtest_check_order_reloc_root.so <- implements get_answer3()
47# -----------------------------------------------------------------------------
48libtest_check_order_reloc_root_src_files := \
49    dlopen_check_order_reloc_root_answer.cpp
50
51libtest_check_order_reloc_root_shared_libraries := \
52    libtest_check_order_reloc_root_1 \
53    libtest_check_order_reloc_root_2
54
55module := libtest_check_order_reloc_root
56include $(LOCAL_PATH)/Android.build.testlib.mk
57