[Mac] Enable CrZombie for subprocesses in release builds.
[chromium-blink-merge.git] / ppapi / ppapi_gl.gypi
blob64e46b4f27bbe756384dcac04882f77a3f5af4e3
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.
6   'includes': [
7     '../third_party/mesa/mesa.gypi',
8   ],
9   'targets': [
10     {
11       'target_name': 'ppapi_egl<(nacl_ppapi_library_suffix)',
12       'type': 'static_library',
13       'dependencies': [
14         '<(DEPTH)/ppapi/ppapi.gyp:ppapi_c<(nacl_ppapi_library_suffix)',
15       ],
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     {
48       'target_name': 'ppapi_gles2<(nacl_ppapi_library_suffix)',
49       'type': 'static_library',
50       'dependencies': [
51         'ppapi_c<(nacl_ppapi_library_suffix)',
52       ],
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     },
62   ],