OLD | NEW |
| 1 |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # 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 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 4 # found in the LICENSE file. |
4 | 5 |
5 { | 6 { |
6 'variables': { | 7 'variables': { |
7 # TODO(dmaclach): can we pick this up some other way? Right now it's | 8 # TODO(dmaclach): can we pick this up some other way? Right now it's |
8 # duplicated from chrome.gyp | 9 # duplicated from chrome.gyp |
9 'chromium_code': 1, | 10 'chromium_code': 1, |
10 # Use consistent strings across all platforms. Note that the plugin name | 11 # Use consistent strings across all platforms. Note that the plugin name |
11 # is brand-dependent and is defined further down. | 12 # is brand-dependent and is defined further down. |
12 # Must match host/plugin/constants.h | 13 # Must match host/plugin/constants.h |
13 'host_plugin_mime_type': 'application/vnd.chromium.remoting-host', | 14 'host_plugin_mime_type': 'application/vnd.chromium.remoting-host', |
14 'host_plugin_description': 'Allow another user to access your computer secur
ely over the Internet.', | 15 'host_plugin_description': 'Allow another user to access your computer secur
ely over the Internet.', |
15 | 16 |
16 # Borrow the scripts for generating version information for remoting | 17 # The version is composed from major & minor versions specific to remoting |
17 # binaries from Chrome. | 18 # and build & patch versions inherited from Chrome. |
18 'variables': { | 19 'version_py_path': '../chrome/tools/build/version.py', |
19 'version_py_path': '../chrome/tools/build/version.py', | 20 'version_path': '../remoting/VERSION', |
20 'version_path': '../remoting/VERSION', | 21 'chrome_version_path': '../chrome/VERSION', |
21 }, | |
22 'version_py_path': '<(version_py_path)', | |
23 'version_path': '<(version_path)', | |
24 'version_full': | 22 'version_full': |
25 '<!(python <(version_py_path) -f <(version_path) -t "@MAJOR@.@MINOR@.@BU
ILD@.@PATCH@")', | 23 '<!(python <(version_py_path) -f <(version_path) -t "@MAJOR@.@MINOR@").' |
| 24 '<!(python <(version_py_path) -f <(chrome_version_path) -t "@BUILD@.@PATCH
@")', |
26 | 25 |
27 'conditions': [ | 26 'conditions': [ |
28 ['OS=="mac"', { | 27 ['OS=="mac"', { |
29 'conditions': [ | 28 'conditions': [ |
30 ['branding=="Chrome"', { | 29 ['branding=="Chrome"', { |
31 'mac_bundle_id': 'com.google.Chrome', | 30 'mac_bundle_id': 'com.google.Chrome', |
32 'mac_creator': 'rimZ', | 31 'mac_creator': 'rimZ', |
33 }, { # else: branding!="Chrome" | 32 }, { # else: branding!="Chrome" |
34 'mac_bundle_id': 'org.chromium.Chromium', | 33 'mac_bundle_id': 'org.chromium.Chromium', |
35 'mac_creator': 'Cr24', | 34 'mac_creator': 'Cr24', |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 'AdditionalDependencies': [ | 312 'AdditionalDependencies': [ |
314 'wtsapi32.lib', | 313 'wtsapi32.lib', |
315 ], | 314 ], |
316 }, | 315 }, |
317 }, | 316 }, |
318 }, # end of target 'remoting_service' | 317 }, # end of target 'remoting_service' |
319 | 318 |
320 # Generates the version information resources for the Windows binaries. | 319 # Generates the version information resources for the Windows binaries. |
321 # The .RC files are generated from the "version.rc.version" template and | 320 # The .RC files are generated from the "version.rc.version" template and |
322 # placed in the "<(SHARED_INTERMEDIATE_DIR)/remoting" folder. | 321 # placed in the "<(SHARED_INTERMEDIATE_DIR)/remoting" folder. |
323 # The substiture strings are taken from: | 322 # The substitution strings are taken from: |
324 # - remoting/VERSION - the current version of Chromoting. | |
325 # - build/util/LASTCHANGE - the last source code revision. | 323 # - build/util/LASTCHANGE - the last source code revision. |
| 324 # - chrome/VERSION - the build & patch versions. |
| 325 # - remoting/VERSION - the major & minor versions. |
326 # - xxx_branding - UI/localizable strings. | 326 # - xxx_branding - UI/localizable strings. |
327 # - xxx.ver - per-binary non-localizable strings such as the binary | 327 # - xxx.ver - per-binary non-localizable strings such as the binary |
328 # name. | 328 # name. |
329 { | 329 { |
330 'target_name': 'remoting_version_resources', | 330 'target_name': 'remoting_version_resources', |
331 'type': 'none', | 331 'type': 'none', |
332 'dependencies': [ | 332 'dependencies': [ |
333 '../build/util/build_util.gyp:lastchange#target', | 333 '../build/util/build_util.gyp:lastchange#target', |
334 ], | 334 ], |
335 'inputs': [ | 335 'inputs': [ |
336 'chromium_branding', | 336 'chromium_branding', |
337 'google_chrome_branding', | 337 'google_chrome_branding', |
338 'version.rc.version', | 338 'version.rc.version', |
339 '<(DEPTH)/build/util/LASTCHANGE', | 339 '<(DEPTH)/build/util/LASTCHANGE', |
340 '<(version_path)', | 340 '<(version_path)', |
| 341 '<(chrome_version_path)', |
341 ], | 342 ], |
342 'direct_dependent_settings': { | 343 'direct_dependent_settings': { |
343 'include_dirs': [ | 344 'include_dirs': [ |
344 '<(SHARED_INTERMEDIATE_DIR)/remoting', | 345 '<(SHARED_INTERMEDIATE_DIR)/remoting', |
345 ], | 346 ], |
346 }, | 347 }, |
347 'sources': [ | 348 'sources': [ |
348 'host/elevated_controller.ver', | 349 'host/elevated_controller.ver', |
349 'host/host_service.ver', | 350 'host/host_service.ver', |
350 'host/plugin/host_plugin.ver', | 351 'host/plugin/host_plugin.ver', |
(...skipping 14 matching lines...) Expand all Loading... |
365 }, | 366 }, |
366 }, { # else branding!="Chrome" | 367 }, { # else branding!="Chrome" |
367 'variables': { | 368 'variables': { |
368 'branding_path': 'chromium_branding', | 369 'branding_path': 'chromium_branding', |
369 }, | 370 }, |
370 }], | 371 }], |
371 ], | 372 ], |
372 'inputs': [ | 373 'inputs': [ |
373 '<(template_input_path)', | 374 '<(template_input_path)', |
374 '<(version_path)', | 375 '<(version_path)', |
| 376 '<(chrome_version_path)', |
375 '<(branding_path)', | 377 '<(branding_path)', |
376 '<(lastchange_path)', | 378 '<(lastchange_path)', |
377 ], | 379 ], |
378 'outputs': [ | 380 'outputs': [ |
379 '<(SHARED_INTERMEDIATE_DIR)/remoting/<(RULE_INPUT_ROOT)_version.
rc', | 381 '<(SHARED_INTERMEDIATE_DIR)/remoting/<(RULE_INPUT_ROOT)_version.
rc', |
380 ], | 382 ], |
381 'action': [ | 383 'action': [ |
382 'python', | 384 'python', |
383 '<(version_py_path)', | 385 '<(version_py_path)', |
384 '-f', '<(RULE_INPUT_PATH)', | 386 '-f', '<(RULE_INPUT_PATH)', |
| 387 '-f', '<(chrome_version_path)', |
385 '-f', '<(version_path)', | 388 '-f', '<(version_path)', |
386 '-f', '<(branding_path)', | 389 '-f', '<(branding_path)', |
387 '-f', '<(lastchange_path)', | 390 '-f', '<(lastchange_path)', |
388 '<(template_input_path)', | 391 '<(template_input_path)', |
389 '<@(_outputs)', | 392 '<@(_outputs)', |
390 ], | 393 ], |
391 'message': 'Generating version information in <@(_outputs)' | 394 'message': 'Generating version information in <@(_outputs)' |
392 }, | 395 }, |
393 ], | 396 ], |
394 }, # end of target 'remoting_version_resources' | 397 }, # end of target 'remoting_version_resources' |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
617 | 620 |
618 { | 621 { |
619 'target_name': 'remoting_webapp', | 622 'target_name': 'remoting_webapp', |
620 'type': 'none', | 623 'type': 'none', |
621 'dependencies': [ | 624 'dependencies': [ |
622 'remoting_host_plugin', | 625 'remoting_host_plugin', |
623 ], | 626 ], |
624 'sources': [ | 627 'sources': [ |
625 'webapp/build-webapp.py', | 628 'webapp/build-webapp.py', |
626 'webapp/verify-webapp.py', | 629 'webapp/verify-webapp.py', |
| 630 '<(version_path)', |
| 631 '<(chrome_version_path)', |
627 '<@(remoting_webapp_files)', | 632 '<@(remoting_webapp_files)', |
628 '<@(remoting_webapp_locale_files)', | 633 '<@(remoting_webapp_locale_files)', |
629 ], | 634 ], |
630 # Can't use a 'copies' because we need to manipulate | 635 # Can't use a 'copies' because we need to manipulate |
631 # the manifest file to get the right plugin name. | 636 # the manifest file to get the right plugin name. |
632 # Also we need to move the plugin into the me2mom | 637 # Also we need to move the plugin into the me2mom |
633 # folder, which means 2 copies, and gyp doesn't | 638 # folder, which means 2 copies, and gyp doesn't |
634 # seem to guarantee the ordering of 2 copies statements | 639 # seem to guarantee the ordering of 2 copies statements |
635 # when the actual project is generated. | 640 # when the actual project is generated. |
636 'actions': [ | 641 'actions': [ |
(...skipping 30 matching lines...) Expand all Loading... |
667 ], | 672 ], |
668 }, | 673 }, |
669 { | 674 { |
670 'action_name': 'Build Remoting WebApp', | 675 'action_name': 'Build Remoting WebApp', |
671 'output_dir': '<(PRODUCT_DIR)/remoting/remoting.webapp', | 676 'output_dir': '<(PRODUCT_DIR)/remoting/remoting.webapp', |
672 'plugin_path': '<(PRODUCT_DIR)/<(host_plugin_prefix)remoting_host_plug
in.<(host_plugin_extension)', | 677 'plugin_path': '<(PRODUCT_DIR)/<(host_plugin_prefix)remoting_host_plug
in.<(host_plugin_extension)', |
673 'zip_path': '<(PRODUCT_DIR)/remoting-webapp.zip', | 678 'zip_path': '<(PRODUCT_DIR)/remoting-webapp.zip', |
674 'inputs': [ | 679 'inputs': [ |
675 'webapp/build-webapp.py', | 680 'webapp/build-webapp.py', |
676 '<(_plugin_path)', | 681 '<(_plugin_path)', |
| 682 '<(version_path)', |
| 683 '<(chrome_version_path)', |
677 '<@(remoting_webapp_files)', | 684 '<@(remoting_webapp_files)', |
678 '<@(remoting_webapp_locale_files)', | 685 '<@(remoting_webapp_locale_files)', |
679 ], | 686 ], |
680 'outputs': [ | 687 'outputs': [ |
681 '<(_output_dir)', | 688 '<(_output_dir)', |
682 '<(_zip_path)', | 689 '<(_zip_path)', |
683 ], | 690 ], |
684 'action': [ | 691 'action': [ |
685 'python', 'webapp/build-webapp.py', | 692 'python', 'webapp/build-webapp.py', |
686 '<(buildtype)', | 693 '<(buildtype)', |
| 694 '<(version_full)', |
687 '<(host_plugin_mime_type)', | 695 '<(host_plugin_mime_type)', |
688 '<(_output_dir)', | 696 '<(_output_dir)', |
689 '<(_zip_path)', | 697 '<(_zip_path)', |
690 '<(_plugin_path)', | 698 '<(_plugin_path)', |
691 '<@(remoting_webapp_files)', | 699 '<@(remoting_webapp_files)', |
692 '--locales', | 700 '--locales', |
693 '<@(remoting_webapp_locale_files)', | 701 '<@(remoting_webapp_locale_files)', |
694 ], | 702 ], |
695 }, | 703 }, |
696 ], | 704 ], |
(...skipping 691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1388 '../base/allocator/allocator.gyp:allocator', | 1396 '../base/allocator/allocator.gyp:allocator', |
1389 ], | 1397 ], |
1390 }, | 1398 }, |
1391 ], | 1399 ], |
1392 ], | 1400 ], |
1393 }], | 1401 }], |
1394 ], # end of 'conditions' | 1402 ], # end of 'conditions' |
1395 }, # end of target 'remoting_unittests' | 1403 }, # end of target 'remoting_unittests' |
1396 ], # end of targets | 1404 ], # end of targets |
1397 } | 1405 } |
OLD | NEW |