summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorpiman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-26 22:33:54 +0000
committerpiman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-26 22:33:54 +0000
commit1a8374f836bc82ad2c92dc7395733d7af983f572 (patch)
tree1c539d6cb1e3edaa89f989e4627112ca4fd227b0 /build
parentc342292e351c3d5b060b3f7fad2855ba4e48aa09 (diff)
downloadchromium_src-1a8374f836bc82ad2c92dc7395733d7af983f572.zip
chromium_src-1a8374f836bc82ad2c92dc7395733d7af983f572.tar.gz
chromium_src-1a8374f836bc82ad2c92dc7395733d7af983f572.tar.bz2
add ENABLE_GLES flag for conditional complilation of GLES
related code Review URL: http://codereview.chromium.org/1708006 Patch from Wei Jia <wjia@chromium.org>. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45635 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build')
-rw-r--r--build/common.gypi14
1 files changed, 14 insertions, 0 deletions
diff --git a/build/common.gypi b/build/common.gypi
index 5be7be7..372ad35 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -321,6 +321,15 @@
}, { # GPU plugin not supported
'enable_gpu%': 0,
}],
+ # Compute based on OS, target architecture and device whether GLES
+ # is supported
+ [ 'OS=="linux" and target_arch=="arm" and chromeos==1', {
+ # Enable a variable used elsewhere throughout the GYP files to determine
+ # whether to compile in the sources for the GLES support.
+ 'enable_gles%': 1,
+ }, { # GLES not supported
+ 'enable_gles%': 0,
+ }],
],
# NOTE: When these end up in the Mac bundle, we need to replace '-' for '_'
@@ -405,6 +414,11 @@
'ENABLE_GPU=1',
],
}],
+ ['enable_gles==1', {
+ 'defines': [
+ 'ENABLE_GLES=1',
+ ],
+ }],
['coverage!=0', {
'conditions': [
['OS=="mac"', {