blob: 5948cb575881606311dc6debcf87400bf5a595b1 [file] [log] [blame]
# Copyright 2015 The Chromium Authors. All rights reserved.
# 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 and libdl.
# This makes its deployment easier in component=shared_library mode.
config("android_binary_no_libcpp_config") {
cflags = [
"-fno-unwind-tables",
"-fno-asynchronous-unwind-tables",
]
}
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" ]
}