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

Side by Side Diff: tools/gyp/configurations_android.gypi

Issue 414303004: Add build configuration variable 'c_frame_pointers' to control whether or not frame pointers are in… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « tools/gyp/all.gypi ('k') | tools/gyp/configurations_make.gypi » ('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 (c) 2012, the Dart project authors. Please see the AUTHORS file 1 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 # for details. All rights reserved. Use of this source code is governed by a 2 # for details. All rights reserved. Use of this source code is governed by a
3 # BSD-style license that can be found in the LICENSE file. 3 # BSD-style license that can be found in the LICENSE file.
4 4
5 # Definitions for building standalone Dart binaries to run on Android. 5 # Definitions for building standalone Dart binaries to run on Android.
6 # This is mostly excerpted from: 6 # This is mostly excerpted from:
7 # http://src.chromium.org/viewvc/chrome/trunk/src/build/common.gypi 7 # http://src.chromium.org/viewvc/chrome/trunk/src/build/common.gypi
8 8
9 { 9 {
10 'variables': { 10 'variables': {
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 ['_toolset=="host"', { 48 ['_toolset=="host"', {
49 'cflags': [ '-m32', '-pthread' ], 49 'cflags': [ '-m32', '-pthread' ],
50 }], 50 }],
51 ], 51 ],
52 }, 52 },
53 'Dart_Android_Debug': { 53 'Dart_Android_Debug': {
54 'abstract': 1, 54 'abstract': 1,
55 'defines': [ 55 'defines': [
56 'DEBUG', 56 'DEBUG',
57 ], 57 ],
58 'conditions': [
59 ['c_frame_pointers==1', {
60 'cflags': [
61 '-fno-omit-frame-pointer',
62 ],
63 'defines': [
64 'PROFILE_NATIVE_CODE'
65 ],
66 }],
67 ],
58 }, 68 },
59 'Dart_Android_Release': { 69 'Dart_Android_Release': {
60 'abstract': 1, 70 'abstract': 1,
61 'defines': [ 71 'defines': [
62 'NDEBUG', 72 'NDEBUG',
63 ], 73 ],
64 'cflags!': [ 74 'cflags!': [
65 '-O2', 75 '-O2',
66 '-Os', 76 '-Os',
67 ], 77 ],
68 'cflags': [ 78 'cflags': [
69 '-fdata-sections', 79 '-fdata-sections',
70 '-ffunction-sections', 80 '-ffunction-sections',
71 # Uncomment the following line and pass --profile-vm to enable
72 # profiling of C++ code within Observatory.
73 # '-fno-omit-frame-pointer',
74 '-O3', 81 '-O3',
75 ], 82 ],
83 'conditions': [
84 ['c_frame_pointers==1', {
85 'cflags': [
86 '-fno-omit-frame-pointer',
87 ],
88 'defines': [
89 'PROFILE_NATIVE_CODE'
90 ],
91 }],
92 ],
76 }, 93 },
77 'Dart_Android_ia32_Base': { 94 'Dart_Android_ia32_Base': {
78 'abstract': 1, 95 'abstract': 1,
79 'variables': { 96 'variables': {
80 'android_sysroot': '<(android_ndk_root)/platforms/android-14/arch-x86' , 97 'android_sysroot': '<(android_ndk_root)/platforms/android-14/arch-x86' ,
81 'android_ndk_include': '<(android_sysroot)/usr/include', 98 'android_ndk_include': '<(android_sysroot)/usr/include',
82 'android_ndk_lib': '<(android_sysroot)/usr/lib', 99 'android_ndk_lib': '<(android_sysroot)/usr/lib',
83 }, 100 },
84 'target_conditions': [ 101 'target_conditions': [
85 ['_toolset=="target"', { 102 ['_toolset=="target"', {
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 ], 202 ],
186 }], 203 }],
187 ['_toolset=="host"', { 204 ['_toolset=="host"', {
188 'ldflags': [ '-m32', '-pthread' ], 205 'ldflags': [ '-m32', '-pthread' ],
189 }], 206 }],
190 ], 207 ],
191 }, 208 },
192 }, # configurations 209 }, # configurations
193 }, # target_defaults 210 }, # target_defaults
194 } 211 }
OLDNEW
« no previous file with comments | « tools/gyp/all.gypi ('k') | tools/gyp/configurations_make.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698