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

Unified Diff: build/common.gypi

Issue 6250070: Added command line switches and UI (controlled via a build option) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Some cleanup Created 9 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: build/common.gypi
diff --git a/build/common.gypi b/build/common.gypi
index 6044b5276044f314d6536c7861b052edb6dbdfe1..89e51c5a491f42c95a5ad5f8b9169b8fdf54a36b 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -23,10 +23,14 @@
# Disable touch support by default.
'touchui%': 0,
+
+ # Disable profiling build by default.
+ 'profiling%': 0,
Evan Martin 2011/02/01 02:45:59 Gyp is super-confusing, but you can either ask me
DaveMoore 2011/02/01 19:21:55 Done.
},
# Copy conditionally-set variables out one scope.
'chromeos%': '<(chromeos)',
'touchui%': '<(touchui)',
+ 'profiling%': '<(profiling)',
Evan Martin 2011/02/01 02:45:59 And this one...
DaveMoore 2011/02/01 19:21:55 Done.
# To do a shared build on linux we need to be able to choose between
# type static_library and shared_library. We default to doing a static
@@ -61,6 +65,7 @@
# Copy conditionally-set variables out one scope.
'chromeos%': '<(chromeos)',
'touchui%': '<(touchui)',
+ 'profiling%': '<(profiling)',
Evan Martin 2011/02/01 02:45:59 and this one...
DaveMoore 2011/02/01 19:21:55 Done.
'host_arch%': '<(host_arch)',
'library%': '<(library)',
'toolkit_views%': '<(toolkit_views)',
@@ -166,6 +171,7 @@
'enable_flapper_hacks%': '<(enable_flapper_hacks)',
'chromeos%': '<(chromeos)',
'touchui%': '<(touchui)',
+ 'profiling%': '<(profiling)',
Evan Martin 2011/02/01 02:45:59 And then move this one a bit lower, where you'll s
DaveMoore 2011/02/01 19:21:55 Done.
'inside_chromium_build%': '<(inside_chromium_build)',
'fastbuild%': '<(fastbuild)',
'python_ver%': '<(python_ver)',
@@ -536,6 +542,9 @@
['touchui==1', {
'defines': ['TOUCH_UI=1'],
}],
+ ['profiling==1', {
+ 'defines': ['ENABLE_PROFILING=1'],
+ }],
['remoting==1', {
'defines': ['ENABLE_REMOTING=1'],
}],
@@ -1014,6 +1023,12 @@
'-fno-ident',
],
}],
+ ['profiling==1', {
+ 'cflags': [
+ '-fno-omit-frame-pointer',
+ '-g',
+ ],
+ }],
]
},
},

Powered by Google App Engine
This is Rietveld 408576698