summaryrefslogtreecommitdiffstats
path: root/ppapi/ppapi_gl.gypi
diff options
context:
space:
mode:
authornoelallen@google.com <noelallen@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-22 01:13:09 +0000
committernoelallen@google.com <noelallen@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-22 01:13:09 +0000
commitb42370e13e712c473ec5948048d857ec727b2e4b (patch)
treec2d8a8fddbd454ee5efbf0fa08bdfca98e6fd6dc /ppapi/ppapi_gl.gypi
parent97b3029bae25940227e1986df19d2677e687660b (diff)
downloadchromium_src-b42370e13e712c473ec5948048d857ec727b2e4b.zip
chromium_src-b42370e13e712c473ec5948048d857ec727b2e4b.tar.gz
chromium_src-b42370e13e712c473ec5948048d857ec727b2e4b.tar.bz2
Break ppapi.gyp into several gypi's to reduce contention and allow projects to pick
which portion of ppapi to use. This revents ppapi from inducing dependencies on other libraries such as base, or large code bases such as mesa in the cases where the ppapi user doesn't need them. BUG=nacl1339 TEST=None Review URL: http://codereview.chromium.org/6265022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72248 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/ppapi_gl.gypi')
-rw-r--r--ppapi/ppapi_gl.gypi66
1 files changed, 66 insertions, 0 deletions
diff --git a/ppapi/ppapi_gl.gypi b/ppapi/ppapi_gl.gypi
new file mode 100644
index 0000000..7af9694
--- /dev/null
+++ b/ppapi/ppapi_gl.gypi
@@ -0,0 +1,66 @@
+# Copyright (c) 2010 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+
+# This file was split off from ppapi.gyp to prevent PPAPI users from
+# needing to DEPS in ~10K files due to mesa.
+{
+ 'includes': [
+ '../third_party/mesa/mesa.gypi',
+ ],
+ 'targets': [
+ {
+ 'target_name': 'ppapi_egl',
+ 'type': 'static_library',
+ 'dependencies': [
+ '<(DEPTH)/ppapi/ppapi.gyp: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_gles2',
+ 'type': 'static_library',
+ 'dependencies': [
+ 'ppapi_c',
+ ],
+ 'include_dirs': [
+ 'lib/gl/include',
+ ],
+ 'sources': [
+ 'lib/gl/gles2/gl2ext_ppapi.c',
+ 'lib/gl/gles2/gl2ext_ppapi.h',
+ 'lib/gl/gles2/gles2.c',
+ ],
+ },
+ ],
+}