| 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_multi_process%': '<(remoting_multi_process)', | 22 'remoting_multi_process%': '<(remoting_multi_process)', |
| 23 'remoting_use_apps_v2%': 0, |
| 23 | 24 |
| 24 # The |major|, |build| and |patch| versions are inherited from Chrome. | 25 # The |major|, |build| and |patch| versions are inherited from Chrome. |
| 25 # Since Chrome's |minor| version is always '0', we replace it with a | 26 # Since Chrome's |minor| version is always '0', we replace it with a |
| 26 # Chromoting-specific patch version. | 27 # Chromoting-specific patch version. |
| 27 # Note that we check both the |chrome_version_path| file and the | 28 # Note that we check both the |chrome_version_path| file and the |
| 28 # |remoting_version_path| so that we can override the Chrome version | 29 # |remoting_version_path| so that we can override the Chrome version |
| 29 # numbers if needed. | 30 # numbers if needed. |
| 30 'version_py_path': '../chrome/tools/build/version.py', | 31 'version_py_path': '../chrome/tools/build/version.py', |
| 31 'remoting_version_path': '../remoting/VERSION', | 32 'remoting_version_path': '../remoting/VERSION', |
| 32 'chrome_version_path': '../chrome/VERSION', | 33 'chrome_version_path': '../chrome/VERSION', |
| (...skipping 1656 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1689 'target_name': 'remoting_webapp', | 1690 'target_name': 'remoting_webapp', |
| 1690 'type': 'none', | 1691 'type': 'none', |
| 1691 'dependencies': [ | 1692 'dependencies': [ |
| 1692 'remoting_resources', | 1693 'remoting_resources', |
| 1693 'remoting_host_plugin', | 1694 'remoting_host_plugin', |
| 1694 ], | 1695 ], |
| 1695 'sources': [ | 1696 'sources': [ |
| 1696 'webapp/build-webapp.py', | 1697 'webapp/build-webapp.py', |
| 1697 '<(remoting_version_path)', | 1698 '<(remoting_version_path)', |
| 1698 '<(chrome_version_path)', | 1699 '<(chrome_version_path)', |
| 1700 '<@(remoting_webapp_patch_files)', |
| 1699 '<@(remoting_webapp_files)', | 1701 '<@(remoting_webapp_files)', |
| 1700 '<@(remoting_webapp_js_files)', | 1702 '<@(remoting_webapp_js_files)', |
| 1703 '<@(remoting_webapp_apps_v2_js_files)', |
| 1701 '<@(remoting_webapp_locale_files)', | 1704 '<@(remoting_webapp_locale_files)', |
| 1702 ], | 1705 ], |
| 1703 | 1706 |
| 1704 'conditions': [ | 1707 'conditions': [ |
| 1705 ['enable_remoting_host==1', { | 1708 ['enable_remoting_host==1', { |
| 1706 'variables': { | 1709 'variables': { |
| 1707 'plugin_path': '<(PRODUCT_DIR)/<(host_plugin_prefix)remoting_host_
plugin.<(host_plugin_extension)', | 1710 'plugin_path': '<(PRODUCT_DIR)/<(host_plugin_prefix)remoting_host_
plugin.<(host_plugin_extension)', |
| 1708 }, | 1711 }, |
| 1709 }, { | 1712 }, { |
| 1710 'variables': { | 1713 'variables': { |
| 1711 'plugin_path': '', | 1714 'plugin_path': '', |
| 1712 }, | 1715 }, |
| 1713 'dependencies!': [ | 1716 'dependencies!': [ |
| 1714 'remoting_host_plugin', | 1717 'remoting_host_plugin', |
| 1715 ], | 1718 ], |
| 1716 }], | 1719 }], |
| 1720 ['remoting_use_apps_v2==1', { |
| 1721 'variables': { |
| 1722 'remoting_webapp_patch_files': [ |
| 1723 'webapp/appsv2.patch', |
| 1724 ], |
| 1725 'remoting_webapp_apps_v2_js_files': [ |
| 1726 'webapp/background.js', |
| 1727 'webapp/identity.js', |
| 1728 ], |
| 1729 }, |
| 1730 }, { |
| 1731 'variables': { |
| 1732 'remoting_webapp_patch_files': [], |
| 1733 'remoting_webapp_apps_v2_js_files': [], |
| 1734 }, |
| 1735 }], |
| 1717 ], | 1736 ], |
| 1718 | 1737 |
| 1719 # Can't use a 'copies' because we need to manipulate | 1738 # Can't use a 'copies' because we need to manipulate |
| 1720 # the manifest file to get the right plugin name. | 1739 # the manifest file to get the right plugin name. |
| 1721 # Also we need to move the plugin into the me2mom | 1740 # Also we need to move the plugin into the me2mom |
| 1722 # folder, which means 2 copies, and gyp doesn't | 1741 # folder, which means 2 copies, and gyp doesn't |
| 1723 # seem to guarantee the ordering of 2 copies statements | 1742 # seem to guarantee the ordering of 2 copies statements |
| 1724 # when the actual project is generated. | 1743 # when the actual project is generated. |
| 1725 'actions': [ | 1744 'actions': [ |
| 1726 { | 1745 { |
| 1727 'action_name': 'Build Remoting WebApp', | 1746 'action_name': 'Build Remoting WebApp', |
| 1728 'output_dir': '<(PRODUCT_DIR)/remoting/remoting.webapp', | 1747 'output_dir': '<(PRODUCT_DIR)/remoting/remoting.webapp', |
| 1729 'zip_path': '<(PRODUCT_DIR)/remoting-webapp.zip', | 1748 'zip_path': '<(PRODUCT_DIR)/remoting-webapp.zip', |
| 1730 'inputs': [ | 1749 'inputs': [ |
| 1731 'webapp/build-webapp.py', | 1750 'webapp/build-webapp.py', |
| 1732 '<(remoting_version_path)', | 1751 '<(remoting_version_path)', |
| 1733 '<(chrome_version_path)', | 1752 '<(chrome_version_path)', |
| 1753 '<@(remoting_webapp_patch_files)', |
| 1734 '<@(remoting_webapp_files)', | 1754 '<@(remoting_webapp_files)', |
| 1735 '<@(remoting_webapp_js_files)', | 1755 '<@(remoting_webapp_js_files)', |
| 1756 '<@(remoting_webapp_apps_v2_js_files)', |
| 1736 '<@(remoting_webapp_locale_files)', | 1757 '<@(remoting_webapp_locale_files)', |
| 1737 ], | 1758 ], |
| 1738 'conditions': [ | 1759 'conditions': [ |
| 1739 ['enable_remoting_host==1', { | 1760 ['enable_remoting_host==1', { |
| 1740 'inputs': [ | 1761 'inputs': [ |
| 1741 '<(plugin_path)', | 1762 '<(plugin_path)', |
| 1742 ], | 1763 ], |
| 1743 }], | 1764 }], |
| 1744 ], | 1765 ], |
| 1745 'outputs': [ | 1766 'outputs': [ |
| 1746 '<(_output_dir)', | 1767 '<(_output_dir)', |
| 1747 '<(_zip_path)', | 1768 '<(_zip_path)', |
| 1748 ], | 1769 ], |
| 1749 'action': [ | 1770 'action': [ |
| 1750 'python', 'webapp/build-webapp.py', | 1771 'python', 'webapp/build-webapp.py', |
| 1751 '<(buildtype)', | 1772 '<(buildtype)', |
| 1752 '<(version_full)', | 1773 '<(version_full)', |
| 1753 '<(host_plugin_mime_type)', | 1774 '<(host_plugin_mime_type)', |
| 1754 '<(_output_dir)', | 1775 '<(_output_dir)', |
| 1755 '<(_zip_path)', | 1776 '<(_zip_path)', |
| 1756 '<(plugin_path)', | 1777 '<(plugin_path)', |
| 1757 '<@(remoting_webapp_files)', | 1778 '<@(remoting_webapp_files)', |
| 1758 '<@(remoting_webapp_js_files)', | 1779 '<@(remoting_webapp_js_files)', |
| 1780 '<@(remoting_webapp_apps_v2_js_files)', |
| 1759 '--locales', | 1781 '--locales', |
| 1760 '<@(remoting_webapp_locale_files)', | 1782 '<@(remoting_webapp_locale_files)', |
| 1783 '--patches', |
| 1784 '<@(remoting_webapp_patch_files)', |
| 1761 ], | 1785 ], |
| 1762 'msvs_cygwin_shell': 1, | 1786 'msvs_cygwin_shell': 1, |
| 1763 }, | 1787 }, |
| 1764 ], | 1788 ], |
| 1765 }, # end of target 'remoting_webapp' | 1789 }, # end of target 'remoting_webapp' |
| 1766 | 1790 |
| 1767 { | 1791 { |
| 1768 'target_name': 'remoting_resources', | 1792 'target_name': 'remoting_resources', |
| 1769 'type': 'none', | 1793 'type': 'none', |
| 1770 'variables': { | 1794 'variables': { |
| (...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2375 '../base/allocator/allocator.gyp:allocator', | 2399 '../base/allocator/allocator.gyp:allocator', |
| 2376 ], | 2400 ], |
| 2377 }, | 2401 }, |
| 2378 ], | 2402 ], |
| 2379 ], | 2403 ], |
| 2380 }], # end of 'toolkit_uses_gtk == 1' | 2404 }], # end of 'toolkit_uses_gtk == 1' |
| 2381 ], # end of 'conditions' | 2405 ], # end of 'conditions' |
| 2382 }, # end of target 'remoting_unittests' | 2406 }, # end of target 'remoting_unittests' |
| 2383 ], # end of targets | 2407 ], # end of targets |
| 2384 } | 2408 } |
| OLD | NEW |