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

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: Add icudtl.dat (lost in merge) 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/security_descriptor.cc',
241 'host/win/security_descriptor.h',
242 'host/win/session_desktop_environment.cc',
243 'host/win/session_desktop_environment.h',
244 'host/win/session_input_injector.cc',
245 'host/win/session_input_injector.h',
246 'host/win/window_station_and_desktop.cc',
247 'host/win/window_station_and_desktop.h',
248 'host/win/wts_terminal_monitor.cc',
249 'host/win/wts_terminal_monitor.h',
250 'host/win/wts_terminal_observer.h',
251 ],
252 'conditions': [
253 ['OS=="linux"', {
254 'dependencies': [
255 # Always use GTK on Linux, even for Aura builds.
256 #
257 # TODO(lambroslambrou): Once the DisconnectWindow and
258 # ContinueWindow classes have been implemented for Aura,
259 # remove this dependency.
260 '../build/linux/system.gyp:gtk',
261 ],
262 'link_settings': {
263 'libraries': [
264 '-lX11',
265 '-lXext',
266 '-lXfixes',
267 '-lXtst',
268 '-lXi',
269 '-lXrandr',
270 '-lpam',
271 ],
272 },
273 }, { # else OS != "linux"
274 'sources!': [
275 'host/continue_window_aura.cc',
276 'host/disconnect_window_aura.cc',
277 ],
278 }],
279 ['OS=="mac"', {
280 'dependencies': [
281 '../third_party/google_toolbox_for_mac/google_toolbox_for_mac.gy p:google_toolbox_for_mac',
282 ],
283 'link_settings': {
284 'libraries': [
285 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
286 'libpam.a',
287 ],
288 },
289 }],
290 ['OS=="win"', {
291 'defines': [
292 '_ATL_NO_EXCEPTIONS',
293 'ISOLATION_AWARE_ENABLED=1',
294 ],
295 'dependencies': [
296 '../sandbox/sandbox.gyp:sandbox',
297 'remoting_host_messages',
298 ],
299 'msvs_settings': {
300 'VCCLCompilerTool': {
301 # /MP conflicts with #import directive so we limit the number
302 # of processes to spawn to 1.
303 'AdditionalOptions': ['/MP1'],
304 },
305 },
306 'variables': {
307 'output_dir': '<(SHARED_INTERMEDIATE_DIR)/remoting/host',
308 },
309 'sources': [
310 '<(output_dir)/remoting_host_messages.mc',
311 ],
312 'include_dirs': [
313 '<(output_dir)',
314 ],
315 'direct_dependent_settings': {
316 'include_dirs': [
317 '<(output_dir)',
318 ],
319 },
320 'rules': [{
321 # Rule to run the message compiler.
322 'rule_name': 'message_compiler',
323 'extension': 'mc',
324 'inputs': [ '<(RULE_INPUT_PATH)' ],
325 'outputs': [
326 '<(output_dir)/<(RULE_INPUT_ROOT).h',
327 '<(output_dir)/<(RULE_INPUT_ROOT).rc',
328 ],
329 'action': [
330 'mc.exe',
331 '-h', '<(output_dir)',
332 '-r', '<(output_dir)/.',
333 '-u',
334 '<(RULE_INPUT_PATH)',
335 ],
336 'process_outputs_as_sources': 1,
337 'message': 'Running message compiler on <(RULE_INPUT_PATH)',
338 }],
339 }],
340 ],
341 }, # end of target 'remoting_host'
342
343 {
344 'target_name': 'remoting_native_messaging_base',
345 'type': 'static_library',
346 'variables': { 'enable_wexit_time_destructors': 1, },
347 'dependencies': [
348 '../base/base.gyp:base',
349 ],
350 'sources': [
351 'host/native_messaging/native_messaging_channel.cc',
352 'host/native_messaging/native_messaging_channel.h',
353 'host/native_messaging/native_messaging_reader.cc',
354 'host/native_messaging/native_messaging_reader.h',
355 'host/native_messaging/native_messaging_writer.cc',
356 'host/native_messaging/native_messaging_writer.h',
357 ],
358 }, # end of target 'remoting_native_messaging_base'
359
360 {
361 'target_name': 'remoting_me2me_host_static',
362 'type': 'static_library',
363 'variables': { 'enable_wexit_time_destructors': 1, },
364 'dependencies': [
365 '../base/base.gyp:base',
366 '../base/base.gyp:base_i18n',
367 '../net/net.gyp:net',
368 '../third_party/webrtc/modules/modules.gyp:desktop_capture',
369 'remoting_base',
370 'remoting_breakpad',
371 'remoting_host',
372 'remoting_protocol',
373 ],
374 'defines': [
375 'VERSION=<(version_full)',
376 ],
377 'sources': [
378 'host/curtain_mode.h',
379 'host/curtain_mode_linux.cc',
380 'host/curtain_mode_mac.cc',
381 'host/curtain_mode_win.cc',
382 'host/posix/signal_handler.cc',
383 'host/posix/signal_handler.h',
384 ],
385 'conditions': [
386 ['os_posix != 1', {
387 'sources/': [
388 ['exclude', '^host/posix/'],
389 ],
390 }],
391 ], # end of 'conditions'
392 }, # end of target 'remoting_me2me_host_static'
393
394 {
395 'target_name': 'remoting_host_setup_base',
396 'type': 'static_library',
397 'variables': { 'enable_wexit_time_destructors': 1, },
398 'dependencies': [
399 '../base/base.gyp:base',
400 '../google_apis/google_apis.gyp:google_apis',
401 'remoting_host',
402 ],
403 'defines': [
404 'VERSION=<(version_full)',
405 ],
406 'sources': [
407 'host/setup/daemon_controller.cc',
408 'host/setup/daemon_controller.h',
409 'host/setup/daemon_controller_delegate_linux.cc',
410 'host/setup/daemon_controller_delegate_linux.h',
411 'host/setup/daemon_controller_delegate_mac.h',
412 'host/setup/daemon_controller_delegate_mac.mm',
413 'host/setup/daemon_controller_delegate_win.cc',
414 'host/setup/daemon_controller_delegate_win.h',
415 'host/setup/daemon_installer_win.cc',
416 'host/setup/daemon_installer_win.h',
417 'host/setup/me2me_native_messaging_host.cc',
418 'host/setup/me2me_native_messaging_host.h',
419 'host/setup/oauth_client.cc',
420 'host/setup/oauth_client.h',
421 'host/setup/oauth_helper.cc',
422 'host/setup/oauth_helper.h',
423 'host/setup/pin_validator.cc',
424 'host/setup/pin_validator.h',
425 'host/setup/service_client.cc',
426 'host/setup/service_client.h',
427 'host/setup/test_util.cc',
428 'host/setup/test_util.h',
429 'host/setup/win/auth_code_getter.cc',
430 'host/setup/win/auth_code_getter.h',
431 ],
432 'conditions': [
433 ['OS=="win"', {
434 'dependencies': [
435 '../google_update/google_update.gyp:google_update',
436 'remoting_lib_idl',
437 ],
438 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
439 'msvs_disabled_warnings': [4267, ],
440 }],
441 ],
442 }, # end of target 'remoting_host_setup_base'
443
444 {
445 'target_name': 'remoting_host_plugin',
446 'type': 'loadable_module',
447 'variables': { 'enable_wexit_time_destructors': 1, },
448 'product_extension': '<(host_plugin_extension)',
449 'product_prefix': '<(host_plugin_prefix)',
450 'defines': [
451 'HOST_PLUGIN_MIME_TYPE=<(host_plugin_mime_type)',
452 ],
453 'dependencies': [
454 '../base/base.gyp:base_i18n',
455 '../net/net.gyp:net',
456 '../third_party/npapi/npapi.gyp:npapi',
457 'remoting_base',
458 'remoting_host',
459 'remoting_host_setup_base',
460 'remoting_infoplist_strings',
461 'remoting_it2me_host_static',
462 'remoting_protocol',
463 'remoting_resources',
464 ],
465 'sources': [
466 'base/dispatch_win.h',
467 'host/plugin/host_log_handler.cc',
468 'host/plugin/host_log_handler.h',
469 'host/plugin/host_plugin.cc',
470 'host/plugin/host_plugin_utils.cc',
471 'host/plugin/host_plugin_utils.h',
472 'host/plugin/host_script_object.cc',
473 'host/plugin/host_script_object.h',
474 'host/win/core_resource.h',
475 ],
476 'conditions': [
477 ['OS=="mac"', {
478 'mac_bundle': 1,
479 'xcode_settings': {
480 'CHROMIUM_BUNDLE_ID': '<(mac_bundle_id)',
481 'INFOPLIST_FILE': 'host/plugin/host_plugin-Info.plist',
482 'INFOPLIST_PREPROCESS': 'YES',
483 # TODO(maruel): Use INFOPLIST_PREFIX_HEADER to remove the need t o
484 # duplicate string once
485 # http://code.google.com/p/gyp/issues/detail?id=243 is fixed.
486 'INFOPLIST_PREPROCESSOR_DEFINITIONS': 'HOST_PLUGIN_MIME_TYPE="<( host_plugin_mime_type)" VERSION_FULL="<(version_full)" VERSION_SHORT="<(version_ short)"',
487 },
488 # TODO(mark): Come up with a fancier way to do this. It should
489 # only be necessary to list host_plugin-Info.plist once, not the
490 # three times it is listed here.
491 'mac_bundle_resources': [
492 'host/disconnect_window.xib',
493 'host/plugin/host_plugin-Info.plist',
494 'resources/chromoting16.png',
495 'resources/chromoting48.png',
496 'resources/chromoting128.png',
497 '<!@pymod_do_main(remoting_copy_locales -o -p <(OS) -x <(PRODUCT _DIR) <(remoting_locales))',
498
499 # Localized strings for 'Info.plist'
500 '<!@pymod_do_main(remoting_localize --locale_output '
501 '"<(SHARED_INTERMEDIATE_DIR)/remoting/host_plugin-InfoPlist. strings/@{json_suffix}.lproj/InfoPlist.strings" '
502 '--print_only <(remoting_locales))',
503 ],
504 'mac_bundle_resources!': [
505 'host/plugin/host_plugin-Info.plist',
506 ],
507 'conditions': [
508 ['mac_breakpad==1', {
509 'variables': {
510 # A real .dSYM is needed for dump_syms to operate on.
511 'mac_real_dsym': 1,
512 },
513 }],
514 ], # conditions
515 }], # OS=="mac"
516 [ 'OS=="win"', {
517 'defines': [
518 'BINARY=BINARY_HOST_PLUGIN',
519 'ISOLATION_AWARE_ENABLED=1',
520 ],
521 'dependencies': [
522 'remoting_lib_idl',
523 'remoting_windows_resources',
524 ],
525 'include_dirs': [
526 '<(INTERMEDIATE_DIR)',
527 ],
528 'sources': [
529 '<(SHARED_INTERMEDIATE_DIR)/remoting/core.rc',
530 '<(SHARED_INTERMEDIATE_DIR)/remoting/version.rc',
531 'host/plugin/host_plugin.def',
532 ],
533 'msvs_settings': {
534 'VCManifestTool': {
535 'EmbedManifest': 'true',
536 'AdditionalManifestFiles': [
537 'host/win/common-controls.manifest',
538 ],
539 },
540 },
541 }],
542 ],
543 }, # end of target 'remoting_host_plugin'
544 {
545 'target_name': 'remoting_it2me_host_static',
546 'type': 'static_library',
547 'variables': { 'enable_wexit_time_destructors': 1, },
548 'dependencies': [
549 '../base/base.gyp:base_i18n',
550 '../net/net.gyp:net',
551 'remoting_base',
552 'remoting_host',
553 'remoting_infoplist_strings',
554 'remoting_protocol',
555 'remoting_resources',
556 ],
557 'defines': [
558 'VERSION=<(version_full)',
559 ],
560 'sources': [
561 'host/it2me/it2me_host.cc',
562 'host/it2me/it2me_host.h',
563 'host/it2me/it2me_native_messaging_host.cc',
564 'host/it2me/it2me_native_messaging_host.h',
565 ],
566 }, # end of target 'remoting_it2me_host_static'
567 {
568 'target_name': 'remoting_it2me_native_messaging_host',
569 'type': 'executable',
570 'variables': { 'enable_wexit_time_destructors': 1, },
571 'dependencies': [
572 '../base/base.gyp:base',
573 'remoting_base',
574 'remoting_host',
575 'remoting_it2me_host_static',
576 'remoting_native_messaging_base',
577 'remoting_protocol',
578 ],
579 'sources': [
580 'host/it2me/it2me_native_messaging_host_main.cc',
581 ],
582 'conditions': [
583 ['OS=="linux" and linux_use_tcmalloc==1', {
584 'dependencies': [
585 '../base/allocator/allocator.gyp:allocator',
586 ],
587 }],
588 ],
589 }, # end of target 'remoting_it2me_native_messaging_host'
590
591 # Generates native messaging manifest files.
592 {
593 'target_name': 'remoting_native_messaging_manifests',
594 'type': 'none',
595 'conditions': [
596 [ 'OS == "win"', {
597 'variables': {
598 'me2me_host_path': 'remoting_host.exe',
599 'it2me_host_path': 'remoting_assistance_host.exe',
600 },
601 }],
602 [ 'OS == "mac"', {
603 'variables': {
604 'me2me_host_path':
605 '/Library/PrivilegedHelperTools/org.chromium.chromoting.me2m e_host.app/Contents/MacOS/native_messaging_host',
606 'it2me_host_path':
607 '/Library/PrivilegedHelperTools/org.chromium.chromoting.me2m e_host.app/Contents/MacOS/remote_assistance_host',
608 },
609 }],
610 [ 'OS != "mac" and OS != "win"', {
611 'variables': {
612 'me2me_host_path':
613 '/opt/google/chrome-remote-desktop/native-messaging-host',
614 'it2me_host_path':
615 '/opt/google/chrome-remote-desktop/remote-assistance-host',
616 },
617 }],
618 ], # conditions
619 'sources': [
620 'host/it2me/com.google.chrome.remote_assistance.json.jinja2',
621 'host/setup/com.google.chrome.remote_desktop.json.jinja2',
622 ],
623 'rules': [{
624 'rule_name': 'generate_manifest',
625 'extension': 'jinja2',
626 'inputs': [
627 '<(remoting_localize_path)',
628 '<(branding_path)',
629 '<(RULE_INPUT_PATH)',
630 ],
631 'outputs': [
632 '<(PRODUCT_DIR)/remoting/<(RULE_INPUT_ROOT)',
633 ],
634 'action': [
635 'python', '<(remoting_localize_path)',
636 '--define', 'ME2ME_HOST_PATH=<(me2me_host_path)',
637 '--define', 'IT2ME_HOST_PATH=<(me2me_host_path)',
638 '--variables', '<(branding_path)',
639 '--template', '<(RULE_INPUT_PATH)',
640 '--locale_output', '<@(_outputs)',
641 'en',
642 ],
643 }],
644 }, # end of target 'remoting_native_messaging_manifests'
645
646 {
647 'target_name': 'remoting_infoplist_strings',
648 'type': 'none',
649 'dependencies': [
650 'remoting_resources',
651 ],
652 'sources': [
653 'host/plugin/host_plugin-InfoPlist.strings.jinja2',
654 'host/remoting_me2me_host-InfoPlist.strings.jinja2',
655 'host/mac/me2me_preference_pane-InfoPlist.strings.jinja2',
656 'host/installer/mac/uninstaller/remoting_uninstaller-InfoPlist.strin gs.jinja2',
657 ],
658 'rules': [{
659 'rule_name': 'generate_strings',
660 'extension': 'jinja2',
661 'inputs': [
662 '<(remoting_localize_path)',
663 '<(RULE_INPUT_PATH)',
664 ],
665 'outputs': [
666 '<!@pymod_do_main(remoting_localize --locale_output '
667 '"<(SHARED_INTERMEDIATE_DIR)/remoting/<(RULE_INPUT_ROOT)/@{jso n_suffix}.lproj/InfoPlist.strings" '
668 '--print_only <(remoting_locales))',
669 ],
670 'action': [
671 'python', '<(remoting_localize_path)',
672 '--locale_dir', '<(webapp_locale_dir)',
673 '--template', '<(RULE_INPUT_PATH)',
674 '--locale_output',
675 '<(SHARED_INTERMEDIATE_DIR)/remoting/<(RULE_INPUT_ROOT)/@{json_suf fix}.lproj/InfoPlist.strings',
676 '<@(remoting_locales)',
677 ]},
678 ],
679 }, # end of target 'remoting_infoplist_strings'
680 ], # end of 'targets'
681 }], # 'enable_remoting_host==1'
682
683 ['OS!="win" and enable_remoting_host==1', {
684 'targets': [
685 {
686 'target_name': 'remoting_me2me_host',
687 'type': 'executable',
688 'variables': { 'enable_wexit_time_destructors': 1, },
689 'dependencies': [
690 '../base/base.gyp:base',
691 '../base/base.gyp:base_i18n',
692 '../net/net.gyp:net',
693 '../third_party/webrtc/modules/modules.gyp:desktop_capture',
694 'remoting_base',
695 'remoting_breakpad',
696 'remoting_host',
697 'remoting_infoplist_strings',
698 'remoting_me2me_host_static',
699 'remoting_protocol',
700 ],
701 'defines': [
702 'VERSION=<(version_full)',
703 ],
704 'sources': [
705 'host/host_main.cc',
706 'host/host_main.h',
707 'host/remoting_me2me_host.cc',
708 ],
709 'conditions': [
710 ['OS=="mac"', {
711 'mac_bundle': 1,
712 'variables': {
713 'host_bundle_id': '<!(python <(version_py_path) -f <(branding_p ath) -t "@MAC_HOST_BUNDLE_ID@")',
714 },
715 'xcode_settings': {
716 'INFOPLIST_FILE': 'host/remoting_me2me_host-Info.plist',
717 'INFOPLIST_PREPROCESS': 'YES',
718 'INFOPLIST_PREPROCESSOR_DEFINITIONS': 'VERSION_FULL="<(version_f ull)" VERSION_SHORT="<(version_short)" BUNDLE_ID="<(host_bundle_id)"',
719 },
720 'mac_bundle_resources': [
721 'host/disconnect_window.xib',
722 'host/remoting_me2me_host.icns',
723 'host/remoting_me2me_host-Info.plist',
724 '<!@pymod_do_main(remoting_copy_locales -o -p <(OS) -x <(PRODUCT _DIR) <(remoting_locales))',
725
726 # Localized strings for 'Info.plist'
727 '<!@pymod_do_main(remoting_localize --locale_output '
728 '"<(SHARED_INTERMEDIATE_DIR)/remoting/remoting_me2me_host-In foPlist.strings/@{json_suffix}.lproj/InfoPlist.strings" '
729 '--print_only <(remoting_locales))',
730 ],
731 'mac_bundle_resources!': [
732 'host/remoting_me2me_host-Info.plist',
733 ],
734 'conditions': [
735 ['mac_breakpad==1', {
736 'variables': {
737 # A real .dSYM is needed for dump_syms to operate on.
738 'mac_real_dsym': 1,
739 },
740 'copies': [
741 {
742 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Res ources',
743 'files': [
744 '<(PRODUCT_DIR)/crash_inspector',
745 '<(PRODUCT_DIR)/crash_report_sender.app'
746 ],
747 },
748 ],
749 'dependencies': [
750 '../breakpad/breakpad.gyp:dump_syms',
751 ],
752 'postbuilds': [
753 {
754 'postbuild_name': 'Dump Symbols',
755 'variables': {
756 'dump_product_syms_path':
757 'scripts/mac/dump_product_syms',
758 },
759 'action': [
760 '<(dump_product_syms_path)',
761 '<(version_full)',
762 ],
763 }, # end of postbuild 'dump_symbols'
764 ], # end of 'postbuilds'
765 }], # mac_breakpad==1
766 ], # conditions
767 }], # OS=mac
768 ['OS=="linux" and linux_use_tcmalloc==1', {
769 'dependencies': [
770 '../base/allocator/allocator.gyp:allocator',
771 ],
772 }], # OS=linux
773 ], # end of 'conditions'
774 }, # end of target 'remoting_me2me_host'
775 {
776 'target_name': 'remoting_me2me_native_messaging_host',
777 'type': 'executable',
778 'product_name': 'remoting_native_messaging_host',
779 'variables': { 'enable_wexit_time_destructors': 1, },
780 'dependencies': [
781 '../base/base.gyp:base',
782 'remoting_host',
783 'remoting_host_setup_base',
784 'remoting_native_messaging_base',
785 ],
786 'sources': [
787 'host/setup/me2me_native_messaging_host_main.cc',
788 ],
789 'conditions': [
790 ['OS=="linux" and linux_use_tcmalloc==1', {
791 'dependencies': [
792 '../base/allocator/allocator.gyp:allocator',
793 ],
794 }],
795 ],
796 }, # end of target 'remoting_me2me_native_messaging_host'
797 ], # end of 'targets'
798 }], # OS!="win"
799
800 ], # end of 'conditions'
801 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698