Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Side by Side Diff: build/config/android/BUILD.gn

Issue 1363793002: Port the order_profiling GYP flag to GN (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/android/config.gni") 5 import("//build/config/android/config.gni")
6 import("//build/config/sysroot.gni") 6 import("//build/config/sysroot.gni")
7 7
8 config("sdk") { 8 config("sdk") {
9 if (sysroot != "") { 9 if (sysroot != "") {
10 cflags = [ "--sysroot=" + sysroot ] 10 cflags = [ "--sysroot=" + sysroot ]
(...skipping 12 matching lines...) Expand all
23 23
24 config("executable_config") { 24 config("executable_config") {
25 cflags = [ "-fPIE" ] 25 cflags = [ "-fPIE" ]
26 ldflags = [ "-pie" ] 26 ldflags = [ "-pie" ]
27 } 27 }
28 28
29 config("hide_native_jni_exports") { 29 config("hide_native_jni_exports") {
30 ldflags = [ "-Wl,--version-script=" + 30 ldflags = [ "-Wl,--version-script=" +
31 rebase_path("//build/android/android_no_jni_exports.lst") ] 31 rebase_path("//build/android/android_no_jni_exports.lst") ]
32 } 32 }
33
34 # Instrumentation -------------------------------------------------------------
35 #
36 # The BUILDCONFIG file sets the "default_cygprofile_instrumentation" config on
37 # targets by default. You can override whether the cygprofile instrumentation is
38 # used on a per-target basis:
39 #
40 # configs -= [ "//build/config/android:default_cygprofile_instrumentation" ]
41 # configs += [ "//build/config/android:no_cygprofile_instrumentation" ]
42
43 config("default_cygprofile_instrumentation") {
44 if (order_profiling) {
45 configs = [ ":cygprofile_instrumentation" ]
46 } else {
47 configs = [ ":no_cygprofile_instrumentation" ]
48 }
49 }
50
51 config("cygprofile_instrumentation") {
52 cflags = [
53 "-finstrument-functions",
54
55 # Allow mmx intrinsics to inline, so that the compiler can expand the intrin sics.
56 "-finstrument-functions-exclude-file-list=mmintrin.h",
57
58 # Avoid errors with current NDK:
59 # "third_party/android_tools/ndk/toolchains/arm-linux-androideabi-4.6/prebui lt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/include/arm_neon.h:3426 :3: error: argument must be a constant"
60 "-finstrument-functions-exclude-file-list=arm_neon.h,SaturatedArithmeticARM. h",
61 ]
62 defines = [ "CYGPROFILE_INSTRUMENTATION=1" ]
63 }
64
65 config("no_cygprofile_instrumentation") {
66 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698