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

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, 2 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
« no previous file with comments | « build/config/BUILDCONFIG.gn ('k') | build/config/android/config.gni » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/sanitizers/sanitizers.gni") 6 import("//build/config/sanitizers/sanitizers.gni")
7 import("//build/config/sysroot.gni") 7 import("//build/config/sysroot.gni")
8 8
9 assert(is_android) 9 assert(is_android)
10 10
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 config("executable_config") { 215 config("executable_config") {
216 cflags = [ "-fPIE" ] 216 cflags = [ "-fPIE" ]
217 asmflags = [ "-fPIE" ] 217 asmflags = [ "-fPIE" ]
218 ldflags = [ "-pie" ] 218 ldflags = [ "-pie" ]
219 } 219 }
220 220
221 config("hide_native_jni_exports") { 221 config("hide_native_jni_exports") {
222 ldflags = [ "-Wl,--version-script=" + 222 ldflags = [ "-Wl,--version-script=" +
223 rebase_path("//build/android/android_no_jni_exports.lst") ] 223 rebase_path("//build/android/android_no_jni_exports.lst") ]
224 } 224 }
225
226 # Instrumentation -------------------------------------------------------------
227 #
228 # The BUILDCONFIG file sets the "default_cygprofile_instrumentation" config on
229 # targets by default. You can override whether the cygprofile instrumentation is
230 # used on a per-target basis:
231 #
232 # configs -= [ "//build/config/android:default_cygprofile_instrumentation" ]
233 # configs += [ "//build/config/android:no_cygprofile_instrumentation" ]
234
235 config("default_cygprofile_instrumentation") {
236 if (use_order_profiling) {
237 configs = [ ":cygprofile_instrumentation" ]
238 } else {
239 configs = [ ":no_cygprofile_instrumentation" ]
240 }
241 }
242
243 config("cygprofile_instrumentation") {
244 cflags = [
245 "-finstrument-functions",
246
247 # Allow mmx intrinsics to inline, so that the compiler can expand the intrin sics.
248 "-finstrument-functions-exclude-file-list=mmintrin.h",
249
250 # Avoid errors with current NDK:
251 # "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"
252 "-finstrument-functions-exclude-file-list=arm_neon.h,SaturatedArithmeticARM. h",
253 ]
254 defines = [ "CYGPROFILE_INSTRUMENTATION=1" ]
255 }
256
257 config("no_cygprofile_instrumentation") {
258 }
OLDNEW
« no previous file with comments | « build/config/BUILDCONFIG.gn ('k') | build/config/android/config.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698