Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(224)

Side by Side Diff: remoting/remoting_host.gypi

Issue 139283010: Break some parts of remoting.gyp into separate .gypi files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move remoting_locales back into remoting.gyp Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 {
6 'includes': [
7 'remoting_host_linux.gypi',
8 'remoting_host_mac.gypi',
9 'remoting_host_win.gypi',
10 ],
11
12 'variables': {
13 'conditions': [
14 # Remoting host is supported only on Windows, OSX and Linux (with X11).
15 ['OS=="win" or OS=="mac" or (OS=="linux" and chromeos==0 and use_x11==1)', {
16 'enable_remoting_host': 1,
17 }, {
18 'enable_remoting_host': 0,
19 }],
20 ],
21 },
22
23 'conditions': [
24 ['enable_remoting_host==1', {
25 'targets': [
26 {
27 'target_name': 'remoting_host',
28 'type': 'static_library',
29 'variables': { 'enable_wexit_time_destructors': 1, },
30 'dependencies': [
31 'remoting_base',
32 'remoting_protocol',
33 'remoting_resources',
34 '../crypto/crypto.gyp:crypto',
35 '../google_apis/google_apis.gyp:google_apis',
36 '../ipc/ipc.gyp:ipc',
37 '../third_party/webrtc/modules/modules.gyp:desktop_capture',
38 '../ui/events/events.gyp:dom4_keycode_converter',
39 ],
40 'defines': [
41 'VERSION=<(version_full)',
42 ],
43 'sources': [
44 'host/audio_capturer.cc',
45 'host/audio_capturer.h',
46 'host/audio_capturer_linux.cc',
47 'host/audio_capturer_linux.h',
48 'host/audio_capturer_mac.cc',
49 'host/audio_capturer_win.cc',
50 'host/audio_capturer_win.h',
51 'host/audio_scheduler.cc',
52 'host/audio_scheduler.h',
53 'host/audio_silence_detector.cc',
54 'host/audio_silence_detector.h',
55 'host/basic_desktop_environment.cc',
56 'host/basic_desktop_environment.h',
57 'host/branding.cc',
58 'host/branding.h',
59 'host/capture_scheduler.cc',
60 'host/capture_scheduler.h',
61 'host/chromoting_host.cc',
62 'host/chromoting_host.h',
63 'host/chromoting_host_context.cc',
64 'host/chromoting_host_context.h',
65 'host/chromoting_messages.cc',
66 'host/chromoting_messages.h',
67 'host/chromoting_param_traits.cc',
68 'host/chromoting_param_traits.h',
69 'host/client_session.cc',
70 'host/client_session.h',
71 'host/client_session_control.h',
72 'host/clipboard.h',
73 'host/clipboard_mac.mm',
74 'host/clipboard_win.cc',
75 'host/clipboard_x11.cc',
76 'host/config_file_watcher.cc',
77 'host/config_file_watcher.h',
78 'host/config_watcher.h',
79 'host/constants_mac.cc',
80 'host/constants_mac.h',
81 'host/continue_window.cc',
82 'host/continue_window.h',
83 'host/continue_window_aura.cc',
84 'host/continue_window_gtk.cc',
85 'host/continue_window_mac.mm',
86 'host/continue_window_win.cc',
87 'host/daemon_process.cc',
88 'host/daemon_process.h',
89 'host/daemon_process_win.cc',
90 'host/desktop_environment.h',
91 'host/desktop_process.cc',
92 'host/desktop_process.h',
93 'host/desktop_resizer.h',
94 'host/desktop_resizer_linux.cc',
95 'host/desktop_session.cc',
96 'host/desktop_session.h',
97 'host/desktop_session_agent.cc',
98 'host/desktop_session_agent.h',
99 'host/desktop_session_win.cc',
100 'host/desktop_session_win.h',
101 'host/desktop_resizer_mac.cc',
102 'host/desktop_resizer_win.cc',
103 'host/desktop_session_connector.h',
104 'host/desktop_session_proxy.cc',
105 'host/desktop_session_proxy.h',
106 'host/desktop_shape_tracker.h',
107 'host/desktop_shape_tracker_mac.cc',
108 'host/desktop_shape_tracker_win.cc',
109 'host/desktop_shape_tracker_x11.cc',
110 'host/disconnect_window_aura.cc',
111 'host/disconnect_window_gtk.cc',
112 'host/disconnect_window_mac.h',
113 'host/disconnect_window_mac.mm',
114 'host/disconnect_window_win.cc',
115 'host/dns_blackhole_checker.cc',
116 'host/dns_blackhole_checker.h',
117 'host/heartbeat_sender.cc',
118 'host/heartbeat_sender.h',
119 'host/host_change_notification_listener.cc',
120 'host/host_change_notification_listener.h',
121 'host/host_config.cc',
122 'host/host_config.h',
123 'host/host_event_logger.h',
124 'host/host_event_logger_posix.cc',
125 'host/host_event_logger_win.cc',
126 'host/host_exit_codes.cc',
127 'host/host_exit_codes.h',
128 'host/host_export.h',
129 'host/host_secret.cc',
130 'host/host_secret.h',
131 'host/host_status_monitor.h',
132 'host/host_status_observer.h',
133 'host/host_status_sender.cc',
134 'host/host_status_sender.h',
135 'host/host_window.h',
136 'host/host_window_proxy.cc',
137 'host/host_window_proxy.h',
138 'host/in_memory_host_config.cc',
139 'host/in_memory_host_config.h',
140 'host/input_injector.h',
141 'host/input_injector_linux.cc',
142 'host/input_injector_mac.cc',
143 'host/input_injector_win.cc',
144 'host/ipc_audio_capturer.cc',
145 'host/ipc_audio_capturer.h',
146 'host/ipc_constants.cc',
147 'host/ipc_constants.h',
148 'host/ipc_desktop_environment.cc',
149 'host/ipc_desktop_environment.h',
150 'host/ipc_host_event_logger.cc',
151 'host/ipc_host_event_logger.h',
152 'host/ipc_input_injector.cc',
153 'host/ipc_input_injector.h',
154 'host/ipc_screen_controls.cc',
155 'host/ipc_screen_controls.h',
156 'host/ipc_util.h',
157 'host/ipc_util_posix.cc',
158 'host/ipc_util_win.cc',
159 'host/ipc_video_frame_capturer.cc',
160 'host/ipc_video_frame_capturer.h',
161 'host/it2me_desktop_environment.cc',
162 'host/it2me_desktop_environment.h',
163 'host/json_host_config.cc',
164 'host/json_host_config.h',
165 'host/linux/audio_pipe_reader.cc',
166 'host/linux/audio_pipe_reader.h',
167 'host/linux/x11_util.cc',
168 'host/linux/x11_util.h',
169 'host/linux/x_server_clipboard.cc',
170 'host/linux/x_server_clipboard.h',
171 'host/local_input_monitor.h',
172 'host/local_input_monitor_linux.cc',
173 'host/local_input_monitor_mac.mm',
174 'host/local_input_monitor_win.cc',
175 'host/log_to_server.cc',
176 'host/log_to_server.h',
177 'host/logging.h',
178 'host/logging_posix.cc',
179 'host/logging_win.cc',
180 'host/me2me_desktop_environment.cc',
181 'host/me2me_desktop_environment.h',
182 'host/mouse_clamping_filter.cc',
183 'host/mouse_clamping_filter.h',
184 'host/pairing_registry_delegate.cc',
185 'host/pairing_registry_delegate.h',
186 'host/pairing_registry_delegate_linux.cc',
187 'host/pairing_registry_delegate_linux.h',
188 'host/pairing_registry_delegate_mac.cc',
189 'host/pairing_registry_delegate_win.cc',
190 'host/pairing_registry_delegate_win.h',
191 'host/pam_authorization_factory_posix.cc',
192 'host/pam_authorization_factory_posix.h',
193 'host/pin_hash.cc',
194 'host/pin_hash.h',
195 'host/policy_hack/policy_watcher.cc',
196 'host/policy_hack/policy_watcher.h',
197 'host/policy_hack/policy_watcher_linux.cc',
198 'host/policy_hack/policy_watcher_mac.mm',
199 'host/policy_hack/policy_watcher_win.cc',
200 'host/register_support_host_request.cc',
201 'host/register_support_host_request.h',
202 'host/remote_input_filter.cc',
203 'host/remote_input_filter.h',
204 'host/resizing_host_observer.cc',
205 'host/resizing_host_observer.h',
206 'host/sas_injector.h',
207 'host/sas_injector_win.cc',
208 'host/screen_controls.h',
209 'host/screen_resolution.cc',
210 'host/screen_resolution.h',
211 'host/server_log_entry.cc',
212 'host/server_log_entry.h',
213 'host/service_urls.cc',
214 'host/service_urls.h',
215 'host/session_manager_factory.cc',
216 'host/session_manager_factory.h',
217 'host/shaped_screen_capturer.cc',
218 'host/shaped_screen_capturer.h',
219 'host/signaling_connector.cc',
220 'host/signaling_connector.h',
221 'host/token_validator_factory_impl.cc',
222 'host/token_validator_factory_impl.h',
223 'host/usage_stats_consent.h',
224 'host/usage_stats_consent_mac.cc',
225 'host/usage_stats_consent_win.cc',
226 'host/username.cc',
227 'host/username.h',
228 'host/video_scheduler.cc',
229 'host/video_scheduler.h',
230 'host/win/com_security.cc',
231 'host/win/com_security.h',
232 'host/win/launch_process_with_token.cc',
233 'host/win/launch_process_with_token.h',
234 'host/win/omaha.cc',
235 'host/win/omaha.h',
236 'host/win/rdp_client.cc',
237 'host/win/rdp_client.h',
238 'host/win/rdp_client_window.cc',
239 'host/win/rdp_client_window.h',
240 'host/win/com_imported_mstscax.tlh',
241 'host/win/security_descriptor.cc',
242 'host/win/security_descriptor.h',
243 'host/win/session_desktop_environment.cc',
244 'host/win/session_desktop_environment.h',
245 'host/win/session_input_injector.cc',
246 'host/win/session_input_injector.h',
247 'host/win/window_station_and_desktop.cc',
248 'host/win/window_station_and_desktop.h',
249 'host/win/wts_terminal_monitor.cc',
250 'host/win/wts_terminal_monitor.h',
251 'host/win/wts_terminal_observer.h',
252 ],
253 'conditions': [
254 ['OS=="linux"', {
255 'dependencies': [
256 # Always use GTK on Linux, even for Aura builds.
257 #
258 # TODO(lambroslambrou): Once the DisconnectWindow and
259 # ContinueWindow classes have been implemented for Aura,
260 # remove this dependency.
261 '../build/linux/system.gyp:gtk',
262 ],
263 'link_settings': {
264 'libraries': [
265 '-lX11',
266 '-lXext',
267 '-lXfixes',
268 '-lXtst',
269 '-lXi',
270 '-lXrandr',
271 '-lpam',
272 ],
273 },
274 }, { # else OS != "linux"
275 'sources!': [
276 'host/continue_window_aura.cc',
277 'host/disconnect_window_aura.cc',
278 ],
279 }],
280 ['OS=="mac"', {
281 'dependencies': [
282 '../third_party/google_toolbox_for_mac/google_toolbox_for_mac.gy p:google_toolbox_for_mac',
283 ],
284 'link_settings': {
285 'libraries': [
286 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
287 'libpam.a',
288 ],
289 },
290 }],
291 ['OS=="win"', {
292 'defines': [
293 '_ATL_NO_EXCEPTIONS',
294 'ISOLATION_AWARE_ENABLED=1',
295 ],
296 'dependencies': [
297 '../sandbox/sandbox.gyp:sandbox',
298 'remoting_host_messages',
299 ],
300 'msvs_settings': {
301 'VCCLCompilerTool': {
302 # /MP conflicts with #import directive so we limit the number
303 # of processes to spawn to 1.
304 'AdditionalOptions': ['/MP1'],
305 },
306 },
307 'variables': {
308 'output_dir': '<(SHARED_INTERMEDIATE_DIR)/remoting/host',
309 },
310 'sources': [
311 '<(output_dir)/remoting_host_messages.mc',
312 ],
313 'include_dirs': [
314 '<(output_dir)',
315 ],
316 'direct_dependent_settings': {
317 'include_dirs': [
318 '<(output_dir)',
319 ],
320 },
321 'rules': [{
322 # Rule to run the message compiler.
323 'rule_name': 'message_compiler',
324 'extension': 'mc',
325 'inputs': [ '<(RULE_INPUT_PATH)' ],
Nico 2014/03/17 17:45:08 RULE_INPUT_PATH always is an input of a rule. This
326 'outputs': [
327 '<(output_dir)/<(RULE_INPUT_ROOT).h',
328 '<(output_dir)/<(RULE_INPUT_ROOT).rc',
329 ],
330 'action': [
331 'mc.exe',
332 '-h', '<(output_dir)',
333 '-r', '<(output_dir)/.',
334 '-u',
335 '<(RULE_INPUT_PATH)',
336 ],
337 'process_outputs_as_sources': 1,
338 'message': 'Running message compiler on <(RULE_INPUT_PATH)',
339 }],
340 }],
341 ],
342 }, # end of target 'remoting_host'
343
344 {
345 'target_name': 'remoting_native_messaging_base',
346 'type': 'static_library',
347 'variables': { 'enable_wexit_time_destructors': 1, },
348 'dependencies': [
349 '../base/base.gyp:base',
350 ],
351 'sources': [
352 'host/native_messaging/native_messaging_channel.cc',
353 'host/native_messaging/native_messaging_channel.h',
354 'host/native_messaging/native_messaging_reader.cc',
355 'host/native_messaging/native_messaging_reader.h',
356 'host/native_messaging/native_messaging_writer.cc',
357 'host/native_messaging/native_messaging_writer.h',
358 ],
359 }, # end of target 'remoting_native_messaging_base'
360
361 {
362 'target_name': 'remoting_me2me_host_static',
363 'type': 'static_library',
364 'variables': { 'enable_wexit_time_destructors': 1, },
365 'dependencies': [
366 '../base/base.gyp:base',
367 '../base/base.gyp:base_i18n',
368 '../net/net.gyp:net',
369 '../third_party/webrtc/modules/modules.gyp:desktop_capture',
370 'remoting_base',
371 'remoting_breakpad',
372 'remoting_host',
373 'remoting_protocol',
374 ],
375 'defines': [
376 'VERSION=<(version_full)',
377 ],
378 'sources': [
379 'host/curtain_mode.h',
380 'host/curtain_mode_linux.cc',
381 'host/curtain_mode_mac.cc',
382 'host/curtain_mode_win.cc',
383 'host/posix/signal_handler.cc',
384 'host/posix/signal_handler.h',
385 ],
386 'conditions': [
387 ['os_posix != 1', {
388 'sources/': [
389 ['exclude', '^host/posix/'],
390 ],
391 }],
392 ], # end of 'conditions'
393 }, # end of target 'remoting_me2me_host_static'
394
395 {
396 'target_name': 'remoting_host_setup_base',
397 'type': 'static_library',
398 'variables': { 'enable_wexit_time_destructors': 1, },
399 'dependencies': [
400 '../base/base.gyp:base',
401 '../google_apis/google_apis.gyp:google_apis',
402 'remoting_host',
403 ],
404 'defines': [
405 'VERSION=<(version_full)',
406 ],
407 'sources': [
408 'host/setup/daemon_controller.cc',
409 'host/setup/daemon_controller.h',
410 'host/setup/daemon_controller_delegate_linux.cc',
411 'host/setup/daemon_controller_delegate_linux.h',
412 'host/setup/daemon_controller_delegate_mac.h',
413 'host/setup/daemon_controller_delegate_mac.mm',
414 'host/setup/daemon_controller_delegate_win.cc',
415 'host/setup/daemon_controller_delegate_win.h',
416 'host/setup/daemon_installer_win.cc',
417 'host/setup/daemon_installer_win.h',
418 'host/setup/me2me_native_messaging_host.cc',
419 'host/setup/me2me_native_messaging_host.h',
420 'host/setup/oauth_client.cc',
421 'host/setup/oauth_client.h',
422 'host/setup/oauth_helper.cc',
423 'host/setup/oauth_helper.h',
424 'host/setup/pin_validator.cc',
425 'host/setup/pin_validator.h',
426 'host/setup/service_client.cc',
427 'host/setup/service_client.h',
428 'host/setup/test_util.cc',
429 'host/setup/test_util.h',
430 'host/setup/win/auth_code_getter.cc',
431 'host/setup/win/auth_code_getter.h',
432 ],
433 'conditions': [
434 ['OS=="win"', {
435 'dependencies': [
436 '../google_update/google_update.gyp:google_update',
437 'remoting_lib_idl',
438 ],
439 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
440 'msvs_disabled_warnings': [4267, ],
441 }],
442 ],
443 }, # end of target 'remoting_host_setup_base'
444
445 {
446 'target_name': 'remoting_host_plugin',
447 'type': 'loadable_module',
448 'variables': { 'enable_wexit_time_destructors': 1, },
449 'product_extension': '<(host_plugin_extension)',
450 'product_prefix': '<(host_plugin_prefix)',
451 'defines': [
452 'HOST_PLUGIN_MIME_TYPE=<(host_plugin_mime_type)',
453 ],
454 'dependencies': [
455 '../base/base.gyp:base_i18n',
456 '../net/net.gyp:net',
457 '../third_party/npapi/npapi.gyp:npapi',
458 'remoting_base',
459 'remoting_host',
460 'remoting_host_setup_base',
461 'remoting_infoplist_strings',
462 'remoting_it2me_host_static',
463 'remoting_protocol',
464 'remoting_resources',
465 ],
466 'sources': [
467 'base/dispatch_win.h',
468 'host/plugin/host_log_handler.cc',
469 'host/plugin/host_log_handler.h',
470 'host/plugin/host_plugin.cc',
471 'host/plugin/host_plugin_utils.cc',
472 'host/plugin/host_plugin_utils.h',
473 'host/plugin/host_script_object.cc',
474 'host/plugin/host_script_object.h',
475 'host/win/core_resource.h',
476 ],
477 'conditions': [
478 ['OS=="mac"', {
479 'mac_bundle': 1,
480 'xcode_settings': {
481 'CHROMIUM_BUNDLE_ID': '<(mac_bundle_id)',
482 'INFOPLIST_FILE': 'host/plugin/host_plugin-Info.plist',
483 'INFOPLIST_PREPROCESS': 'YES',
484 # TODO(maruel): Use INFOPLIST_PREFIX_HEADER to remove the need t o
485 # duplicate string once
486 # http://code.google.com/p/gyp/issues/detail?id=243 is fixed.
487 'INFOPLIST_PREPROCESSOR_DEFINITIONS': 'HOST_PLUGIN_MIME_TYPE="<( host_plugin_mime_type)" VERSION_FULL="<(version_full)" VERSION_SHORT="<(version_ short)"',
488 },
489 # TODO(mark): Come up with a fancier way to do this. It should
490 # only be necessary to list host_plugin-Info.plist once, not the
491 # three times it is listed here.
492 'mac_bundle_resources': [
493 'host/disconnect_window.xib',
494 'host/plugin/host_plugin-Info.plist',
495 'resources/chromoting16.png',
496 'resources/chromoting48.png',
497 'resources/chromoting128.png',
498 '<!@pymod_do_main(remoting_copy_locales -o -p <(OS) -x <(PRODUCT _DIR) <(remoting_locales))',
499
500 # Localized strings for 'Info.plist'
501 '<!@pymod_do_main(remoting_localize --locale_output '
502 '"<(SHARED_INTERMEDIATE_DIR)/remoting/host_plugin-InfoPlist. strings/@{json_suffix}.lproj/InfoPlist.strings" '
503 '--print_only <(remoting_locales))',
504 ],
505 'mac_bundle_resources!': [
506 'host/plugin/host_plugin-Info.plist',
507 ],
508 'conditions': [
509 ['mac_breakpad==1', {
510 'variables': {
511 # A real .dSYM is needed for dump_syms to operate on.
512 'mac_real_dsym': 1,
513 },
514 }],
515 ], # conditions
516 }], # OS=="mac"
517 [ 'OS=="win"', {
518 'defines': [
519 'BINARY=BINARY_HOST_PLUGIN',
520 'ISOLATION_AWARE_ENABLED=1',
521 ],
522 'dependencies': [
523 'remoting_lib_idl',
524 'remoting_windows_resources',
525 ],
526 'include_dirs': [
527 '<(INTERMEDIATE_DIR)',
528 ],
529 'sources': [
530 '<(SHARED_INTERMEDIATE_DIR)/remoting/core.rc',
531 '<(SHARED_INTERMEDIATE_DIR)/remoting/version.rc',
532 'host/plugin/host_plugin.def',
533 ],
534 'msvs_settings': {
535 'VCManifestTool': {
536 'EmbedManifest': 'true',
537 'AdditionalManifestFiles': [
538 'host/win/common-controls.manifest',
539 ],
540 },
541 },
542 }],
543 ],
544 }, # end of target 'remoting_host_plugin'
545 {
546 'target_name': 'remoting_it2me_host_static',
547 'type': 'static_library',
548 'variables': { 'enable_wexit_time_destructors': 1, },
549 'dependencies': [
550 '../base/base.gyp:base_i18n',
551 '../net/net.gyp:net',
552 'remoting_base',
553 'remoting_host',
554 'remoting_infoplist_strings',
555 'remoting_protocol',
556 'remoting_resources',
557 ],
558 'defines': [
559 'VERSION=<(version_full)',
560 ],
561 'sources': [
562 'host/it2me/it2me_host.cc',
563 'host/it2me/it2me_host.h',
564 'host/it2me/it2me_native_messaging_host.cc',
565 'host/it2me/it2me_native_messaging_host.h',
566 ],
567 }, # end of target 'remoting_it2me_host_static'
568 {
569 'target_name': 'remoting_it2me_native_messaging_host',
570 'type': 'executable',
571 'variables': { 'enable_wexit_time_destructors': 1, },
572 'dependencies': [
573 '../base/base.gyp:base',
574 'remoting_base',
575 'remoting_host',
576 'remoting_it2me_host_static',
577 'remoting_native_messaging_base',
578 'remoting_protocol',
579 ],
580 'sources': [
581 'host/it2me/it2me_native_messaging_host_main.cc',
582 ],
583 'conditions': [
584 ['OS=="linux" and linux_use_tcmalloc==1', {
585 'dependencies': [
586 '../base/allocator/allocator.gyp:allocator',
587 ],
588 }],
589 ],
590 }, # end of target 'remoting_it2me_native_messaging_host'
591
592 # Generates native messaging manifest files.
593 {
594 'target_name': 'remoting_native_messaging_manifests',
595 'type': 'none',
596 'conditions': [
597 [ 'OS == "win"', {
598 'variables': {
599 'me2me_host_path': 'remoting_host.exe',
600 'it2me_host_path': 'remoting_assistance_host.exe',
601 },
602 }],
603 [ 'OS == "mac"', {
604 'variables': {
605 'me2me_host_path':
606 '/Library/PrivilegedHelperTools/org.chromium.chromoting.me2m e_host.app/Contents/MacOS/native_messaging_host',
607 'it2me_host_path':
608 '/Library/PrivilegedHelperTools/org.chromium.chromoting.me2m e_host.app/Contents/MacOS/remote_assistance_host',
609 },
610 }],
611 [ 'OS != "mac" and OS != "win"', {
612 'variables': {
613 'me2me_host_path':
614 '/opt/google/chrome-remote-desktop/native-messaging-host',
615 'it2me_host_path':
616 '/opt/google/chrome-remote-desktop/remote-assistance-host',
617 },
618 }],
619 ], # conditions
620 'sources': [
621 'host/it2me/com.google.chrome.remote_assistance.json.jinja2',
622 'host/setup/com.google.chrome.remote_desktop.json.jinja2',
623 ],
624 'rules': [{
625 'rule_name': 'generate_manifest',
626 'extension': 'jinja2',
627 'inputs': [
628 '<(remoting_localize_path)',
629 '<(branding_path)',
630 '<(RULE_INPUT_PATH)',
631 ],
632 'outputs': [
633 '<(PRODUCT_DIR)/remoting/<(RULE_INPUT_ROOT)',
634 ],
635 'action': [
636 'python', '<(remoting_localize_path)',
637 '--define', 'ME2ME_HOST_PATH=<(me2me_host_path)',
638 '--define', 'IT2ME_HOST_PATH=<(me2me_host_path)',
639 '--variables', '<(branding_path)',
640 '--template', '<(RULE_INPUT_PATH)',
641 '--locale_output', '<@(_outputs)',
642 'en',
643 ],
644 }],
645 }, # end of target 'remoting_native_messaging_manifests'
646
647 {
648 'target_name': 'remoting_infoplist_strings',
649 'type': 'none',
650 'dependencies': [
651 'remoting_resources',
652 ],
653 'sources': [
654 'host/plugin/host_plugin-InfoPlist.strings.jinja2',
655 'host/remoting_me2me_host-InfoPlist.strings.jinja2',
656 'host/mac/me2me_preference_pane-InfoPlist.strings.jinja2',
657 'host/installer/mac/uninstaller/remoting_uninstaller-InfoPlist.strin gs.jinja2',
658 ],
659 'rules': [{
660 'rule_name': 'generate_strings',
661 'extension': 'jinja2',
662 'inputs': [
663 '<(remoting_localize_path)',
664 '<(RULE_INPUT_PATH)',
665 ],
666 'outputs': [
667 '<!@pymod_do_main(remoting_localize --locale_output '
668 '"<(SHARED_INTERMEDIATE_DIR)/remoting/<(RULE_INPUT_ROOT)/@{jso n_suffix}.lproj/InfoPlist.strings" '
669 '--print_only <(remoting_locales))',
670 ],
671 'action': [
672 'python', '<(remoting_localize_path)',
673 '--locale_dir', '<(webapp_locale_dir)',
674 '--template', '<(RULE_INPUT_PATH)',
675 '--locale_output',
676 '<(SHARED_INTERMEDIATE_DIR)/remoting/<(RULE_INPUT_ROOT)/@{json_suf fix}.lproj/InfoPlist.strings',
677 '<@(remoting_locales)',
678 ]},
679 ],
680 }, # end of target 'remoting_infoplist_strings'
681 ], # end of 'targets'
682 }], # 'enable_remoting_host==1'
683
684 ['OS!="win" and enable_remoting_host==1', {
685 'targets': [
686 {
687 'target_name': 'remoting_me2me_host',
688 'type': 'executable',
689 'variables': { 'enable_wexit_time_destructors': 1, },
690 'dependencies': [
691 '../base/base.gyp:base',
692 '../base/base.gyp:base_i18n',
693 '../net/net.gyp:net',
694 '../third_party/webrtc/modules/modules.gyp:desktop_capture',
695 'remoting_base',
696 'remoting_breakpad',
697 'remoting_host',
698 'remoting_infoplist_strings',
699 'remoting_me2me_host_static',
700 'remoting_protocol',
701 ],
702 'defines': [
703 'VERSION=<(version_full)',
704 ],
705 'sources': [
706 'host/host_main.cc',
707 'host/host_main.h',
708 'host/remoting_me2me_host.cc',
709 ],
710 'conditions': [
711 ['OS=="mac"', {
712 'mac_bundle': 1,
713 'variables': {
714 'host_bundle_id': '<!(python <(version_py_path) -f <(branding_p ath) -t "@MAC_HOST_BUNDLE_ID@")',
715 },
716 'xcode_settings': {
717 'INFOPLIST_FILE': 'host/remoting_me2me_host-Info.plist',
718 'INFOPLIST_PREPROCESS': 'YES',
719 'INFOPLIST_PREPROCESSOR_DEFINITIONS': 'VERSION_FULL="<(version_f ull)" VERSION_SHORT="<(version_short)" BUNDLE_ID="<(host_bundle_id)"',
720 },
721 'mac_bundle_resources': [
722 'host/disconnect_window.xib',
723 'host/remoting_me2me_host.icns',
724 'host/remoting_me2me_host-Info.plist',
725 '<!@pymod_do_main(remoting_copy_locales -o -p <(OS) -x <(PRODUCT _DIR) <(remoting_locales))',
726
727 # Localized strings for 'Info.plist'
728 '<!@pymod_do_main(remoting_localize --locale_output '
729 '"<(SHARED_INTERMEDIATE_DIR)/remoting/remoting_me2me_host-In foPlist.strings/@{json_suffix}.lproj/InfoPlist.strings" '
730 '--print_only <(remoting_locales))',
731 ],
732 'mac_bundle_resources!': [
733 'host/remoting_me2me_host-Info.plist',
734 ],
735 'conditions': [
736 ['mac_breakpad==1', {
737 'variables': {
738 # A real .dSYM is needed for dump_syms to operate on.
739 'mac_real_dsym': 1,
740 },
741 'copies': [
742 {
743 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Res ources',
744 'files': [
745 '<(PRODUCT_DIR)/crash_inspector',
746 '<(PRODUCT_DIR)/crash_report_sender.app'
747 ],
748 },
749 ],
750 'dependencies': [
751 '../breakpad/breakpad.gyp:dump_syms',
752 ],
753 'postbuilds': [
754 {
755 'postbuild_name': 'Dump Symbols',
756 'variables': {
757 'dump_product_syms_path':
758 'scripts/mac/dump_product_syms',
759 },
760 'action': [
761 '<(dump_product_syms_path)',
762 '<(version_full)',
763 ],
764 }, # end of postbuild 'dump_symbols'
765 ], # end of 'postbuilds'
766 }], # mac_breakpad==1
767 ], # conditions
768 }], # OS=mac
769 ['OS=="linux" and linux_use_tcmalloc==1', {
770 'dependencies': [
771 '../base/allocator/allocator.gyp:allocator',
772 ],
773 }], # OS=linux
774 ], # end of 'conditions'
775 }, # end of target 'remoting_me2me_host'
776 {
777 'target_name': 'remoting_me2me_native_messaging_host',
778 'type': 'executable',
779 'product_name': 'remoting_native_messaging_host',
780 'variables': { 'enable_wexit_time_destructors': 1, },
781 'dependencies': [
782 '../base/base.gyp:base',
783 'remoting_host',
784 'remoting_host_setup_base',
785 'remoting_native_messaging_base',
786 ],
787 'sources': [
788 'host/setup/me2me_native_messaging_host_main.cc',
789 ],
790 'conditions': [
791 ['OS=="linux" and linux_use_tcmalloc==1', {
792 'dependencies': [
793 '../base/allocator/allocator.gyp:allocator',
794 ],
795 }],
796 ],
797 }, # end of target 'remoting_me2me_native_messaging_host'
798 ], # end of 'targets'
799 }], # OS!="win"
800
801 ], # end of 'conditions'
802 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698