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 'includes': [ |
| 7 '../../../third_party/mesa/mesa.gypi', |
| 8 ], |
| 9 'variables': { |
| 10 'chromium_code': 1, # Use higher warning level. |
| 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 '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 'egl/egldriver.c', |
| 47 'egl/egldriver_ppapi.c', |
| 48 ], |
| 49 }, |
| 50 ], |
| 51 } |
OLD | NEW |