1# Copyright (c) 2013 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5LOCAL_PATH := $(call my-dir)
6
7include $(CLEAR_VARS)
8LOCAL_MODULE := libfoo
9LOCAL_SRC_FILES := foo.cpp
10LOCAL_LDLIBS := -llog
11include $(BUILD_SHARED_LIBRARY)
12
13include $(CLEAR_VARS)
14LOCAL_MODULE := libfoo2
15LOCAL_SRC_FILES := foo2.cpp
16LOCAL_LDLIBS := -llog
17include $(BUILD_SHARED_LIBRARY)
18
19include $(CLEAR_VARS)
20LOCAL_MODULE := libfoo_with_static_constructor
21LOCAL_SRC_FILES := foo_with_static_constructor.cpp
22LOCAL_LDLIBS := -llog
23include $(BUILD_SHARED_LIBRARY)
24
25include $(CLEAR_VARS)
26LOCAL_MODULE := libfoo_with_relro
27LOCAL_SRC_FILES := foo_with_relro.cpp
28LOCAL_LDLIBS := -llog
29include $(BUILD_SHARED_LIBRARY)
30
31
32include $(CLEAR_VARS)
33LOCAL_MODULE := libbar
34LOCAL_SRC_FILES := bar.cpp
35LOCAL_SHARED_LIBRARIES := libfoo
36LOCAL_LDLIBS := -llog
37include $(BUILD_SHARED_LIBRARY)
38
39include $(CLEAR_VARS)
40LOCAL_MODULE := libbar_with_relro
41LOCAL_SRC_FILES := bar_with_relro.cpp
42LOCAL_SHARED_LIBRARIES := libfoo_with_relro
43LOCAL_LDLIBS := -llog
44include $(BUILD_SHARED_LIBRARY)
45
46include $(CLEAR_VARS)
47LOCAL_MODULE := libzoo
48LOCAL_SRC_FILES := zoo.cpp
49LOCAL_LDLIBS := -ldl
50include $(BUILD_SHARED_LIBRARY)
51
52include $(CLEAR_VARS)
53LOCAL_MODULE := libjni_lib
54LOCAL_SRC_FILES := jni_lib.cpp
55include $(BUILD_SHARED_LIBRARY)
56
57include $(CLEAR_VARS)
58LOCAL_MODULE := test_load_library
59LOCAL_SRC_FILES := test_load_library.cpp
60LOCAL_STATIC_LIBRARIES := crazy_linker
61include $(BUILD_EXECUTABLE)
62
63include $(CLEAR_VARS)
64LOCAL_MODULE := test_load_library_depends
65LOCAL_SRC_FILES := test_load_library_depends.cpp
66LOCAL_STATIC_LIBRARIES := crazy_linker
67include $(BUILD_EXECUTABLE)
68
69include $(CLEAR_VARS)
70LOCAL_MODULE := test_load_library_callbacks
71LOCAL_SRC_FILES := test_load_library_callbacks.cpp
72LOCAL_STATIC_LIBRARIES := crazy_linker
73include $(BUILD_EXECUTABLE)
74
75include $(CLEAR_VARS)
76LOCAL_MODULE := test_dl_wrappers
77LOCAL_SRC_FILES := test_dl_wrappers.cpp
78LOCAL_STATIC_LIBRARIES := crazy_linker
79include $(BUILD_EXECUTABLE)
80
81include $(CLEAR_VARS)
82LOCAL_MODULE := test_constructors_destructors
83LOCAL_SRC_FILES := test_constructors_destructors.cpp
84LOCAL_STATIC_LIBRARIES := crazy_linker
85include $(BUILD_EXECUTABLE)
86
87include $(CLEAR_VARS)
88LOCAL_MODULE := test_shared_relro
89LOCAL_SRC_FILES := test_shared_relro.cpp
90LOCAL_STATIC_LIBRARIES := crazy_linker
91include $(BUILD_EXECUTABLE)
92
93include $(CLEAR_VARS)
94LOCAL_MODULE := test_relocated_shared_relro
95LOCAL_SRC_FILES := test_relocated_shared_relro.cpp
96LOCAL_STATIC_LIBRARIES := crazy_linker
97include $(BUILD_EXECUTABLE)
98
99include $(CLEAR_VARS)
100LOCAL_MODULE := test_two_shared_relros
101LOCAL_SRC_FILES := test_two_shared_relros.cpp
102LOCAL_STATIC_LIBRARIES := crazy_linker
103include $(BUILD_EXECUTABLE)
104
105include $(CLEAR_VARS)
106LOCAL_MODULE := test_search_path_list
107LOCAL_SRC_FILES := test_search_path_list.cpp
108LOCAL_STATIC_LIBRARIES := crazy_linker
109include $(BUILD_EXECUTABLE)
110
111include $(CLEAR_VARS)
112LOCAL_MODULE := test_jni_hooks
113LOCAL_SRC_FILES := test_jni_hooks.cpp
114LOCAL_STATIC_LIBRARIES := crazy_linker
115include $(BUILD_EXECUTABLE)
116
117
118ifneq (,$(strip $(CRAZY_BENCH)))
119include $(CLEAR_VARS)
120LOCAL_MODULE := bench_load_library
121LOCAL_SRC_FILES := $(LOCAL_MODULE).cpp
122LOCAL_STATIC_LIBRARIES := crazy_linker
123include $(BUILD_EXECUTABLE)
124endif
125
126include $(LOCAL_PATH)/../Android.mk
127