summaryrefslogtreecommitdiffstats
path: root/chromium/gpu/gpu.gyp
diff options
context:
space:
mode:
authorJocelyn Turcotte <jocelyn.turcotte@digia.com>2013-10-30 14:27:28 +0100
committerJocelyn Turcotte <jocelyn.turcotte@digia.com>2013-11-01 11:20:41 +0100
commitedc469353a41710cf12a78211b9bc88adc4be9fe (patch)
treeea73fc3d6376a86ecc05c98e3a11f3fd3de61e81 /chromium/gpu/gpu.gyp
parenteca36f26ad3765fdaf954735bd5744e2a16154f1 (diff)
Fix the build with a GL ES2 configured Qt.
GLES/gl2.h is included through Qt public headers and the copy of Chromium is used since its include path comes before /usr/include. The problem is that this header is incompatible for some reasons, one of them being that it converts all GL function symbols from gl* to GLES2*. Qt layer code should always need to go through GL directly, so make sure that only GYP targets that depend directly on gpu.gyp, khronos.gyp or webkit_gpu.gyp will have an include path pointing to those headers. Replace all_dependent_settings with direct_dependent_settings and control which target inherits this include_dirs from its dependencies by using export_dependent_settings. Change-Id: Id4d98fe22ef8b778b5ba8da300dad28e69507732 Reviewed-by: Zeno Albisser <zeno.albisser@digia.com> Reviewed-by: Pierre Rossi <pierre.rossi@gmail.com>
Diffstat (limited to 'chromium/gpu/gpu.gyp')
-rw-r--r--chromium/gpu/gpu.gyp9
1 files changed, 9 insertions, 0 deletions
diff --git a/chromium/gpu/gpu.gyp b/chromium/gpu/gpu.gyp
index 316aa914422..73df723f42b 100644
--- a/chromium/gpu/gpu.gyp
+++ b/chromium/gpu/gpu.gyp
@@ -23,6 +23,9 @@
'command_buffer/command_buffer.gyp:gles2_utils',
'gles2_cmd_helper',
],
+ 'export_dependent_settings': [
+ '../third_party/khronos/khronos.gyp:khronos_headers',
+ ],
'defines': [
'GLES2_IMPL_IMPLEMENTATION',
],
@@ -348,6 +351,9 @@
'gpu_config',
'gpu_ipc',
],
+ 'export_dependent_settings': [
+ 'command_buffer_common',
+ ],
'sources': [
'gpu_export.h',
],
@@ -390,6 +396,9 @@
'dependencies': [
'command_buffer_common',
],
+ 'export_dependent_settings': [
+ 'command_buffer_common',
+ ],
# TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
'msvs_disabled_warnings': [4267, ],
},