summaryrefslogtreecommitdiffstats
path: root/gpu/gpu.gyp
diff options
context:
space:
mode:
authordpranke@chromium.org <dpranke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-19 05:15:07 +0000
committerdpranke@chromium.org <dpranke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-19 05:15:07 +0000
commit7522541294ad54bc38cf2871f5b23de399dd198d (patch)
tree585da21c1e21ccbf2705a5c07964a97959df2167 /gpu/gpu.gyp
parent3189013eebc55ea5493186b29f2cee2bc7c0dafc (diff)
downloadchromium_src-7522541294ad54bc38cf2871f5b23de399dd198d.zip
chromium_src-7522541294ad54bc38cf2871f5b23de399dd198d.tar.gz
chromium_src-7522541294ad54bc38cf2871f5b23de399dd198d.tar.bz2
This change makes gles2_c_lib work as a component. It introduces a gles2_c_lib_export.h file, and ensures that all of the GL shim symbols are exported properly.
This also fixes a couple of prototype issues in glTexStorage2DEXT and glEnableFeatureCHROMIUM along the way. R=gman@chromium.org TEST=waterfall, specifically platform/chromium/compositing/accelerated-drawing tests don't crash Review URL: https://chromiumcodereview.appspot.com/8956051 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118240 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/gpu.gyp')
-rw-r--r--gpu/gpu.gyp15
1 files changed, 13 insertions, 2 deletions
diff --git a/gpu/gpu.gyp b/gpu/gpu.gyp
index 983285a..bc2395d 100644
--- a/gpu/gpu.gyp
+++ b/gpu/gpu.gyp
@@ -11,6 +11,7 @@
'gles2_c_lib_source_files': [
'command_buffer/client/gles2_c_lib.cc',
'command_buffer/client/gles2_c_lib_autogen.h',
+ 'command_buffer/client/gles2_c_lib_export.h',
'command_buffer/client/gles2_lib.h',
'command_buffer/client/gles2_lib.cc',
],
@@ -141,11 +142,15 @@
# Stub to expose gles2_implemenation in C instead of C++.
# so GLES2 C programs can work with no changes.
'target_name': 'gles2_c_lib',
- 'type': 'static_library',
+ 'type': '<(component)',
'dependencies': [
'../base/base.gyp:base',
+ '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
'gles2_implementation',
],
+ 'defines': [
+ 'GLES2_C_LIB_IMPLEMENTATION',
+ ],
'sources': [
'<@(gles2_c_lib_source_files)',
],
@@ -154,11 +159,14 @@
# Same as gles2_c_lib except with no parameter checking. Required for
# OpenGL ES 2.0 conformance tests.
'target_name': 'gles2_c_lib_nocheck',
- 'type': 'static_library',
+ 'type': '<(component)',
'defines': [
+ 'GLES2_C_LIB_IMPLEMENTATION',
'GLES2_CONFORMANCE_TESTS=1',
],
'dependencies': [
+ '../base/base.gyp:base',
+ '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
'gles2_implementation_client_side_arrays_no_check',
],
'sources': [
@@ -289,6 +297,9 @@
'gles2_implementation_client_side_arrays',
'gles2_cmd_helper',
],
+ 'defines': [
+ 'GLES2_C_LIB_IMPLEMENTATION',
+ ],
'sources': [
'<@(gles2_c_lib_source_files)',
'command_buffer/client/cmd_buffer_helper_test.cc',