| 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 }, | 8 }, |
| 9 | 9 |
| 10 'target_defaults': { | 10 'target_defaults': { |
| 11 'defines': [ | 11 'defines': [ |
| 12 ], | 12 ], |
| 13 'include_dirs': [ | 13 'include_dirs': [ |
| 14 '..', # Root of Chrome checkout | 14 '..', # Root of Chrome checkout |
| 15 ], | 15 ], |
| 16 }, | 16 }, |
| 17 | 17 |
| 18 'conditions': [ | 18 'conditions': [ |
| 19 # Chromoting Client targets | 19 # Chromoting Client targets |
| 20 ['OS=="linux" or OS=="mac"', { | 20 ['OS=="linux" or OS=="mac"', { |
| 21 'targets': [ | 21 'targets': [ |
| 22 { | 22 { |
| 23 'target_name': 'chromoting_client_plugin_lib', | 23 'target_name': 'chromoting_client_plugin', |
| 24 'type': 'static_library', | 24 'type': 'static_library', |
| 25 'defines': [ | 25 'defines': [ |
| 26 'HAVE_STDINT_H', # Required by on2_integer.h | 26 'HAVE_STDINT_H', # Required by on2_integer.h |
| 27 ], | 27 ], |
| 28 'dependencies': [ | 28 'dependencies': [ |
| 29 'chromoting_base', | 29 'chromoting_base', |
| 30 'chromoting_client', | 30 'chromoting_client', |
| 31 'chromoting_jingle_glue', | 31 'chromoting_jingle_glue', |
| 32 '../third_party/ppapi/ppapi.gyp:ppapi_cpp', |
| 32 '../third_party/zlib/zlib.gyp:zlib', | 33 '../third_party/zlib/zlib.gyp:zlib', |
| 33 ], | 34 ], |
| 34 'sources': [ | 35 'sources': [ |
| 35 'client/plugin/chromoting_main.cc', | |
| 36 'client/plugin/chromoting_plugin.cc', | 36 'client/plugin/chromoting_plugin.cc', |
| 37 'client/plugin/chromoting_plugin.h', | 37 'client/plugin/chromoting_plugin.h', |
| 38 'client/plugin/pepper_view.cc', | 38 'client/plugin/pepper_view.cc', |
| 39 'client/plugin/pepper_view.h', | 39 'client/plugin/pepper_view.h', |
| 40 'client/pepper/pepper_plugin.cc', | |
| 41 'client/pepper/pepper_plugin.h', | |
| 42 '../media/base/yuv_convert.cc', | 40 '../media/base/yuv_convert.cc', |
| 43 '../media/base/yuv_convert.h', | 41 '../media/base/yuv_convert.h', |
| 44 '../media/base/yuv_row.h', | 42 '../media/base/yuv_row.h', |
| 45 '../media/base/yuv_row_posix.cc', | 43 '../media/base/yuv_row_posix.cc', |
| 46 '../media/base/yuv_row_table.cc', | 44 '../media/base/yuv_row_table.cc', |
| 47 ], | 45 ], |
| 48 'conditions': [ | 46 'conditions': [ |
| 49 ['OS=="win"', { | 47 ['OS=="win"', { |
| 50 'sources': [ | 48 'sources': [ |
| 51 '../media/base/yuv_row_win.cc', | 49 '../media/base/yuv_row_win.cc', |
| 52 ], | 50 ], |
| 53 }], | 51 }], |
| 54 ['OS=="linux" and target_arch=="x64" and linux_fpic!=1', { | 52 ['OS=="linux" and target_arch=="x64" and linux_fpic!=1', { |
| 55 # Shared libraries need -fPIC on x86-64 | 53 # Shared libraries need -fPIC on x86-64 |
| 56 'cflags': ['-fPIC'], | 54 'cflags': ['-fPIC'], |
| 57 }], | 55 }], |
| 58 ], # end of 'conditions' | 56 ], # end of 'conditions' |
| 59 }, # end of target 'chromoting_client_plugin_lib' | 57 }, # end of target 'chromoting_client_plugin' |
| 60 | |
| 61 # TODO(ajwong): reenable once we figure out the -fPIC issues. | |
| 62 # Client plugin: libchromoting_plugin.so. | |
| 63 # { | |
| 64 # 'target_name': 'chromoting_client_plugin', | |
| 65 # 'type': 'shared_library', | |
| 66 # 'product_name': 'chromoting_plugin', | |
| 67 # 'dependencies': [ | |
| 68 # 'chromoting_client_plugin_lib', | |
| 69 # ], | |
| 70 # 'sources': [ | |
| 71 # # Required here (rather than in lib) so that functions are | |
| 72 # # exported properly. | |
| 73 # 'client/pepper/pepper_main.cc', | |
| 74 # ], | |
| 75 # 'conditions': [ | |
| 76 # ['OS=="linux" and target_arch=="x64" and linux_fpic!=1', { | |
| 77 # # Shared libraries need -fPIC on x86-64 | |
| 78 # 'cflags': [ | |
| 79 # '-fPIC' | |
| 80 # ], | |
| 81 # }], | |
| 82 # ], # end of 'conditions' | |
| 83 # }, # end of target 'chromoting_client_plugin' | |
| 84 | 58 |
| 85 # Simple webserver for testing chromoting client plugin. | 59 # Simple webserver for testing chromoting client plugin. |
| 86 { | 60 { |
| 87 'target_name': 'chromoting_client_test_webserver', | 61 'target_name': 'chromoting_client_test_webserver', |
| 88 'type': 'executable', | 62 'type': 'executable', |
| 89 'sources': [ | 63 'sources': [ |
| 90 'tools/client_webserver/main.c', | 64 'tools/client_webserver/main.c', |
| 91 ], | 65 ], |
| 92 }, # end of target 'chromoting_client_test_webserver' | 66 }, # end of target 'chromoting_client_test_webserver' |
| 93 | 67 |
| (...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 ], | 346 ], |
| 373 'sources': [ | 347 'sources': [ |
| 374 'host/capturer_linux_unittest.cc', | 348 'host/capturer_linux_unittest.cc', |
| 375 ], | 349 ], |
| 376 }], | 350 }], |
| 377 ['OS=="mac"', { | 351 ['OS=="mac"', { |
| 378 'sources': [ | 352 'sources': [ |
| 379 'host/capturer_mac_unittest.cc', | 353 'host/capturer_mac_unittest.cc', |
| 380 ], | 354 ], |
| 381 }], | 355 }], |
| 382 ['OS=="linux" or OS=="mac"', { | |
| 383 'dependencies': [ | |
| 384 'chromoting_client_plugin_lib', | |
| 385 ], | |
| 386 'sources': [ | |
| 387 'client/plugin/chromoting_plugin_unittest.cc', | |
| 388 'client/pepper/pepper_main.cc', | |
| 389 'client/pepper/fake_browser.cc', | |
| 390 'client/pepper/fake_browser.h', | |
| 391 ], | |
| 392 }], | |
| 393 ], # end of 'conditions' | 356 ], # end of 'conditions' |
| 394 }, # end of target 'chromoting_unittests' | 357 }, # end of target 'chromoting_unittests' |
| 395 ], # end of targets | 358 ], # end of targets |
| 396 } | 359 } |
| 397 | 360 |
| 398 # Local Variables: | 361 # Local Variables: |
| 399 # tab-width:2 | 362 # tab-width:2 |
| 400 # indent-tabs-mode:nil | 363 # indent-tabs-mode:nil |
| 401 # End: | 364 # End: |
| 402 # vim: set expandtab tabstop=2 shiftwidth=2: | 365 # vim: set expandtab tabstop=2 shiftwidth=2: |
| OLD | NEW |