Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(495)

Unified Diff: third_party/crazy_linker/crazy_linker/tests/Android.mk

Issue 23542017: This patch adds a new third-party library that implements an ELF dynamic linker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Minor update Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/crazy_linker/crazy_linker/tests/Android.mk
diff --git a/third_party/crazy_linker/crazy_linker/tests/Android.mk b/third_party/crazy_linker/crazy_linker/tests/Android.mk
new file mode 100644
index 0000000000000000000000000000000000000000..4d7966afedf6bc3729d07aad7d4a714f8f1c7159
--- /dev/null
+++ b/third_party/crazy_linker/crazy_linker/tests/Android.mk
@@ -0,0 +1,86 @@
+LOCAL_PATH := $(call my-dir)
+
+include $(CLEAR_VARS)
+LOCAL_MODULE := libfoo
+LOCAL_SRC_FILES := foo.cpp
+LOCAL_LDLIBS := -llog
+include $(BUILD_SHARED_LIBRARY)
+
+include $(CLEAR_VARS)
+LOCAL_MODULE := libfoo_with_static_constructor
+LOCAL_SRC_FILES := foo_with_static_constructor.cpp
+LOCAL_LDLIBS := -llog
+include $(BUILD_SHARED_LIBRARY)
+
+include $(CLEAR_VARS)
+LOCAL_MODULE := libfoo_with_relro
+LOCAL_SRC_FILES := foo_with_relro.cpp
+LOCAL_LDLIBS := -llog
+include $(BUILD_SHARED_LIBRARY)
+
+
+include $(CLEAR_VARS)
+LOCAL_MODULE := libbar
+LOCAL_SRC_FILES := bar.cpp
+LOCAL_SHARED_LIBRARIES := libfoo
+LOCAL_LDLIBS := -llog
+include $(BUILD_SHARED_LIBRARY)
+
+include $(CLEAR_VARS)
+LOCAL_MODULE := libbar_with_relro
+LOCAL_SRC_FILES := bar_with_relro.cpp
+LOCAL_SHARED_LIBRARIES := libfoo_with_relro
+LOCAL_LDLIBS := -llog
+include $(BUILD_SHARED_LIBRARY)
+
+include $(CLEAR_VARS)
+LOCAL_MODULE := libzoo
+LOCAL_SRC_FILES := zoo.cpp
+LOCAL_LDLIBS := -ldl
+include $(BUILD_SHARED_LIBRARY)
+
+include $(CLEAR_VARS)
+LOCAL_MODULE := test_load_library
+LOCAL_SRC_FILES := test_load_library.cpp
+LOCAL_STATIC_LIBRARIES := crazy_linker
+include $(BUILD_EXECUTABLE)
+
+include $(CLEAR_VARS)
+LOCAL_MODULE := test_load_library_depends
+LOCAL_SRC_FILES := test_load_library_depends.cpp
+LOCAL_STATIC_LIBRARIES := crazy_linker
+include $(BUILD_EXECUTABLE)
+
+include $(CLEAR_VARS)
+LOCAL_MODULE := test_dl_wrappers
+LOCAL_SRC_FILES := test_dl_wrappers.cpp
+LOCAL_STATIC_LIBRARIES := crazy_linker
+include $(BUILD_EXECUTABLE)
+
+include $(CLEAR_VARS)
+LOCAL_MODULE := test_constructors_destructors
+LOCAL_SRC_FILES := test_constructors_destructors.cpp
+LOCAL_STATIC_LIBRARIES := crazy_linker
+include $(BUILD_EXECUTABLE)
+
+include $(CLEAR_VARS)
+LOCAL_MODULE := test_relro_sharing
+LOCAL_SRC_FILES := test_relro_sharing.cpp
+LOCAL_STATIC_LIBRARIES := crazy_linker
+include $(BUILD_EXECUTABLE)
+
+include $(CLEAR_VARS)
+LOCAL_MODULE := test_relro_sharing_two_libs
+LOCAL_SRC_FILES := test_relro_sharing_two_libs.cpp
+LOCAL_STATIC_LIBRARIES := crazy_linker
+include $(BUILD_EXECUTABLE)
+
+ifneq (,$(strip $(CRAZY_BENCH)))
+include $(CLEAR_VARS)
+LOCAL_MODULE := bench_load_library
+LOCAL_SRC_FILES := $(LOCAL_MODULE).cpp
+LOCAL_STATIC_LIBRARIES := crazy_linker
+include $(BUILD_EXECUTABLE)
+endif
+
+include $(LOCAL_PATH)/../Android.mk
« no previous file with comments | « third_party/crazy_linker/crazy_linker/src/linker_phdr.cpp ('k') | third_party/crazy_linker/crazy_linker/tests/bar.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698