diff options
author | alokp@chromium.org <alokp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-14 20:54:03 +0000 |
---|---|---|
committer | alokp@chromium.org <alokp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-14 20:54:03 +0000 |
commit | 61e512816c5510a234f0e5dd21d7556f207cc4cd (patch) | |
tree | 19456ad5cfd259c9af977e536f850afccb0a6f47 /ppapi/ppapi.gyp | |
parent | 9c847f6b0a46ce31e96f23ee42bfc8a2f8a68c93 (diff) | |
download | chromium_src-61e512816c5510a234f0e5dd21d7556f207cc4cd.zip chromium_src-61e512816c5510a234f0e5dd21d7556f207cc4cd.tar.gz chromium_src-61e512816c5510a234f0e5dd21d7556f207cc4cd.tar.bz2 |
Added a stub driver implementation for Mesa EGL.
Review URL: http://codereview.chromium.org/5717003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69174 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/ppapi.gyp')
-rw-r--r-- | ppapi/ppapi.gyp | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/ppapi/ppapi.gyp b/ppapi/ppapi.gyp index 5499d7c..80f0b2b 100644 --- a/ppapi/ppapi.gyp +++ b/ppapi/ppapi.gyp @@ -3,6 +3,9 @@ # found in the LICENSE file. { + 'includes': [ + '../third_party/mesa/mesa.gypi', + ], 'variables': { 'chromium_code': 1, # Use higher warning level. }, @@ -255,6 +258,43 @@ ], }, { + 'target_name': 'ppapi_egl', + 'type': 'static_library', + 'dependencies': [ + 'ppapi_c', + ], + 'include_dirs': [ + 'lib/gl/include', + ], + 'defines': [ + # Do not export internal Mesa funcations. Exporting them is not + # required because we are compiling both - API dispatcher and driver + # into a single library. + 'PUBLIC=', + # Define a new PPAPI platform. + '_EGL_PLATFORM_PPAPI=_EGL_NUM_PLATFORMS', + '_EGL_NATIVE_PLATFORM=_EGL_PLATFORM_PPAPI', + ], + 'conditions': [ + ['OS=="win"', { + 'defines': [ + '_EGL_OS_WINDOWS', + ], + }], + ['OS=="mac"', { + # TODO(alokp): Make this compile on mac. + 'suppress_wildcard': 1, + }], + ], + 'sources': [ + # Mesa EGL API dispatcher sources. + '<@(mesa_egl_sources)', + # PPAPI EGL driver sources. + 'lib/gl/egl/egldriver.c', + 'lib/gl/egl/egldriver_ppapi.c', + ], + }, + { 'target_name': 'ppapi_example', 'dependencies': [ 'ppapi_cpp' |