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

Unified Diff: build/common.gypi

Issue 558035: [GPU] Get GPU process running on the mac... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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
« no previous file with comments | « app/gfx/native_widget_types.h ('k') | chrome/browser/renderer_host/render_widget_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/common.gypi
===================================================================
--- build/common.gypi (revision 37920)
+++ build/common.gypi (working copy)
@@ -280,6 +280,15 @@
'NACL_WIN64',
],
}],
+ # Compute based on OS and target architecture whether the GPU
+ # plugin / process is supported.
+ [ 'OS=="win" or (OS=="linux" and target_arch!="arm") or OS=="mac"', {
+ # Enable a variable used elsewhere throughout the GYP files to determine
+ # whether to compile in the sources for the GPU plugin / process.
+ 'enable_gpu%': 1,
+ }, { # GPU plugin not supported
+ 'enable_gpu%': 0,
+ }],
],
# NOTE: When these end up in the Mac bundle, we need to replace '-' for '_'
@@ -346,7 +355,7 @@
}],
],
}],
- ['OS=="win" or (OS=="linux" and target_arch!="arm")', {
+ ['enable_gpu==1', {
'defines': [
'ENABLE_GPU=1',
],
« no previous file with comments | « app/gfx/native_widget_types.h ('k') | chrome/browser/renderer_host/render_widget_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698