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 | |
20 ['OS=="linux" or OS=="mac"', { | 19 ['OS=="linux" or OS=="mac"', { |
21 'targets': [ | 20 'targets': [ |
22 { | |
23 'target_name': 'chromoting_client_plugin', | |
24 'type': 'static_library', | |
25 'defines': [ | |
26 'HAVE_STDINT_H', # Required by on2_integer.h | |
27 ], | |
28 'dependencies': [ | |
29 'chromoting_base', | |
30 'chromoting_client', | |
31 'chromoting_jingle_glue', | |
32 '../third_party/ppapi/ppapi.gyp:ppapi_cpp', | |
33 '../third_party/zlib/zlib.gyp:zlib', | |
34 ], | |
35 'sources': [ | |
36 'client/plugin/chromoting_plugin.cc', | |
37 'client/plugin/chromoting_plugin.h', | |
38 'client/plugin/pepper_view.cc', | |
39 'client/plugin/pepper_view.h', | |
40 '../media/base/yuv_convert.cc', | |
41 '../media/base/yuv_convert.h', | |
42 '../media/base/yuv_row.h', | |
43 '../media/base/yuv_row_posix.cc', | |
44 '../media/base/yuv_row_table.cc', | |
45 ], | |
46 'conditions': [ | |
47 ['OS=="win"', { | |
48 'sources': [ | |
49 '../media/base/yuv_row_win.cc', | |
50 ], | |
51 }], | |
52 ['OS=="linux" and target_arch=="x64" and linux_fpic!=1', { | |
53 # Shared libraries need -fPIC on x86-64 | |
54 'cflags': ['-fPIC'], | |
55 }], | |
56 ], # end of 'conditions' | |
57 }, # end of target 'chromoting_client_plugin' | |
58 | |
59 # Simple webserver for testing chromoting client plugin. | 21 # Simple webserver for testing chromoting client plugin. |
60 { | 22 { |
61 'target_name': 'chromoting_client_test_webserver', | 23 'target_name': 'chromoting_client_test_webserver', |
62 'type': 'executable', | 24 'type': 'executable', |
63 'sources': [ | 25 'sources': [ |
64 'tools/client_webserver/main.c', | 26 'tools/client_webserver/main.c', |
65 ], | 27 ], |
66 }, # end of target 'chromoting_client_test_webserver' | 28 } |
67 | 29 ], # end of target 'chromoting_client_test_webserver' |
68 ], # end of Client targets | 30 }], |
69 }], # end of OS conditions for Client targets | |
70 | 31 |
71 # TODO(hclam): Enable this target for mac. | 32 # TODO(hclam): Enable this target for mac. |
72 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', { | 33 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', { |
| 34 |
73 'targets': [ | 35 'targets': [ |
74 { | 36 { |
75 'target_name': 'chromoting_x11_client', | 37 'target_name': 'chromoting_x11_client', |
76 'type': 'executable', | 38 'type': 'executable', |
77 'dependencies': [ | 39 'dependencies': [ |
78 'chromoting_base', | 40 'chromoting_base', |
79 'chromoting_client', | 41 'chromoting_client', |
80 'chromoting_jingle_glue', | 42 'chromoting_jingle_glue', |
81 ], | 43 ], |
82 'link_settings': { | 44 'link_settings': { |
(...skipping 10 matching lines...) Expand all Loading... |
93 'client/x11_view.h', | 55 'client/x11_view.h', |
94 ], | 56 ], |
95 }, # end of target 'chromoting_x11_client' | 57 }, # end of target 'chromoting_x11_client' |
96 ], | 58 ], |
97 }], # end of OS conditions for x11 client | 59 }], # end of OS conditions for x11 client |
98 | 60 |
99 ], # end of 'conditions' | 61 ], # end of 'conditions' |
100 | 62 |
101 'targets': [ | 63 'targets': [ |
102 { | 64 { |
| 65 'target_name': 'chromoting_plugin', |
| 66 'type': 'static_library', |
| 67 'defines': [ |
| 68 'HAVE_STDINT_H', # Required by on2_integer.h |
| 69 ], |
| 70 'dependencies': [ |
| 71 'chromoting_base', |
| 72 'chromoting_client', |
| 73 'chromoting_jingle_glue', |
| 74 '../third_party/ppapi/ppapi.gyp:ppapi_c', |
| 75 '../third_party/zlib/zlib.gyp:zlib', |
| 76 ], |
| 77 'sources': [ |
| 78 'client/plugin/chromoting_plugin.cc', |
| 79 'client/plugin/chromoting_plugin.h', |
| 80 'client/plugin/pepper_entrypoints.cc', |
| 81 'client/plugin/pepper_entrypoints.h', |
| 82 'client/plugin/pepper_view.cc', |
| 83 'client/plugin/pepper_view.h', |
| 84 '../media/base/yuv_convert.cc', |
| 85 '../media/base/yuv_convert.h', |
| 86 '../media/base/yuv_row.h', |
| 87 '../media/base/yuv_row_table.cc', |
| 88 ], |
| 89 'conditions': [ |
| 90 ['OS=="win"', { |
| 91 'sources': [ |
| 92 '../media/base/yuv_row_win.cc', |
| 93 ], |
| 94 }], |
| 95 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="mac"', { |
| 96 'sources': [ |
| 97 '../media/base/yuv_row_posix.cc', |
| 98 ], |
| 99 }], |
| 100 ], # end of 'conditions' |
| 101 }, # end of target 'chromoting_plugin' |
| 102 |
| 103 { |
103 'target_name': 'chromoting_base', | 104 'target_name': 'chromoting_base', |
104 'type': '<(library)', | 105 'type': '<(library)', |
105 'dependencies': [ | 106 'dependencies': [ |
106 '../gfx/gfx.gyp:*', | 107 '../gfx/gfx.gyp:*', |
107 '../media/media.gyp:media', | 108 '../media/media.gyp:media', |
108 '../third_party/protobuf2/protobuf.gyp:protobuf_lite', | 109 '../third_party/protobuf2/protobuf.gyp:protobuf_lite', |
109 'base/protocol/chromotocol.gyp:chromotocol_proto_lib', | 110 'base/protocol/chromotocol.gyp:chromotocol_proto_lib', |
110 'chromoting_jingle_glue', | 111 'chromoting_jingle_glue', |
111 # TODO(hclam): Enable VP8 in the build. | 112 # TODO(hclam): Enable VP8 in the build. |
112 #'third_party/on2/on2.gyp:vp8', | 113 #'third_party/on2/on2.gyp:vp8', |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 'dependencies': [ | 305 'dependencies': [ |
305 'chromoting_base', | 306 'chromoting_base', |
306 'chromoting_client', | 307 'chromoting_client', |
307 'chromoting_host', | 308 'chromoting_host', |
308 'chromoting_jingle_glue', | 309 'chromoting_jingle_glue', |
309 '../base/base.gyp:base', | 310 '../base/base.gyp:base', |
310 '../base/base.gyp:base_i18n', | 311 '../base/base.gyp:base_i18n', |
311 '../gfx/gfx.gyp:*', | 312 '../gfx/gfx.gyp:*', |
312 '../testing/gmock.gyp:gmock', | 313 '../testing/gmock.gyp:gmock', |
313 '../testing/gtest.gyp:gtest', | 314 '../testing/gtest.gyp:gtest', |
314 '../third_party/WebKit/WebKit/chromium/WebKit.gyp:webkit', | |
315 '../webkit/support/webkit_support.gyp:appcache', | |
316 '../webkit/support/webkit_support.gyp:database', | |
317 '../webkit/support/webkit_support.gyp:glue', | |
318 '../webkit/support/webkit_support.gyp:webkit_support', | |
319 ], | 315 ], |
320 'include_dirs': [ | 316 'include_dirs': [ |
321 '../testing/gmock/include', | 317 '../testing/gmock/include', |
322 ], | 318 ], |
323 'sources': [ | 319 'sources': [ |
324 'host/client_connection_unittest.cc', | 320 'host/client_connection_unittest.cc', |
325 'base/mock_objects.h', | 321 'base/mock_objects.h', |
326 'base/multiple_array_input_stream_unittest.cc', | 322 'base/multiple_array_input_stream_unittest.cc', |
327 'base/protocol_decoder_unittest.cc', | 323 'base/protocol_decoder_unittest.cc', |
328 'client/mock_objects.h', | 324 'client/mock_objects.h', |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
366 ], # end of 'conditions' | 362 ], # end of 'conditions' |
367 }, # end of target 'chromoting_unittests' | 363 }, # end of target 'chromoting_unittests' |
368 ], # end of targets | 364 ], # end of targets |
369 } | 365 } |
370 | 366 |
371 # Local Variables: | 367 # Local Variables: |
372 # tab-width:2 | 368 # tab-width:2 |
373 # indent-tabs-mode:nil | 369 # indent-tabs-mode:nil |
374 # End: | 370 # End: |
375 # vim: set expandtab tabstop=2 shiftwidth=2: | 371 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |