1 # Copyright 2014 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.
5 LOCAL_PATH
:= $(call my-dir
)
9 LOCAL_SRC_FILES
:= foo.
cpp
11 include $(BUILD_SHARED_LIBRARY
)
14 LOCAL_MODULE
:= libfoo2
15 LOCAL_SRC_FILES
:= foo2.
cpp
17 include $(BUILD_SHARED_LIBRARY
)
20 LOCAL_MODULE
:= libfoo_with_static_constructor
21 LOCAL_SRC_FILES
:= foo_with_static_constructor.
cpp
23 include $(BUILD_SHARED_LIBRARY
)
26 LOCAL_MODULE
:= libfoo_with_relro
27 LOCAL_SRC_FILES
:= foo_with_relro.
cpp
29 include $(BUILD_SHARED_LIBRARY
)
33 LOCAL_MODULE
:= libbar
34 LOCAL_SRC_FILES
:= bar.
cpp
35 LOCAL_SHARED_LIBRARIES
:= libfoo
37 include $(BUILD_SHARED_LIBRARY
)
40 LOCAL_MODULE
:= libbar_with_relro
41 LOCAL_SRC_FILES
:= bar_with_relro.
cpp
42 LOCAL_SHARED_LIBRARIES
:= libfoo_with_relro
44 include $(BUILD_SHARED_LIBRARY
)
47 LOCAL_MODULE
:= libzoo
48 LOCAL_SRC_FILES
:= zoo.
cpp
50 include $(BUILD_SHARED_LIBRARY
)
53 LOCAL_MODULE
:= libjni_lib
54 LOCAL_SRC_FILES
:= jni_lib.
cpp
55 include $(BUILD_SHARED_LIBRARY
)
58 LOCAL_MODULE
:= test_load_library
59 LOCAL_SRC_FILES
:= test_load_library.
cpp
60 LOCAL_STATIC_LIBRARIES
:= crazy_linker
61 include $(BUILD_EXECUTABLE
)
64 LOCAL_MODULE
:= test_load_library_depends
65 LOCAL_SRC_FILES
:= test_load_library_depends.
cpp
66 LOCAL_STATIC_LIBRARIES
:= crazy_linker
67 include $(BUILD_EXECUTABLE
)
70 LOCAL_MODULE
:= test_load_library_callbacks
71 LOCAL_SRC_FILES
:= test_load_library_callbacks.
cpp
72 LOCAL_STATIC_LIBRARIES
:= crazy_linker
73 include $(BUILD_EXECUTABLE
)
76 LOCAL_MODULE
:= test_dl_wrappers
77 LOCAL_SRC_FILES
:= test_dl_wrappers.
cpp
78 LOCAL_STATIC_LIBRARIES
:= crazy_linker
79 include $(BUILD_EXECUTABLE
)
82 LOCAL_MODULE
:= test_constructors_destructors
83 LOCAL_SRC_FILES
:= test_constructors_destructors.
cpp
84 LOCAL_STATIC_LIBRARIES
:= crazy_linker
85 include $(BUILD_EXECUTABLE
)
88 LOCAL_MODULE
:= test_shared_relro
89 LOCAL_SRC_FILES
:= test_shared_relro.
cpp
90 LOCAL_STATIC_LIBRARIES
:= crazy_linker
91 include $(BUILD_EXECUTABLE
)
94 LOCAL_MODULE
:= test_relocated_shared_relro
95 LOCAL_SRC_FILES
:= test_relocated_shared_relro.
cpp
96 LOCAL_STATIC_LIBRARIES
:= crazy_linker
97 include $(BUILD_EXECUTABLE
)
100 LOCAL_MODULE
:= test_two_shared_relros
101 LOCAL_SRC_FILES
:= test_two_shared_relros.
cpp
102 LOCAL_STATIC_LIBRARIES
:= crazy_linker
103 include $(BUILD_EXECUTABLE
)
105 include $(CLEAR_VARS
)
106 LOCAL_MODULE
:= test_search_path_list
107 LOCAL_SRC_FILES
:= test_search_path_list.
cpp
108 LOCAL_STATIC_LIBRARIES
:= crazy_linker
109 include $(BUILD_EXECUTABLE
)
111 include $(CLEAR_VARS
)
112 LOCAL_MODULE
:= test_jni_hooks
113 LOCAL_SRC_FILES
:= test_jni_hooks.
cpp
114 LOCAL_STATIC_LIBRARIES
:= crazy_linker
115 include $(BUILD_EXECUTABLE
)
118 ifneq (,$(strip $(CRAZY_BENCH
)))
119 include $(CLEAR_VARS
)
120 LOCAL_MODULE
:= bench_load_library
121 LOCAL_SRC_FILES
:= $(LOCAL_MODULE
).
cpp
122 LOCAL_STATIC_LIBRARIES
:= crazy_linker
123 include $(BUILD_EXECUTABLE
)
126 include $(LOCAL_PATH
)/..
/Android.mk