blob: e9664deb254a1a9adf3cc7ce2637c3c9905df009 [file] [log] [blame]
[email protected]b42370e2011-01-22 01:13:091# Copyright (c) 2010 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
[email protected]b42370e2011-01-22 01:13:095{
6 'includes': [
7 '../third_party/mesa/mesa.gypi',
8 ],
9 'targets': [
10 {
[email protected]e80bdfb2011-10-19 20:17:1711 'target_name': 'ppapi_egl',
[email protected]b42370e2011-01-22 01:13:0912 'type': 'static_library',
13 'dependencies': [
[email protected]e80bdfb2011-10-19 20:17:1714 '<(DEPTH)/ppapi/ppapi.gyp:ppapi_c',
[email protected]b42370e2011-01-22 01:13:0915 ],
16 'include_dirs': [
17 'lib/gl/include',
18 ],
19 'defines': [
20 # Do not export internal Mesa funcations. Exporting them is not
21 # required because we are compiling both - API dispatcher and driver
22 # into a single library.
23 'PUBLIC=',
24 # Define a new PPAPI platform.
25 '_EGL_PLATFORM_PPAPI=_EGL_NUM_PLATFORMS',
26 '_EGL_NATIVE_PLATFORM=_EGL_PLATFORM_PPAPI',
27 ],
28 'conditions': [
29 ['OS=="win"', {
30 'defines': [
31 '_EGL_OS_WINDOWS',
32 ],
33 }],
34 ['OS=="mac"', {
35 # TODO(alokp): Make this compile on mac.
36 'suppress_wildcard': 1,
37 }],
38 ],
39 'sources': [
40 # Mesa EGL API dispatcher sources.
41 '<@(mesa_egl_sources)',
42 # PPAPI EGL driver sources.
43 'lib/gl/egl/egldriver.c',
44 'lib/gl/egl/egldriver_ppapi.c',
45 ],
46 },
47 {
[email protected]e80bdfb2011-10-19 20:17:1748 'target_name': 'ppapi_gles2',
[email protected]b42370e2011-01-22 01:13:0949 'type': 'static_library',
50 'dependencies': [
[email protected]e80bdfb2011-10-19 20:17:1751 'ppapi_c',
[email protected]b42370e2011-01-22 01:13:0952 ],
53 'include_dirs': [
54 'lib/gl/include',
55 ],
56 'sources': [
57 'lib/gl/gles2/gl2ext_ppapi.c',
58 'lib/gl/gles2/gl2ext_ppapi.h',
59 'lib/gl/gles2/gles2.c',
60 ],
61 },
[email protected]b42370e2011-01-22 01:13:0962 ],
63}