Roll src/third_party/WebKit eac3800:0237a66 (svn 202606:202607)
[chromium-blink-merge.git] / base / android / linker / BUILD.gn
blobb91b7c666c70aeea8fb87d7bd3443c5c871c8071
1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 import("//build/config/android/config.gni")
7 assert(is_android)
9 # GYP: //base/base.gyp:chromium_android_linker
10 shared_library("chromium_android_linker") {
11   sources = [
12     "android_dlext.h",
13     "legacy_linker_jni.cc",
14     "legacy_linker_jni.h",
15     "linker_jni.cc",
16     "linker_jni.h",
17     "modern_linker_jni.cc",
18     "modern_linker_jni.h",
19   ]
21   # The NDK contains the crazy_linker here:
22   #   '<(android_ndk_root)/crazy_linker.gyp:crazy_linker'
23   # However, we use our own fork.  See bug 384700.
24   deps = [
25     "//build/config/sanitizers:deps",
26     "//third_party/android_crazy_linker",
27   ]
29   # TODO(GYP):
30   # The crazy linker is never instrumented.
31   #'cflags!': [
32   #'-finstrument-functions',
33   #],