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_use_apps_v2%': 0, |
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_files)', |
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)', |
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_use_apps_v2==1', { |
| 1730 'variables': { |
| 1731 'remoting_webapp_patch_files': [ |
| 1732 'webapp/appsv2.patch', |
| 1733 ], |
| 1734 'remoting_webapp_apps_v2_js_files': [ |
| 1735 'webapp/background.js', |
| 1736 'webapp/identity.js', |
| 1737 ], |
| 1738 }, |
| 1739 }, { |
| 1740 'variables': { |
| 1741 'remoting_webapp_patch_files': [], |
| 1742 'remoting_webapp_apps_v2_js_files': [], |
| 1743 }, |
| 1744 }], |
1726 ], | 1745 ], |
1727 | 1746 |
1728 # Can't use a 'copies' because we need to manipulate | 1747 # Can't use a 'copies' because we need to manipulate |
1729 # the manifest file to get the right plugin name. | 1748 # the manifest file to get the right plugin name. |
1730 # Also we need to move the plugin into the me2mom | 1749 # Also we need to move the plugin into the me2mom |
1731 # folder, which means 2 copies, and gyp doesn't | 1750 # folder, which means 2 copies, and gyp doesn't |
1732 # seem to guarantee the ordering of 2 copies statements | 1751 # seem to guarantee the ordering of 2 copies statements |
1733 # when the actual project is generated. | 1752 # when the actual project is generated. |
1734 'actions': [ | 1753 'actions': [ |
1735 { | 1754 { |
1736 'action_name': 'Build Remoting WebApp', | 1755 'action_name': 'Build Remoting WebApp', |
1737 'output_dir': '<(PRODUCT_DIR)/remoting/remoting.webapp', | 1756 'output_dir': '<(PRODUCT_DIR)/remoting/remoting.webapp', |
1738 'zip_path': '<(PRODUCT_DIR)/remoting-webapp.zip', | 1757 'zip_path': '<(PRODUCT_DIR)/remoting-webapp.zip', |
1739 'inputs': [ | 1758 'inputs': [ |
1740 'webapp/build-webapp.py', | 1759 'webapp/build-webapp.py', |
1741 '<(remoting_version_path)', | 1760 '<(remoting_version_path)', |
1742 '<(chrome_version_path)', | 1761 '<(chrome_version_path)', |
| 1762 '<@(remoting_webapp_patch_files)', |
1743 '<@(remoting_webapp_files)', | 1763 '<@(remoting_webapp_files)', |
1744 '<@(remoting_webapp_js_files)', | 1764 '<@(remoting_webapp_js_files)', |
| 1765 '<@(remoting_webapp_apps_v2_js_files)', |
1745 '<@(remoting_webapp_locale_files)', | 1766 '<@(remoting_webapp_locale_files)', |
1746 ], | 1767 ], |
1747 'conditions': [ | 1768 'conditions': [ |
1748 ['enable_remoting_host==1', { | 1769 ['enable_remoting_host==1', { |
1749 'inputs': [ | 1770 'inputs': [ |
1750 '<(plugin_path)', | 1771 '<(plugin_path)', |
1751 ], | 1772 ], |
1752 }], | 1773 }], |
1753 ], | 1774 ], |
1754 'outputs': [ | 1775 'outputs': [ |
1755 '<(_output_dir)', | 1776 '<(_output_dir)', |
1756 '<(_zip_path)', | 1777 '<(_zip_path)', |
1757 ], | 1778 ], |
1758 'action': [ | 1779 'action': [ |
1759 'python', 'webapp/build-webapp.py', | 1780 'python', 'webapp/build-webapp.py', |
1760 '<(buildtype)', | 1781 '<(buildtype)', |
1761 '<(version_full)', | 1782 '<(version_full)', |
1762 '<(host_plugin_mime_type)', | 1783 '<(host_plugin_mime_type)', |
1763 '<(_output_dir)', | 1784 '<(_output_dir)', |
1764 '<(_zip_path)', | 1785 '<(_zip_path)', |
1765 '<(plugin_path)', | 1786 '<(plugin_path)', |
1766 '<@(remoting_webapp_files)', | 1787 '<@(remoting_webapp_files)', |
1767 '<@(remoting_webapp_js_files)', | 1788 '<@(remoting_webapp_js_files)', |
| 1789 '<@(remoting_webapp_apps_v2_js_files)', |
1768 '--locales', | 1790 '--locales', |
1769 '<@(remoting_webapp_locale_files)', | 1791 '<@(remoting_webapp_locale_files)', |
| 1792 '--patches', |
| 1793 '<@(remoting_webapp_patch_files)', |
1770 ], | 1794 ], |
1771 'msvs_cygwin_shell': 1, | 1795 'msvs_cygwin_shell': 1, |
1772 }, | 1796 }, |
1773 ], | 1797 ], |
1774 }, # end of target 'remoting_webapp' | 1798 }, # end of target 'remoting_webapp' |
1775 | 1799 |
1776 { | 1800 { |
1777 'target_name': 'remoting_resources', | 1801 'target_name': 'remoting_resources', |
1778 'type': 'none', | 1802 'type': 'none', |
1779 'variables': { | 1803 'variables': { |
(...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2383 '../base/allocator/allocator.gyp:allocator', | 2407 '../base/allocator/allocator.gyp:allocator', |
2384 ], | 2408 ], |
2385 }, | 2409 }, |
2386 ], | 2410 ], |
2387 ], | 2411 ], |
2388 }], # end of 'toolkit_uses_gtk == 1' | 2412 }], # end of 'toolkit_uses_gtk == 1' |
2389 ], # end of 'conditions' | 2413 ], # end of 'conditions' |
2390 }, # end of target 'remoting_unittests' | 2414 }, # end of target 'remoting_unittests' |
2391 ], # end of targets | 2415 ], # end of targets |
2392 } | 2416 } |
OLD | NEW |