OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 # Unwind tables create a dependency on libc++. By removing them | 5 # Unwind tables create a dependency on libc++. By removing them |
6 # the final binary will not require anything more than libc and libdl. | 6 # the final binary will not require anything more than libc, libdl and liblog. |
7 # This makes its deployment easier in component=shared_library mode. | 7 # This makes its deployment easier in component=shared_library mode. |
8 config("android_binary_no_libcpp_config") { | 8 config("android_binary_no_libcpp_config") { |
9 cflags = [ | 9 cflags = [ |
10 "-fno-unwind-tables", | 10 "-fno-unwind-tables", |
11 "-fno-asynchronous-unwind-tables", | 11 "-fno-asynchronous-unwind-tables", |
12 ] | 12 ] |
| 13 libs = [ "log" ] |
13 } | 14 } |
14 | 15 |
15 executable("memtrack_helper") { | 16 executable("memtrack_helper") { |
16 sources = [ | 17 sources = [ |
17 "memtrack_helper.c", | 18 "memtrack_helper.c", |
18 "memtrack_helper.h", | 19 "memtrack_helper.h", |
19 ] | 20 ] |
20 configs += [ ":android_binary_no_libcpp_config" ] | 21 configs += [ ":android_binary_no_libcpp_config" ] |
21 } | 22 } |
22 | 23 |
23 executable("memtrack_helper_test_client") { | 24 executable("memtrack_helper_test_client") { |
24 sources = [ | 25 sources = [ |
25 "memtrack_helper.h", | 26 "memtrack_helper.h", |
26 "memtrack_helper_test_client.c", | 27 "memtrack_helper_test_client.c", |
27 ] | 28 ] |
28 configs += [ ":android_binary_no_libcpp_config" ] | 29 configs += [ ":android_binary_no_libcpp_config" ] |
29 } | 30 } |
OLD | NEW |