Colin Cross | 7add50d | 2016-01-14 15:35:40 -0800 | [diff] [blame] | 1 | LOCAL_PATH := $(call my-dir) |
| 2 | |
| 3 | memunreachable_srcs := \ |
| 4 | Allocator.cpp \ |
| 5 | HeapWalker.cpp \ |
Colin Cross | 8e8f34c | 2016-03-02 17:53:39 -0800 | [diff] [blame] | 6 | LeakFolding.cpp \ |
Colin Cross | 7add50d | 2016-01-14 15:35:40 -0800 | [diff] [blame] | 7 | LeakPipe.cpp \ |
| 8 | LineBuffer.cpp \ |
| 9 | MemUnreachable.cpp \ |
| 10 | ProcessMappings.cpp \ |
| 11 | PtracerThread.cpp \ |
| 12 | ThreadCapture.cpp \ |
| 13 | |
| 14 | memunreachable_test_srcs := \ |
| 15 | tests/Allocator_test.cpp \ |
Colin Cross | b8e20f5 | 2016-03-02 17:52:56 -0800 | [diff] [blame] | 16 | tests/DisableMalloc_test.cpp \ |
Colin Cross | 7add50d | 2016-01-14 15:35:40 -0800 | [diff] [blame] | 17 | tests/HeapWalker_test.cpp \ |
Colin Cross | 8e8f34c | 2016-03-02 17:53:39 -0800 | [diff] [blame] | 18 | tests/LeakFolding_test.cpp \ |
Colin Cross | 7add50d | 2016-01-14 15:35:40 -0800 | [diff] [blame] | 19 | tests/MemUnreachable_test.cpp \ |
| 20 | tests/ThreadCapture_test.cpp \ |
| 21 | |
| 22 | include $(CLEAR_VARS) |
| 23 | |
| 24 | LOCAL_MODULE := libmemunreachable |
| 25 | LOCAL_SRC_FILES := $(memunreachable_srcs) |
| 26 | LOCAL_CFLAGS := -std=c++14 -Wall -Wextra -Werror |
| 27 | LOCAL_SHARED_LIBRARIES := libbase liblog |
| 28 | LOCAL_STATIC_LIBRARIES := libc_malloc_debug_backtrace libc_logging |
| 29 | # Only need this for arm since libc++ uses its own unwind code that |
| 30 | # doesn't mix with the other default unwind code. |
| 31 | LOCAL_STATIC_LIBRARIES_arm := libunwind_llvm |
| 32 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include |
| 33 | LOCAL_C_INCLUDES := $(LOCAL_PATH)/include |
| 34 | LOCAL_CLANG := true |
| 35 | |
| 36 | include $(BUILD_SHARED_LIBRARY) |
| 37 | |
| 38 | include $(CLEAR_VARS) |
| 39 | |
| 40 | LOCAL_MODULE := memunreachable_test |
| 41 | LOCAL_SRC_FILES := $(memunreachable_test_srcs) |
| 42 | LOCAL_CFLAGS := -std=c++14 -Wall -Wextra -Werror |
| 43 | LOCAL_CLANG := true |
| 44 | LOCAL_SHARED_LIBRARIES := libmemunreachable libbase liblog |
| 45 | |
| 46 | include $(BUILD_NATIVE_TEST) |
Colin Cross | b8e20f5 | 2016-03-02 17:52:56 -0800 | [diff] [blame] | 47 | |
| 48 | include $(CLEAR_VARS) |
| 49 | |
| 50 | LOCAL_MODULE := memunreachable_test |
| 51 | LOCAL_SRC_FILES := \ |
| 52 | Allocator.cpp \ |
| 53 | HeapWalker.cpp \ |
Colin Cross | 8e8f34c | 2016-03-02 17:53:39 -0800 | [diff] [blame] | 54 | LeakFolding.cpp \ |
Colin Cross | b8e20f5 | 2016-03-02 17:52:56 -0800 | [diff] [blame] | 55 | tests/Allocator_test.cpp \ |
| 56 | tests/HeapWalker_test.cpp \ |
| 57 | tests/HostMallocStub.cpp \ |
Colin Cross | 8e8f34c | 2016-03-02 17:53:39 -0800 | [diff] [blame] | 58 | tests/LeakFolding_test.cpp \ |
Colin Cross | b8e20f5 | 2016-03-02 17:52:56 -0800 | [diff] [blame] | 59 | |
| 60 | LOCAL_CFLAGS := -std=c++14 -Wall -Wextra -Werror |
| 61 | LOCAL_CLANG := true |
| 62 | LOCAL_SHARED_LIBRARIES := libbase liblog |
Colin Cross | e33686b | 2016-03-07 17:19:28 -0800 | [diff] [blame] | 63 | LOCAL_MODULE_HOST_OS := linux |
Colin Cross | b8e20f5 | 2016-03-02 17:52:56 -0800 | [diff] [blame] | 64 | |
| 65 | include $(BUILD_HOST_NATIVE_TEST) |