| # Copyright 2015 The Chromium Authors | 
 | # Use of this source code is governed by a BSD-style license that can be | 
 | # found in the LICENSE file. | 
 |  | 
 | # Unwind tables create a dependency on libc++. By removing them | 
 | # the final binary will not require anything more than libc, libdl and liblog. | 
 | # This makes its deployment easier in component=shared_library mode. | 
 | config("android_binary_no_libcpp_config") { | 
 |   cflags = [ | 
 |     "-fno-unwind-tables", | 
 |     "-fno-asynchronous-unwind-tables", | 
 |   ] | 
 |   libs = [ "log" ] | 
 | } | 
 |  | 
 | executable("memtrack_helper") { | 
 |   sources = [ | 
 |     "memtrack_helper.c", | 
 |     "memtrack_helper.h", | 
 |   ] | 
 |   configs += [ ":android_binary_no_libcpp_config" ] | 
 | } | 
 |  | 
 | executable("memtrack_helper_test_client") { | 
 |   sources = [ | 
 |     "memtrack_helper.h", | 
 |     "memtrack_helper_test_client.c", | 
 |   ] | 
 |   configs += [ ":android_binary_no_libcpp_config" ] | 
 | } |