OLD | NEW |
---|---|
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 # TODO(dmaclach): can we pick this up some other way? Right now it's | 7 # TODO(dmaclach): can we pick this up some other way? Right now it's |
8 # duplicated from chrome.gyp | 8 # duplicated from chrome.gyp |
9 'chromium_code': 1, | 9 'chromium_code': 1, |
10 | 10 |
11 'variables': { | 11 'variables': { |
12 'conditions': [ | 12 'conditions': [ |
13 # Enable the multi-process host on Windows by default. | 13 # Enable the multi-process host on Windows by default. |
14 ['OS=="win"', { | 14 ['OS=="win"', { |
15 'remoting_multi_process%': 1, | 15 'remoting_multi_process%': 1, |
16 }, { | 16 }, { |
17 'remoting_multi_process%': 0, | 17 'remoting_multi_process%': 0, |
18 }], | 18 }], |
19 ], | 19 ], |
20 }, | 20 }, |
21 | 21 |
22 'remoting_host_linux_clipboard%': 1, | 22 'remoting_host_linux_clipboard%': 1, |
23 'remoting_multi_process%': '<(remoting_multi_process)', | 23 'remoting_multi_process%': '<(remoting_multi_process)', |
24 'remoting_webapp_apps_v2%': 0, | |
Wez
2013/01/15 02:24:31
nit: remoting_use_apps_v2 or remoting_app_v2_webap
Jamie
2013/01/15 21:57:01
Done.
| |
24 | 25 |
25 # The |major|, |build| and |patch| versions are inherited from Chrome. | 26 # The |major|, |build| and |patch| versions are inherited from Chrome. |
26 # Since Chrome's |minor| version is always '0', we replace it with a | 27 # Since Chrome's |minor| version is always '0', we replace it with a |
27 # Chromoting-specific patch version. | 28 # Chromoting-specific patch version. |
28 # Note that we check both the |chrome_version_path| file and the | 29 # Note that we check both the |chrome_version_path| file and the |
29 # |remoting_version_path| so that we can override the Chrome version | 30 # |remoting_version_path| so that we can override the Chrome version |
30 # numbers if needed. | 31 # numbers if needed. |
31 'version_py_path': '../chrome/tools/build/version.py', | 32 'version_py_path': '../chrome/tools/build/version.py', |
32 'remoting_version_path': '../remoting/VERSION', | 33 'remoting_version_path': '../remoting/VERSION', |
33 'chrome_version_path': '../chrome/VERSION', | 34 'chrome_version_path': '../chrome/VERSION', |
(...skipping 1664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1698 'target_name': 'remoting_webapp', | 1699 'target_name': 'remoting_webapp', |
1699 'type': 'none', | 1700 'type': 'none', |
1700 'dependencies': [ | 1701 'dependencies': [ |
1701 'remoting_resources', | 1702 'remoting_resources', |
1702 'remoting_host_plugin', | 1703 'remoting_host_plugin', |
1703 ], | 1704 ], |
1704 'sources': [ | 1705 'sources': [ |
1705 'webapp/build-webapp.py', | 1706 'webapp/build-webapp.py', |
1706 '<(remoting_version_path)', | 1707 '<(remoting_version_path)', |
1707 '<(chrome_version_path)', | 1708 '<(chrome_version_path)', |
1709 '<(remoting_webapp_patch_file)', | |
1708 '<@(remoting_webapp_files)', | 1710 '<@(remoting_webapp_files)', |
1709 '<@(remoting_webapp_js_files)', | 1711 '<@(remoting_webapp_js_files)', |
1712 '<@(remoting_webapp_apps_v2_js_files)', | |
Wez
2013/01/15 02:24:31
Rather than add these here and set them empty for
Jamie
2013/01/15 21:57:01
I tried that, but the list is replaced, not merged
| |
1710 '<@(remoting_webapp_locale_files)', | 1713 '<@(remoting_webapp_locale_files)', |
1711 ], | 1714 ], |
1712 | 1715 |
1713 'conditions': [ | 1716 'conditions': [ |
1714 ['enable_remoting_host==1', { | 1717 ['enable_remoting_host==1', { |
1715 'variables': { | 1718 'variables': { |
1716 'plugin_path': '<(PRODUCT_DIR)/<(host_plugin_prefix)remoting_host_ plugin.<(host_plugin_extension)', | 1719 'plugin_path': '<(PRODUCT_DIR)/<(host_plugin_prefix)remoting_host_ plugin.<(host_plugin_extension)', |
1717 }, | 1720 }, |
1718 }, { | 1721 }, { |
1719 'variables': { | 1722 'variables': { |
1720 'plugin_path': '', | 1723 'plugin_path': '', |
1721 }, | 1724 }, |
1722 'dependencies!': [ | 1725 'dependencies!': [ |
1723 'remoting_host_plugin', | 1726 'remoting_host_plugin', |
1724 ], | 1727 ], |
1725 }], | 1728 }], |
1729 ['remoting_webapp_apps_v2==1', { | |
1730 'variables': { | |
1731 'remoting_webapp_patch_file': 'webapp/appsv2.patch', | |
1732 'remoting_webapp_apps_v2_js_files': [ | |
1733 'webapp/background.js', | |
1734 'webapp/identity.js', | |
1735 ], | |
1736 }, | |
1737 }, { | |
1738 'variables': { | |
1739 'remoting_webapp_patch_file': '', | |
1740 'remoting_webapp_apps_v2_js_files': [], | |
1741 }, | |
1742 }], | |
1726 ], | 1743 ], |
1727 | 1744 |
1728 # Can't use a 'copies' because we need to manipulate | 1745 # Can't use a 'copies' because we need to manipulate |
1729 # the manifest file to get the right plugin name. | 1746 # the manifest file to get the right plugin name. |
1730 # Also we need to move the plugin into the me2mom | 1747 # Also we need to move the plugin into the me2mom |
1731 # folder, which means 2 copies, and gyp doesn't | 1748 # folder, which means 2 copies, and gyp doesn't |
1732 # seem to guarantee the ordering of 2 copies statements | 1749 # seem to guarantee the ordering of 2 copies statements |
1733 # when the actual project is generated. | 1750 # when the actual project is generated. |
1734 'actions': [ | 1751 'actions': [ |
1735 { | 1752 { |
1736 'action_name': 'Build Remoting WebApp', | 1753 'action_name': 'Build Remoting WebApp', |
1737 'output_dir': '<(PRODUCT_DIR)/remoting/remoting.webapp', | 1754 'output_dir': '<(PRODUCT_DIR)/remoting/remoting.webapp', |
1738 'zip_path': '<(PRODUCT_DIR)/remoting-webapp.zip', | 1755 'zip_path': '<(PRODUCT_DIR)/remoting-webapp.zip', |
1739 'inputs': [ | 1756 'inputs': [ |
1740 'webapp/build-webapp.py', | 1757 'webapp/build-webapp.py', |
1741 '<(remoting_version_path)', | 1758 '<(remoting_version_path)', |
1742 '<(chrome_version_path)', | 1759 '<(chrome_version_path)', |
1760 '<(remoting_webapp_patch_file)', | |
1743 '<@(remoting_webapp_files)', | 1761 '<@(remoting_webapp_files)', |
1744 '<@(remoting_webapp_js_files)', | 1762 '<@(remoting_webapp_js_files)', |
1763 '<@(remoting_webapp_apps_v2_js_files)', | |
1745 '<@(remoting_webapp_locale_files)', | 1764 '<@(remoting_webapp_locale_files)', |
1746 ], | 1765 ], |
1747 'conditions': [ | 1766 'conditions': [ |
1748 ['enable_remoting_host==1', { | 1767 ['enable_remoting_host==1', { |
1749 'inputs': [ | 1768 'inputs': [ |
1750 '<(plugin_path)', | 1769 '<(plugin_path)', |
1751 ], | 1770 ], |
1752 }], | 1771 }], |
1753 ], | 1772 ], |
1754 'outputs': [ | 1773 'outputs': [ |
1755 '<(_output_dir)', | 1774 '<(_output_dir)', |
1756 '<(_zip_path)', | 1775 '<(_zip_path)', |
1757 ], | 1776 ], |
1758 'action': [ | 1777 'action': [ |
1759 'python', 'webapp/build-webapp.py', | 1778 'python', 'webapp/build-webapp.py', |
1760 '<(buildtype)', | 1779 '<(buildtype)', |
1761 '<(version_full)', | 1780 '<(version_full)', |
1762 '<(host_plugin_mime_type)', | 1781 '<(host_plugin_mime_type)', |
1763 '<(_output_dir)', | 1782 '<(_output_dir)', |
1764 '<(_zip_path)', | 1783 '<(_zip_path)', |
1765 '<(plugin_path)', | 1784 '<(plugin_path)', |
1785 '<(remoting_webapp_patch_file)', | |
1766 '<@(remoting_webapp_files)', | 1786 '<@(remoting_webapp_files)', |
1767 '<@(remoting_webapp_js_files)', | 1787 '<@(remoting_webapp_js_files)', |
1788 '<@(remoting_webapp_apps_v2_js_files)', | |
1768 '--locales', | 1789 '--locales', |
1769 '<@(remoting_webapp_locale_files)', | 1790 '<@(remoting_webapp_locale_files)', |
1770 ], | 1791 ], |
1771 'msvs_cygwin_shell': 1, | 1792 'msvs_cygwin_shell': 1, |
1772 }, | 1793 }, |
1773 ], | 1794 ], |
1774 }, # end of target 'remoting_webapp' | 1795 }, # end of target 'remoting_webapp' |
1775 | 1796 |
1776 { | 1797 { |
1777 'target_name': 'remoting_resources', | 1798 'target_name': 'remoting_resources', |
(...skipping 605 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2383 '../base/allocator/allocator.gyp:allocator', | 2404 '../base/allocator/allocator.gyp:allocator', |
2384 ], | 2405 ], |
2385 }, | 2406 }, |
2386 ], | 2407 ], |
2387 ], | 2408 ], |
2388 }], # end of 'toolkit_uses_gtk == 1' | 2409 }], # end of 'toolkit_uses_gtk == 1' |
2389 ], # end of 'conditions' | 2410 ], # end of 'conditions' |
2390 }, # end of target 'remoting_unittests' | 2411 }, # end of target 'remoting_unittests' |
2391 ], # end of targets | 2412 ], # end of targets |
2392 } | 2413 } |
OLD | NEW |