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 { |
| 10 'includes': [ |
| 11 '../../../third_party/mesa/mesa.gypi', |
| 12 ], |
| 13 'variables': { |
| 14 'chromium_code': 1, # Use higher warning level. |
| 15 }, |
| 16 'targets': [ |
| 17 { |
| 18 'target_name': 'ppapi_egl', |
| 19 'type': 'static_library', |
| 20 'dependencies': [ |
| 21 '<(DEPTH)/ppapi/ppapi.gyp:ppapi_c', |
| 22 ], |
| 23 'include_dirs': [ |
| 24 'include', |
| 25 ], |
| 26 'defines': [ |
| 27 # Do not export internal Mesa funcations. Exporting them is not |
| 28 # required because we are compiling both - API dispatcher and driver |
| 29 # into a single library. |
| 30 'PUBLIC=', |
| 31 # Define a new PPAPI platform. |
| 32 '_EGL_PLATFORM_PPAPI=_EGL_NUM_PLATFORMS', |
| 33 '_EGL_NATIVE_PLATFORM=_EGL_PLATFORM_PPAPI', |
| 34 ], |
| 35 'conditions': [ |
| 36 ['OS=="win"', { |
| 37 'defines': [ |
| 38 '_EGL_OS_WINDOWS', |
| 39 ], |
| 40 }], |
| 41 ['OS=="mac"', { |
| 42 # TODO(alokp): Make this compile on mac. |
| 43 'suppress_wildcard': 1, |
| 44 }], |
| 45 ], |
| 46 'sources': [ |
| 47 # Mesa EGL API dispatcher sources. |
| 48 '<@(mesa_egl_sources)', |
| 49 # PPAPI EGL driver sources. |
| 50 'egl/egldriver.c', |
| 51 'egl/egldriver_ppapi.c', |
| 52 ], |
| 53 }, |
| 54 ], |
| 55 } |
OLD | NEW |