blob: 824ac1251c0eed4c16f305d03e1e4947493c20ee [file] [log] [blame]
Dan Willemsen9f022b42018-05-09 16:26:42 -07001cc_defaults {
2 name: "memory_replay_defaults",
3 host_supported: true,
4
5 srcs: [
6 "Action.cpp",
7 "LineBuffer.cpp",
8 "NativeInfo.cpp",
9 "Pointers.cpp",
10 "Thread.cpp",
11 "Threads.cpp",
12 ],
13 cflags: [
14 "-Wall",
15 "-Wextra",
16 "-Werror",
17 ],
18 shared_libs: ["libbase"],
19
20 target: {
21 darwin: {
22 enabled: false,
23 },
24 },
25
26 compile_multilib: "both",
27 multilib: {
28 lib32: {
29 suffix: "32",
30 },
31 lib64: {
32 suffix: "64",
33 },
34 },
35
36}
37
38cc_binary {
39 name: "memory_replay",
40 defaults: ["memory_replay_defaults"],
41
42 srcs: ["main.cpp"],
43}
44
45cc_test {
46 name: "memory_replay_tests",
47 defaults: ["memory_replay_defaults"],
48
49 srcs: [
50 "tests/ActionTest.cpp",
51 "tests/LineBufferTest.cpp",
52 "tests/NativeInfoTest.cpp",
53 "tests/PointersTest.cpp",
54 "tests/ThreadTest.cpp",
55 "tests/ThreadsTest.cpp",
56 ],
57
58 local_include_dirs: ["tests"],
59
60 target: {
61 android: {
62 test_suites: ["device-tests"],
63 },
64 },
65}