Newer
Older
# Copyright (c) 2010 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{

dmaclach@chromium.org
committed
'variables': {
'chromium_code': 1,
},
'target_defaults': {
'defines': [
],
'include_dirs': [
'..', # Root of Chrome checkout
],
},
'conditions': [
['OS=="linux" or OS=="mac"', {
'targets': [
# Simple webserver for testing chromoting client plugin.
{
'target_name': 'chromoting_client_test_webserver',
'type': 'executable',
'sources': [
'tools/client_webserver/main.c',
],

ajwong@chromium.org
committed
}
], # end of target 'chromoting_client_test_webserver'
}],
# TODO(hclam): Enable this target for mac.
['OS=="linux" or OS=="freebsd" or OS=="openbsd"', {

ajwong@chromium.org
committed
'targets': [
{
'target_name': 'chromoting_x11_client',
'type': 'executable',
'dependencies': [
'chromoting_base',
'chromoting_client',
'chromoting_jingle_glue',
],
'link_settings': {
'libraries': [
'-ldl',
'-lX11',
'-lXrender',
'-lXext',
],
},
'sources': [
'client/x11_client.cc',
'client/x11_view.cc',
'client/x11_view.h',
],
}, # end of target 'chromoting_x11_client'
],
}], # end of OS conditions for x11 client
], # end of 'conditions'
'targets': [

ajwong@chromium.org
committed
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
{
'target_name': 'chromoting_plugin',
'type': 'static_library',
'defines': [
'HAVE_STDINT_H', # Required by on2_integer.h
],
'dependencies': [
'chromoting_base',
'chromoting_client',
'chromoting_jingle_glue',
'../third_party/ppapi/ppapi.gyp:ppapi_c',
'../third_party/zlib/zlib.gyp:zlib',
],
'sources': [
'client/plugin/chromoting_plugin.cc',
'client/plugin/chromoting_plugin.h',
'client/plugin/pepper_entrypoints.cc',
'client/plugin/pepper_entrypoints.h',
'client/plugin/pepper_view.cc',
'client/plugin/pepper_view.h',
'../media/base/yuv_convert.cc',
'../media/base/yuv_convert.h',
'../media/base/yuv_row.h',
'../media/base/yuv_row_table.cc',
],
'conditions': [
['OS=="win"', {
'sources': [
'../media/base/yuv_row_win.cc',
],
}],
['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="mac"', {
'sources': [
'../media/base/yuv_row_posix.cc',
],
}],
], # end of 'conditions'
}, # end of target 'chromoting_plugin'
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
{
'target_name': 'chromoting_base',
'type': '<(library)',
'dependencies': [
'../gfx/gfx.gyp:*',
'../media/media.gyp:media',
'../third_party/protobuf2/protobuf.gyp:protobuf_lite',
'base/protocol/chromotocol.gyp:chromotocol_proto_lib',
'chromoting_jingle_glue',
# TODO(hclam): Enable VP8 in the build.
#'third_party/on2/on2.gyp:vp8',
],
'export_dependent_settings': [
'../third_party/protobuf2/protobuf.gyp:protobuf_lite',
'base/protocol/chromotocol.gyp:chromotocol_proto_lib',
# TODO(hclam): Enable VP8 in the build.
#'third_party/on2/on2.gyp:vp8',
],
# This target needs a hard dependency because dependent targets
# depend on chromotocol_proto_lib for headers.
'hard_dependency': 1,
'sources': [
'base/constants.cc',
'base/constants.h',
'base/multiple_array_input_stream.cc',
'base/multiple_array_input_stream.h',
'base/protocol_decoder.cc',
'base/protocol_decoder.h',
'base/protocol_util.cc',
'base/protocol_util.h',
],
}, # end of target 'chromoting_base'
{
'target_name': 'chromoting_host',
'type': '<(library)',
'dependencies': [
'chromoting_base',
'chromoting_jingle_glue',
],
'sources': [
'host/capturer.cc',
'host/capturer.h',
'host/chromoting_host.cc',
'host/chromoting_host.h',
'host/chromoting_host_context.cc',
'host/chromoting_hsot_context.h',
'host/client_connection.cc',
'host/client_connection.h',

garykac@google.com
committed
'host/differ.h',
'host/differ.cc',
'host/differ_block.h',
'host/differ_block.cc',
'host/encoder.h',
'host/encoder_verbatim.cc',
'host/encoder_verbatim.h',
# TODO(hclam): Enable VP8 in the build.
#'host/encoder_vp8.cc',
#'host/encoder_vp8.h',
'host/event_executor.h',
'host/session_manager.cc',
'host/session_manager.h',
'host/heartbeat_sender.cc',
'host/heartbeat_sender.h',

sergeyu@chromium.org
committed
'host/host_config.cc',
'host/host_config.h',

sergeyu@chromium.org
committed
'host/json_host_config.cc',
'host/json_host_config.h',
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
],
'conditions': [
['OS=="win"', {
'sources': [
'host/capturer_gdi.cc',
'host/capturer_gdi.h',
'host/event_executor_win.cc',
'host/event_executor_win.h',
],
}],
['OS=="linux"', {
'sources': [
'host/capturer_linux.cc',
'host/capturer_linux.h',
'host/event_executor_linux.cc',
'host/event_executor_linux.h',
],
}],
['OS=="mac"', {
'sources': [
'host/capturer_mac.cc',
'host/capturer_mac.h',
'host/event_executor_mac.cc',
'host/event_executor_mac.h',
],
}],
],
}, # end of target 'chromoting_host'
{
'target_name': 'chromoting_client',
'type': '<(library)',
'dependencies': [
'chromoting_base',
'chromoting_jingle_glue',
],
'sources': [
'client/chromoting_client.cc',
'client/chromoting_client.h',
'client/chromoting_view.h',
'client/client_util.cc',
'client/client_util.h',
'client/decoder.h',
'client/decoder_verbatim.cc',
'client/decoder_verbatim.h',
'client/host_connection.h',
'client/jingle_host_connection.cc',
'client/jingle_host_connection.h',
],
}, # end of target 'chromoting_client'
{
'target_name': 'chromoting_simple_host',
'type': 'executable',
'dependencies': [
'chromoting_base',
'chromoting_host',

garykac@google.com
committed
'chromoting_jingle_glue',
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
'../base/base.gyp:base',
'../base/base.gyp:base_i18n',
],
'sources': [
'host/capturer_fake.cc',
'host/capturer_fake.h',
'host/capturer_fake_ascii.cc',
'host/capturer_fake_ascii.h',
'host/simple_host_process.cc',
],
}, # end of target 'chromoting_simple_host'
{
'target_name': 'chromoting_simple_client',
'type': 'executable',
'dependencies': [
'chromoting_base',
'chromoting_client',
'chromoting_jingle_glue',
],
'sources': [
'client/simple_client.cc',
],
}, # end of target 'chromoting_simple_client'
{
'target_name': 'chromoting_jingle_glue',
'type': '<(library)',
'dependencies': [

ajwong@chromium.org
committed
'../net/net.gyp:net',
'../third_party/libjingle/libjingle.gyp:libjingle',
'../third_party/libjingle/libjingle.gyp:libjingle_p2p',
],
'export_dependent_settings': [
'../third_party/libjingle/libjingle.gyp:libjingle',
'../third_party/libjingle/libjingle.gyp:libjingle_p2p',
],
'sources': [

ajwong@chromium.org
committed
'jingle_glue/gaia_token_pre_xmpp_auth.cc',
'jingle_glue/gaia_token_pre_xmpp_auth.h',
'jingle_glue/iq_request.cc',

ajwong@chromium.org
committed
'jingle_glue/iq_request.h',
'jingle_glue/jingle_channel.cc',

ajwong@chromium.org
committed
'jingle_glue/jingle_channel.h',
'jingle_glue/jingle_client.cc',

ajwong@chromium.org
committed
'jingle_glue/jingle_client.h',
'jingle_glue/jingle_info_task.cc',

ajwong@chromium.org
committed
'jingle_glue/jingle_info_task.h',
'jingle_glue/jingle_thread.cc',

ajwong@chromium.org
committed
'jingle_glue/jingle_thread.h',
'jingle_glue/relay_port_allocator.cc',

ajwong@chromium.org
committed
'jingle_glue/relay_port_allocator.h',
'jingle_glue/ssl_adapter.cc',
'jingle_glue/ssl_adapter.h',
'jingle_glue/ssl_socket_adapter.cc',
'jingle_glue/ssl_socket_adapter.h',
'jingle_glue/xmpp_socket_adapter.cc',
'jingle_glue/xmpp_socket_adapter.h',
],
}, # end of target 'chromoting_jingle_glue'
{
'target_name': 'chromoting_jingle_test_client',
'type': 'executable',
'dependencies': [
'chromoting_jingle_glue',
'../media/media.gyp:media',
],
'sources': [
'jingle_glue/jingle_test_client.cc',
],
}, # end of target 'chromoting_jingle_test_client'
# Remoting unit tests
{
'target_name': 'remoting_unittests',
'type': 'executable',
'dependencies': [
'chromoting_base',
'chromoting_client',
'chromoting_host',
'chromoting_jingle_glue',
'../base/base.gyp:base',
'../base/base.gyp:base_i18n',
'../gfx/gfx.gyp:*',
'../testing/gmock.gyp:gmock',
'../testing/gtest.gyp:gtest',
],
'include_dirs': [
'../testing/gmock/include',
],
'sources': [
'host/client_connection_unittest.cc',
'base/mock_objects.h',
'base/multiple_array_input_stream_unittest.cc',
'base/protocol_decoder_unittest.cc',
'client/mock_objects.h',
'client/decoder_verbatim_unittest.cc',
'host/chromoting_host_context_unittest.cc',

garykac@google.com
committed
'host/differ_unittest.cc',
'host/differ_block_unittest.cc',

sergeyu@chromium.org
committed
'host/json_host_config_unittest.cc',
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
'host/mock_objects.h',
'host/session_manager_unittest.cc',
# TODO(hclam): Enable VP8 in the build.
#'host/encoder_vp8_unittest.cc',
'jingle_glue/jingle_thread_unittest.cc',
'jingle_glue/jingle_channel_unittest.cc',
'jingle_glue/iq_request_unittest.cc',
'jingle_glue/mock_objects.h',
'run_all_unittests.cc',
],
'conditions': [
['OS=="win"', {
'sources': [
'host/capturer_gdi_unittest.cc',
],
}],
['OS=="linux"', {
'dependencies': [
# Needed for the following #include chain:
# base/run_all_unittests.cc
# ../base/test_suite.h
# gtk/gtk.h
'../build/linux/system.gyp:gtk',
],
'sources': [
'host/capturer_linux_unittest.cc',
],
}],
['OS=="mac"', {
'sources': [
'host/capturer_mac_unittest.cc',
],
}],
], # end of 'conditions'
}, # end of target 'chromoting_unittests'
], # end of targets
}
# Local Variables:
# tab-width:2
# indent-tabs-mode:nil
# End:
# vim: set expandtab tabstop=2 shiftwidth=2: