Fix the Android.mk gyp backend.
[chromium-blink-merge.git] / ppapi / ppapi_gl.gypi
blob6830e721d84705c2be7b18fa0fec2be73e0cf85e
1 # Copyright (c) 2011 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',
12       'type': 'static_library',
13       'dependencies': [
14         '<(DEPTH)/ppapi/ppapi.gyp:ppapi_c',
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           'suppress_wildcard': 1,
36           'xcode_settings': {
37             # Suppress warnings in third party mesa_egl code.
38             'WARNING_CFLAGS': ['-Wno-sign-compare']
39           }
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   ],