blob: e41a0c87240aa3a38846fd5de2511ee8db2be6ba [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, 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" ]
}