| Christopher Ferris | 33c03d3 | 2015-09-11 15:34:23 -0700 | [diff] [blame] | 1 | LOCAL_PATH := $(call my-dir) |
| 2 | |
| 3 | memory_replay_src_files := \ |
| 4 | Action.cpp \ |
| 5 | LineBuffer.cpp \ |
| 6 | NativeInfo.cpp \ |
| 7 | Pointers.cpp \ |
| 8 | Thread.cpp \ |
| 9 | Threads.cpp \ |
| 10 | |
| 11 | include $(CLEAR_VARS) |
| 12 | |
| 13 | LOCAL_SRC_FILES := $(memory_replay_src_files) main.cpp |
| 14 | LOCAL_CFLAGS := -Wall -Wextra -Werror |
| 15 | LOCAL_MODULE_TAGS := debug |
| 16 | LOCAL_MODULE := memory_replay |
| 17 | LOCAL_MULTILIB := both |
| 18 | LOCAL_MODULE_STEM_32 := $(LOCAL_MODULE)32 |
| 19 | LOCAL_MODULE_STEM_64 := $(LOCAL_MODULE)64 |
| 20 | include $(BUILD_EXECUTABLE) |
| 21 | |
| 22 | include $(CLEAR_VARS) |
| 23 | |
| 24 | LOCAL_SRC_FILES := $(memory_replay_src_files) main.cpp |
| 25 | LOCAL_CFLAGS := -Wall -Wextra -Werror |
| 26 | LOCAL_MODULE_TAGS := debug |
| 27 | LOCAL_MODULE := memory_replay |
| Christopher Ferris | 9deefaa | 2015-09-15 16:26:21 -0700 | [diff] [blame] | 28 | LOCAL_MODULE_HOST_OS := linux |
| Christopher Ferris | cd7d108 | 2015-10-14 13:25:15 -0700 | [diff] [blame] | 29 | LOCAL_LDLIBS := -lrt |
| Christopher Ferris | 33c03d3 | 2015-09-11 15:34:23 -0700 | [diff] [blame] | 30 | include $(BUILD_HOST_EXECUTABLE) |
| 31 | |
| 32 | memory_replay_test_src_files := \ |
| 33 | tests/ActionTest.cpp \ |
| 34 | tests/LineBufferTest.cpp \ |
| 35 | tests/NativeInfoTest.cpp \ |
| 36 | tests/PointersTest.cpp \ |
| 37 | tests/ThreadTest.cpp \ |
| 38 | tests/ThreadsTest.cpp \ |
| 39 | |
| 40 | include $(CLEAR_VARS) |
| 41 | |
| 42 | LOCAL_SRC_FILES := \ |
| 43 | $(memory_replay_src_files) \ |
| 44 | $(memory_replay_test_src_files) \ |
| 45 | |
| 46 | LOCAL_CFLAGS := -Wall -Wextra -Werror |
| 47 | LOCAL_C_INCLUDES := $(LOCAL_PATH)/tests |
| 48 | LOCAL_MODULE_TAGS := debug |
| 49 | LOCAL_MODULE := memory_replay_tests |
| 50 | |
| 51 | LOCAL_SHARED_LIBRARIES := libbase |
| 52 | |
| 53 | LOCAL_MULTILIB := both |
| 54 | LOCAL_MODULE_STEM_32 := $(LOCAL_MODULE)32 |
| 55 | LOCAL_MODULE_STEM_64 := $(LOCAL_MODULE)64 |
| 56 | include $(BUILD_NATIVE_TEST) |
| 57 | |
| 58 | include $(CLEAR_VARS) |
| 59 | |
| 60 | LOCAL_SRC_FILES := \ |
| 61 | $(memory_replay_src_files) \ |
| 62 | $(memory_replay_test_src_files) \ |
| 63 | |
| 64 | LOCAL_CFLAGS := -Wall -Wextra -Werror |
| 65 | LOCAL_C_INCLUDES := $(LOCAL_PATH)/tests |
| 66 | LOCAL_MODULE_TAGS := debug |
| 67 | LOCAL_MODULE := memory_replay_tests |
| Christopher Ferris | 9deefaa | 2015-09-15 16:26:21 -0700 | [diff] [blame] | 68 | LOCAL_MODULE_HOST_OS := linux |
| Christopher Ferris | 33c03d3 | 2015-09-11 15:34:23 -0700 | [diff] [blame] | 69 | |
| 70 | LOCAL_SHARED_LIBRARIES := libbase |
| Christopher Ferris | cd7d108 | 2015-10-14 13:25:15 -0700 | [diff] [blame] | 71 | LOCAL_LDLIBS := -lrt |
| Christopher Ferris | 33c03d3 | 2015-09-11 15:34:23 -0700 | [diff] [blame] | 72 | |
| Christopher Ferris | cd7d108 | 2015-10-14 13:25:15 -0700 | [diff] [blame] | 73 | LOCAL_MULTILIB := both |
| 74 | LOCAL_MODULE_STEM_32 := $(LOCAL_MODULE)32 |
| 75 | LOCAL_MODULE_STEM_64 := $(LOCAL_MODULE)64 |
| Christopher Ferris | 33c03d3 | 2015-09-11 15:34:23 -0700 | [diff] [blame] | 76 | include $(BUILD_HOST_NATIVE_TEST) |
| 77 | |
| 78 | memory_replay_src_files := |
| 79 | memory_replay_test_src_files := |