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 'variables': { | 6 'variables': { |
7 'chromium_code': 1, | 7 'chromium_code': 1, |
| 8 'player_x11_renderer%': 'x11', |
8 }, | 9 }, |
9 'target_defaults': { | 10 'target_defaults': { |
10 'conditions': [ | 11 'conditions': [ |
11 ['OS!="linux"', {'sources/': [['exclude', '/linux/']]}], | 12 ['OS!="linux"', {'sources/': [['exclude', '/linux/']]}], |
12 ['OS!="freebsd"', {'sources/': [['exclude', '/freebsd/']]}], | 13 ['OS!="freebsd"', {'sources/': [['exclude', '/freebsd/']]}], |
13 ['OS!="mac"', {'sources/': [['exclude', '/mac/']]}], | 14 ['OS!="mac"', {'sources/': [['exclude', '/mac/']]}], |
14 ['OS!="win"', {'sources/': [['exclude', '/win/']]}], | 15 ['OS!="win"', {'sources/': [['exclude', '/win/']]}], |
15 ], | 16 ], |
16 }, | 17 }, |
17 'targets': [ | 18 'targets': [ |
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 ], | 365 ], |
365 }], | 366 }], |
366 ['OS=="linux"', { | 367 ['OS=="linux"', { |
367 'targets': [ | 368 'targets': [ |
368 { | 369 { |
369 'target_name': 'player_x11', | 370 'target_name': 'player_x11', |
370 'type': 'executable', | 371 'type': 'executable', |
371 'dependencies': [ | 372 'dependencies': [ |
372 'media', | 373 'media', |
373 '../base/base.gyp:base', | 374 '../base/base.gyp:base', |
374 '../gpu/gpu.gyp:gl_libs', | |
375 ], | 375 ], |
376 'link_settings': { | 376 'link_settings': { |
377 'libraries': [ | 377 'libraries': [ |
378 '-ldl', | 378 '-ldl', |
379 '-lX11', | 379 '-lX11', |
380 '-lXrender', | 380 '-lXrender', |
381 '-lXext', | 381 '-lXext', |
382 ], | 382 ], |
383 }, | 383 }, |
384 'sources': [ | 384 'sources': [ |
385 'tools/player_x11/player_x11.cc', | 385 'tools/player_x11/player_x11.cc', |
386 'tools/player_x11/x11_video_renderer.cc', | 386 ], |
387 'tools/player_x11/x11_video_renderer.h', | 387 'conditions' : [ |
| 388 ['player_x11_renderer == "x11"', { |
| 389 'sources': [ |
| 390 'tools/player_x11/x11_video_renderer.cc', |
| 391 'tools/player_x11/x11_video_renderer.h', |
| 392 ], |
| 393 'defines': [ |
| 394 'RENDERER_X11', |
| 395 ], |
| 396 }], |
| 397 ['player_x11_renderer == "gles"', { |
| 398 'libraries': [ |
| 399 '-lEGL', |
| 400 '-lGLESv2', |
| 401 ], |
| 402 'sources': [ |
| 403 'tools/player_x11/gles_video_renderer.cc', |
| 404 'tools/player_x11/gles_video_renderer.h', |
| 405 ], |
| 406 'defines': [ |
| 407 'RENDERER_GLES', |
| 408 ], |
| 409 }], |
| 410 ['player_x11_renderer == "gl"', { |
| 411 'dependencies': [ |
| 412 '../gpu/gpu.gyp:gl_libs', |
| 413 ], |
| 414 'sources': [ |
| 415 'tools/player_x11/gl_video_renderer.cc', |
| 416 'tools/player_x11/gl_video_renderer.h', |
| 417 ], |
| 418 'defines': [ |
| 419 'RENDERER_GL', |
| 420 ], |
| 421 }], |
388 ], | 422 ], |
389 }, | 423 }, |
390 ], | 424 ], |
391 }], | 425 }], |
392 ], | 426 ], |
393 } | 427 } |
394 | 428 |
395 # Local Variables: | 429 # Local Variables: |
396 # tab-width:2 | 430 # tab-width:2 |
397 # indent-tabs-mode:nil | 431 # indent-tabs-mode:nil |
398 # End: | 432 # End: |
399 # vim: set expandtab tabstop=2 shiftwidth=2: | 433 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |