naiveproxy/base/android/linker/BUILD.gn

44 lines
1.3 KiB
Plaintext
Raw Normal View History

2018-01-28 21:32:06 +03:00
# Copyright 2014 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.
import("//build/config/android/config.gni")
assert(is_android)
declare_args() {
# Set this variable to true to enable GDB support in release builds.
#
# The default is to disable it to reduce the likelyhood of runtime crashes
# on devices that use machine translation (i.e. that run ARM binaries on
# x86 CPUs with a translation layer like Intel's Houdini). For full details
# see https://crbug.com/796938.
#
chromium_android_linker_enable_release_debugging = false
}
shared_library("chromium_android_linker") {
sources = [
"android_dlext.h",
"legacy_linker_jni.cc",
"legacy_linker_jni.h",
"linker_jni.cc",
"linker_jni.h",
"modern_linker_jni.cc",
"modern_linker_jni.h",
]
# Disable GDB support for release builds, unless explicitly wanted.
if (!is_debug && !chromium_android_linker_enable_release_debugging) {
defines = [ "LEGACY_LINKER_DISABLE_DEBUGGER_SUPPORT" ]
}
# The NDK contains the crazy_linker here:
# '<(android_ndk_root)/crazy_linker.gyp:crazy_linker'
# However, we use our own fork. See bug 384700.
deps = [
"//build/config:exe_and_shlib_deps",
"//third_party/android_crazy_linker",
]
}