OLD | NEW |
(Empty) | |
| 1 # 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 |
| 5 |
| 6 # This file was split off from ppapi.gyp to prevent PPAPI users from |
| 7 # needing to DEPS in ~10K files due to mesa. |
| 8 { |
| 9 'includes': [ |
| 10 '../third_party/mesa/mesa.gypi', |
| 11 ], |
| 12 'targets': [ |
| 13 { |
| 14 'target_name': 'ppapi_egl', |
| 15 'type': 'static_library', |
| 16 'dependencies': [ |
| 17 '<(DEPTH)/ppapi/ppapi.gyp:ppapi_c', |
| 18 ], |
| 19 'include_dirs': [ |
| 20 'lib/gl/include', |
| 21 ], |
| 22 'defines': [ |
| 23 # Do not export internal Mesa funcations. Exporting them is not |
| 24 # required because we are compiling both - API dispatcher and driver |
| 25 # into a single library. |
| 26 'PUBLIC=', |
| 27 # Define a new PPAPI platform. |
| 28 '_EGL_PLATFORM_PPAPI=_EGL_NUM_PLATFORMS', |
| 29 '_EGL_NATIVE_PLATFORM=_EGL_PLATFORM_PPAPI', |
| 30 ], |
| 31 'conditions': [ |
| 32 ['OS=="win"', { |
| 33 'defines': [ |
| 34 '_EGL_OS_WINDOWS', |
| 35 ], |
| 36 }], |
| 37 ['OS=="mac"', { |
| 38 # TODO(alokp): Make this compile on mac. |
| 39 'suppress_wildcard': 1, |
| 40 }], |
| 41 ], |
| 42 'sources': [ |
| 43 # Mesa EGL API dispatcher sources. |
| 44 '<@(mesa_egl_sources)', |
| 45 # PPAPI EGL driver sources. |
| 46 'lib/gl/egl/egldriver.c', |
| 47 'lib/gl/egl/egldriver_ppapi.c', |
| 48 ], |
| 49 }, |
| 50 { |
| 51 'target_name': 'ppapi_gles2', |
| 52 'type': 'static_library', |
| 53 'dependencies': [ |
| 54 'ppapi_c', |
| 55 ], |
| 56 'include_dirs': [ |
| 57 'lib/gl/include', |
| 58 ], |
| 59 'sources': [ |
| 60 'lib/gl/gles2/gl2ext_ppapi.c', |
| 61 'lib/gl/gles2/gl2ext_ppapi.h', |
| 62 'lib/gl/gles2/gles2.c', |
| 63 ], |
| 64 }, |
| 65 ], |
| 66 } |
OLD | NEW |