OLD | NEW |
1 # Copyright (c) 2010 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 'includes': [ | 6 'includes': [ |
7 '../third_party/mesa/mesa.gypi', | 7 '../third_party/mesa/mesa.gypi', |
8 ], | 8 ], |
9 'targets': [ | 9 'targets': [ |
10 { | 10 { |
(...skipping 14 matching lines...) Expand all Loading... |
25 '_EGL_PLATFORM_PPAPI=_EGL_NUM_PLATFORMS', | 25 '_EGL_PLATFORM_PPAPI=_EGL_NUM_PLATFORMS', |
26 '_EGL_NATIVE_PLATFORM=_EGL_PLATFORM_PPAPI', | 26 '_EGL_NATIVE_PLATFORM=_EGL_PLATFORM_PPAPI', |
27 ], | 27 ], |
28 'conditions': [ | 28 'conditions': [ |
29 ['OS=="win"', { | 29 ['OS=="win"', { |
30 'defines': [ | 30 'defines': [ |
31 '_EGL_OS_WINDOWS', | 31 '_EGL_OS_WINDOWS', |
32 ], | 32 ], |
33 }], | 33 }], |
34 ['OS=="mac"', { | 34 ['OS=="mac"', { |
35 # TODO(alokp): Make this compile on mac. | |
36 'suppress_wildcard': 1, | 35 'suppress_wildcard': 1, |
| 36 'xcode_settings': { |
| 37 # Suppress warnings in third party mesa_egl code. |
| 38 'WARNING_CFLAGS': ['-Wno-sign-compare'] |
| 39 } |
37 }], | 40 }], |
38 ], | 41 ], |
39 'sources': [ | 42 'sources': [ |
40 # Mesa EGL API dispatcher sources. | 43 # Mesa EGL API dispatcher sources. |
41 '<@(mesa_egl_sources)', | 44 '<@(mesa_egl_sources)', |
42 # PPAPI EGL driver sources. | 45 # PPAPI EGL driver sources. |
43 'lib/gl/egl/egldriver.c', | 46 'lib/gl/egl/egldriver.c', |
44 'lib/gl/egl/egldriver_ppapi.c', | 47 'lib/gl/egl/egldriver_ppapi.c', |
45 ], | 48 ], |
46 }, | 49 }, |
47 { | 50 { |
48 'target_name': 'ppapi_gles2', | 51 'target_name': 'ppapi_gles2', |
49 'type': 'static_library', | 52 'type': 'static_library', |
50 'dependencies': [ | 53 'dependencies': [ |
51 'ppapi_c', | 54 'ppapi_c', |
52 ], | 55 ], |
53 'include_dirs': [ | 56 'include_dirs': [ |
54 'lib/gl/include', | 57 'lib/gl/include', |
55 ], | 58 ], |
56 'sources': [ | 59 'sources': [ |
57 'lib/gl/gles2/gl2ext_ppapi.c', | 60 'lib/gl/gles2/gl2ext_ppapi.c', |
58 'lib/gl/gles2/gl2ext_ppapi.h', | 61 'lib/gl/gles2/gl2ext_ppapi.h', |
59 'lib/gl/gles2/gles2.c', | 62 'lib/gl/gles2/gles2.c', |
60 ], | 63 ], |
61 }, | 64 }, |
62 ], | 65 ], |
63 } | 66 } |
OLD | NEW |