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 # This include forces PPAPI consumers to DEPS in third_party/mesa |
bradn
2011/01/21 01:38:02
Why not drop this completely and put this comment
| |
8 # which is ~10k files and 2K dirs even for projects that do not use it. | |
9 # '../third_party/mesa/mesa.gypi', | |
8 ], | 10 ], |
9 'variables': { | 11 'variables': { |
10 'chromium_code': 1, # Use higher warning level. | 12 'chromium_code': 1, # Use higher warning level. |
11 }, | 13 }, |
12 'target_defaults': { | 14 'target_defaults': { |
13 'conditions': [ | 15 'conditions': [ |
14 # Linux shared libraries should always be built -fPIC. | 16 # Linux shared libraries should always be built -fPIC. |
15 # | 17 # |
16 # TODO(ajwong): For internal pepper plugins, which are statically linked | 18 # TODO(ajwong): For internal pepper plugins, which are statically linked |
17 # into chrome, do we want to build w/o -fPIC? If so, how can we express | 19 # into chrome, do we want to build w/o -fPIC? If so, how can we express |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
259 'cflags': ['-Wextra', '-pedantic'], | 261 'cflags': ['-Wextra', '-pedantic'], |
260 }], | 262 }], |
261 ['OS=="mac"', { | 263 ['OS=="mac"', { |
262 'xcode_settings': { | 264 'xcode_settings': { |
263 'WARNING_CFLAGS': ['-Wextra', '-pedantic'], | 265 'WARNING_CFLAGS': ['-Wextra', '-pedantic'], |
264 }, | 266 }, |
265 }] | 267 }] |
266 ], | 268 ], |
267 }, | 269 }, |
268 { | 270 { |
269 'target_name': 'ppapi_egl', | |
270 'type': 'static_library', | |
271 'dependencies': [ | |
272 'ppapi_c', | |
273 ], | |
274 'include_dirs': [ | |
275 'lib/gl/include', | |
276 ], | |
277 'defines': [ | |
278 # Do not export internal Mesa funcations. Exporting them is not | |
279 # required because we are compiling both - API dispatcher and driver | |
280 # into a single library. | |
281 'PUBLIC=', | |
282 # Define a new PPAPI platform. | |
283 '_EGL_PLATFORM_PPAPI=_EGL_NUM_PLATFORMS', | |
284 '_EGL_NATIVE_PLATFORM=_EGL_PLATFORM_PPAPI', | |
285 ], | |
286 'conditions': [ | |
287 ['OS=="win"', { | |
288 'defines': [ | |
289 '_EGL_OS_WINDOWS', | |
290 ], | |
291 }], | |
292 ['OS=="mac"', { | |
293 # TODO(alokp): Make this compile on mac. | |
294 'suppress_wildcard': 1, | |
295 }], | |
296 ], | |
297 'sources': [ | |
298 # Mesa EGL API dispatcher sources. | |
299 '<@(mesa_egl_sources)', | |
300 # PPAPI EGL driver sources. | |
301 'lib/gl/egl/egldriver.c', | |
302 'lib/gl/egl/egldriver_ppapi.c', | |
303 ], | |
304 }, | |
305 { | |
306 'target_name': 'ppapi_gles2', | 271 'target_name': 'ppapi_gles2', |
307 'type': 'static_library', | 272 'type': 'static_library', |
308 'dependencies': [ | 273 'dependencies': [ |
309 'ppapi_c', | 274 'ppapi_c', |
310 ], | 275 ], |
311 'include_dirs': [ | 276 'include_dirs': [ |
312 'lib/gl/include', | 277 'lib/gl/include', |
313 ], | 278 ], |
314 'sources': [ | 279 'sources': [ |
315 'lib/gl/gles2/gl2ext_ppapi.c', | 280 'lib/gl/gles2/gl2ext_ppapi.c', |
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
680 ['OS=="win"', { | 645 ['OS=="win"', { |
681 }], | 646 }], |
682 ['OS=="linux"', { | 647 ['OS=="linux"', { |
683 }], | 648 }], |
684 ['OS=="mac"', { | 649 ['OS=="mac"', { |
685 }] | 650 }] |
686 ], | 651 ], |
687 }, | 652 }, |
688 ], | 653 ], |
689 } | 654 } |
OLD | NEW |