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

Unified Diff: third_party/android_crazy_linker/src/tests/Android.mk

Issue 322433006: Fork of the Android NDK crazy linker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add a required license header to a cpp module, missing in the original. Created 6 years, 6 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/android_crazy_linker/src/tests/Android.mk
diff --git a/third_party/android_crazy_linker/src/tests/Android.mk b/third_party/android_crazy_linker/src/tests/Android.mk
new file mode 100644
index 0000000000000000000000000000000000000000..7ad600019efbc0ddad2aaaeb2a2feb60970318da
--- /dev/null
+++ b/third_party/android_crazy_linker/src/tests/Android.mk
@@ -0,0 +1,126 @@
+# Copyright (c) 2013 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+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 := libfoo2
+LOCAL_SRC_FILES := foo2.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 := libjni_lib
+LOCAL_SRC_FILES := jni_lib.cpp
+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_load_library_callbacks
+LOCAL_SRC_FILES := test_load_library_callbacks.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_shared_relro
+LOCAL_SRC_FILES := test_shared_relro.cpp
+LOCAL_STATIC_LIBRARIES := crazy_linker
+include $(BUILD_EXECUTABLE)
+
+include $(CLEAR_VARS)
+LOCAL_MODULE := test_relocated_shared_relro
+LOCAL_SRC_FILES := test_relocated_shared_relro.cpp
+LOCAL_STATIC_LIBRARIES := crazy_linker
+include $(BUILD_EXECUTABLE)
+
+include $(CLEAR_VARS)
+LOCAL_MODULE := test_two_shared_relros
+LOCAL_SRC_FILES := test_two_shared_relros.cpp
+LOCAL_STATIC_LIBRARIES := crazy_linker
+include $(BUILD_EXECUTABLE)
+
+include $(CLEAR_VARS)
+LOCAL_MODULE := test_search_path_list
+LOCAL_SRC_FILES := test_search_path_list.cpp
+LOCAL_STATIC_LIBRARIES := crazy_linker
+include $(BUILD_EXECUTABLE)
+
+include $(CLEAR_VARS)
+LOCAL_MODULE := test_jni_hooks
+LOCAL_SRC_FILES := test_jni_hooks.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/android_crazy_linker/src/src/linker_phdr.cpp ('k') | third_party/android_crazy_linker/src/tests/bar.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698