Chromium Code Reviews| 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_rdp_session%': 1, | 23 'remoting_rdp_session%': 1, |
| 24 'remoting_use_apps_v2%': 0, | |
| 25 | 24 |
| 26 # The |major|, |build| and |patch| versions are inherited from Chrome. | 25 # The |major|, |build| and |patch| versions are inherited from Chrome. |
| 27 # 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 |
| 28 # Chromoting-specific patch version. | 27 # Chromoting-specific patch version. |
| 29 # 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 |
| 30 # |remoting_version_path| so that we can override the Chrome version | 29 # |remoting_version_path| so that we can override the Chrome version |
| 31 # numbers if needed. | 30 # numbers if needed. |
| 32 'version_py_path': '../chrome/tools/build/version.py', | 31 'version_py_path': '../chrome/tools/build/version.py', |
| 33 'remoting_version_path': '../remoting/VERSION', | 32 'remoting_version_path': '../remoting/VERSION', |
| 34 'chrome_version_path': '../chrome/VERSION', | 33 'chrome_version_path': '../chrome/VERSION', |
| (...skipping 1986 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2021 'message': 'Running message compiler on <(RULE_INPUT_PATH).', | 2020 'message': 'Running message compiler on <(RULE_INPUT_PATH).', |
| 2022 }, | 2021 }, |
| 2023 ], | 2022 ], |
| 2024 }], | 2023 }], |
| 2025 ], # end of 'conditions' | 2024 ], # end of 'conditions' |
| 2026 }, # end of target 'remoting_host_event_logger' | 2025 }, # end of target 'remoting_host_event_logger' |
| 2027 | 2026 |
| 2028 { | 2027 { |
| 2029 'target_name': 'remoting_webapp', | 2028 'target_name': 'remoting_webapp', |
| 2030 'type': 'none', | 2029 'type': 'none', |
| 2030 'variables': { | |
| 2031 'remoting_webapp_patch_files': [ | |
| 2032 'webapp/appsv2.patch', | |
| 2033 ], | |
| 2034 'remoting_webapp_apps_v2_js_files': [ | |
| 2035 'webapp/background.js', | |
| 2036 'webapp/identity.js', | |
| 2037 ], | |
| 2038 }, | |
| 2031 'dependencies': [ | 2039 'dependencies': [ |
| 2032 'remoting_resources', | 2040 'remoting_resources', |
| 2033 'remoting_host_plugin', | 2041 'remoting_host_plugin', |
| 2034 ], | 2042 ], |
| 2035 'sources': [ | 2043 'sources': [ |
| 2036 'webapp/build-webapp.py', | 2044 'webapp/build-webapp.py', |
| 2037 '<(remoting_version_path)', | 2045 '<(remoting_version_path)', |
| 2038 '<(chrome_version_path)', | 2046 '<(chrome_version_path)', |
| 2039 '<@(remoting_webapp_patch_files)', | 2047 '<@(remoting_webapp_apps_v2_js_files)', |
| 2040 '<@(remoting_webapp_files)', | 2048 '<@(remoting_webapp_files)', |
| 2041 '<@(remoting_webapp_js_files)', | 2049 '<@(remoting_webapp_js_files)', |
| 2042 '<@(remoting_webapp_apps_v2_js_files)', | |
| 2043 '<@(remoting_webapp_locale_files)', | 2050 '<@(remoting_webapp_locale_files)', |
| 2051 '<@(remoting_webapp_patch_files)', | |
| 2044 ], | 2052 ], |
| 2045 | |
| 2046 'conditions': [ | 2053 'conditions': [ |
| 2047 ['enable_remoting_host==1', { | 2054 ['enable_remoting_host==1', { |
| 2048 'variables': { | 2055 'variables': { |
| 2049 'plugin_path': '<(PRODUCT_DIR)/<(host_plugin_prefix)remoting_host_ plugin.<(host_plugin_extension)', | 2056 'plugin_path': '<(PRODUCT_DIR)/<(host_plugin_prefix)remoting_host_ plugin.<(host_plugin_extension)', |
| 2050 }, | 2057 }, |
| 2051 }, { | 2058 }, { |
| 2052 'variables': { | 2059 'variables': { |
| 2053 'plugin_path': '', | 2060 'plugin_path': '', |
| 2054 }, | 2061 }, |
| 2055 'dependencies!': [ | 2062 'dependencies!': [ |
| 2056 'remoting_host_plugin', | 2063 'remoting_host_plugin', |
| 2057 ], | 2064 ], |
| 2058 }], | 2065 }], |
| 2059 ['OS=="win"', { | 2066 ['OS=="win"', { |
| 2060 'dependencies': [ | 2067 'dependencies': [ |
| 2061 'remoting_host_plugin_manifest', | 2068 'remoting_host_plugin_manifest', |
| 2062 ], | 2069 ], |
| 2063 }], | 2070 }], |
| 2064 ['remoting_use_apps_v2==1', { | |
| 2065 'variables': { | |
| 2066 'remoting_webapp_patch_files': [ | |
| 2067 'webapp/appsv2.patch', | |
| 2068 ], | |
| 2069 'remoting_webapp_apps_v2_js_files': [ | |
| 2070 'webapp/background.js', | |
| 2071 'webapp/identity.js', | |
| 2072 ], | |
| 2073 }, | |
| 2074 }, { | |
| 2075 'variables': { | |
| 2076 'remoting_webapp_patch_files': [], | |
| 2077 'remoting_webapp_apps_v2_js_files': [], | |
| 2078 }, | |
| 2079 }], | |
| 2080 ], | 2071 ], |
| 2081 | |
| 2082 # Can't use a 'copies' because we need to manipulate | |
| 2083 # the manifest file to get the right plugin name. | |
| 2084 # Also we need to move the plugin into the me2mom | |
| 2085 # folder, which means 2 copies, and gyp doesn't | |
| 2086 # seem to guarantee the ordering of 2 copies statements | |
| 2087 # when the actual project is generated. | |
| 2088 'actions': [ | 2072 'actions': [ |
| 2089 { | 2073 { |
| 2090 'action_name': 'Build Remoting WebApp', | 2074 'action_name': 'Build Remoting WebApp', |
| 2091 'output_dir': '<(PRODUCT_DIR)/remoting/remoting.webapp', | 2075 'output_dir': '<(PRODUCT_DIR)/remoting/remoting.webapp', |
| 2092 'zip_path': '<(PRODUCT_DIR)/remoting-webapp.zip', | 2076 'zip_path': '<(PRODUCT_DIR)/remoting-webapp.zip', |
| 2093 'inputs': [ | 2077 'inputs': [ |
| 2094 'webapp/build-webapp.py', | 2078 'webapp/build-webapp.py', |
| 2079 '<(chrome_version_path)', | |
| 2095 '<(remoting_version_path)', | 2080 '<(remoting_version_path)', |
| 2096 '<(chrome_version_path)', | |
| 2097 '<@(remoting_webapp_patch_files)', | |
| 2098 '<@(remoting_webapp_files)', | 2081 '<@(remoting_webapp_files)', |
| 2099 '<@(remoting_webapp_js_files)', | 2082 '<@(remoting_webapp_js_files)', |
| 2100 '<@(remoting_webapp_apps_v2_js_files)', | |
| 2101 '<@(remoting_webapp_locale_files)', | 2083 '<@(remoting_webapp_locale_files)', |
| 2102 ], | 2084 ], |
| 2103 'conditions': [ | 2085 'conditions': [ |
| 2104 ['enable_remoting_host==1', { | 2086 ['enable_remoting_host==1', { |
| 2105 'inputs': [ | 2087 'inputs': [ |
| 2106 '<(plugin_path)', | 2088 '<(plugin_path)', |
| 2107 ], | 2089 ], |
| 2108 }], | 2090 }], |
| 2109 ], | 2091 ], |
| 2110 'outputs': [ | 2092 'outputs': [ |
| 2111 '<(_output_dir)', | 2093 '<(_output_dir)', |
| 2112 '<(_zip_path)', | 2094 '<(_zip_path)', |
| 2113 ], | 2095 ], |
| 2114 'action': [ | 2096 'action': [ |
| 2115 'python', 'webapp/build-webapp.py', | 2097 'python', 'webapp/build-webapp.py', |
| 2116 '<(buildtype)', | 2098 '<(buildtype)', |
| 2117 '<(version_full)', | 2099 '<(version_full)', |
| 2118 '<(host_plugin_mime_type)', | 2100 '<(host_plugin_mime_type)', |
| 2119 '<(_output_dir)', | 2101 '<(_output_dir)', |
| 2120 '<(_zip_path)', | 2102 '<(_zip_path)', |
| 2121 '<(plugin_path)', | 2103 '<(plugin_path)', |
| 2122 '<@(remoting_webapp_files)', | 2104 '<@(remoting_webapp_files)', |
| 2123 '<@(remoting_webapp_js_files)', | 2105 '<@(remoting_webapp_js_files)', |
| 2124 '<@(remoting_webapp_apps_v2_js_files)', | |
| 2125 '--locales', | 2106 '--locales', |
| 2126 '<@(remoting_webapp_locale_files)', | 2107 '<@(remoting_webapp_locale_files)', |
| 2127 '--patches', | |
| 2128 '<@(remoting_webapp_patch_files)', | |
| 2129 ], | 2108 ], |
| 2130 'msvs_cygwin_shell': 1, | 2109 'msvs_cygwin_shell': 1, |
| 2131 }, | 2110 }, |
| 2132 ], | 2111 ], |
| 2112 'target_conditions': [ | |
| 2113 # We cannot currently build the appsv2 version of WebApp on Windows as | |
|
Lambros
2013/05/29 00:15:37
nit: rephrase as we discussed offline.
| |
| 2114 # windows doesn't support patching. We should remove this condition | |
| 2115 # when we remove the reliance on patch. | |
| 2116 # We define this in a "target_conditions" section because 'plugin_path' | |
|
Lambros
2013/05/29 00:15:37
nit: Be consistent about single/double quotes.
| |
| 2117 # is defined in a "conditions" section so its value is not available | |
| 2118 # when gyp processes the 'actions' in a 'conditions" section. | |
| 2119 ['OS != "win"', { | |
|
Sergey Ulanov
2013/05/29 02:20:43
FYI, I see patch.exe pulled on windows by perl dep
| |
| 2120 'actions': [ | |
| 2121 { | |
| 2122 'action_name': 'Build Remoting WebApp V2', | |
| 2123 'output_dir': '<(PRODUCT_DIR)/remoting/remoting.webapp.v2', | |
| 2124 'zip_path': '<(PRODUCT_DIR)/remoting-webapp.v2.zip', | |
| 2125 'inputs': [ | |
| 2126 'webapp/build-webapp.py', | |
| 2127 '<(chrome_version_path)', | |
| 2128 '<(remoting_version_path)', | |
| 2129 '<@(remoting_webapp_apps_v2_js_files)', | |
| 2130 '<@(remoting_webapp_files)', | |
| 2131 '<@(remoting_webapp_js_files)', | |
| 2132 '<@(remoting_webapp_locale_files)', | |
| 2133 '<@(remoting_webapp_patch_files)', | |
| 2134 ], | |
| 2135 'conditions': [ | |
| 2136 ['enable_remoting_host==1', { | |
| 2137 'inputs': [ | |
| 2138 '<(plugin_path)', | |
| 2139 ], | |
| 2140 }], | |
| 2141 ], | |
| 2142 'outputs': [ | |
| 2143 '<(_output_dir)', | |
| 2144 '<(_zip_path)', | |
| 2145 ], | |
| 2146 'action': [ | |
| 2147 'python', 'webapp/build-webapp.py', | |
| 2148 '<(buildtype)', | |
| 2149 '<(version_full)', | |
| 2150 '<(host_plugin_mime_type)', | |
| 2151 '<(_output_dir)', | |
| 2152 '<(_zip_path)', | |
| 2153 '<(plugin_path)', | |
| 2154 '<@(remoting_webapp_apps_v2_js_files)', | |
| 2155 '<@(remoting_webapp_files)', | |
| 2156 '<@(remoting_webapp_js_files)', | |
| 2157 '--locales', | |
| 2158 '<@(remoting_webapp_locale_files)', | |
| 2159 '--patches', | |
| 2160 '<@(remoting_webapp_patch_files)', | |
| 2161 ], | |
| 2162 'msvs_cygwin_shell': 1, | |
| 2163 }, | |
| 2164 ], | |
| 2165 }], | |
| 2166 ], | |
| 2133 }, # end of target 'remoting_webapp' | 2167 }, # end of target 'remoting_webapp' |
| 2134 | 2168 |
| 2135 { | 2169 { |
| 2136 'target_name': 'remoting_resources', | 2170 'target_name': 'remoting_resources', |
| 2137 'type': 'none', | 2171 'type': 'none', |
| 2138 'variables': { | 2172 'variables': { |
| 2139 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)', | 2173 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)', |
| 2140 'grit_resource_ids': 'resources/resource_ids', | 2174 'grit_resource_ids': 'resources/resource_ids', |
| 2141 'sources': [ | 2175 'sources': [ |
| 2142 'base/resources_unittest.cc', | 2176 'base/resources_unittest.cc', |
| (...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2761 '../base/allocator/allocator.gyp:allocator', | 2795 '../base/allocator/allocator.gyp:allocator', |
| 2762 ], | 2796 ], |
| 2763 }, | 2797 }, |
| 2764 ], | 2798 ], |
| 2765 ], | 2799 ], |
| 2766 }], # end of 'toolkit_uses_gtk == 1' | 2800 }], # end of 'toolkit_uses_gtk == 1' |
| 2767 ], # end of 'conditions' | 2801 ], # end of 'conditions' |
| 2768 }, # end of target 'remoting_unittests' | 2802 }, # end of target 'remoting_unittests' |
| 2769 ], # end of targets | 2803 ], # end of targets |
| 2770 } | 2804 } |
| OLD | NEW |