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 'chromium_code': 1, | 7 'chromium_code': 1, |
8 | 8 |
9 'variables': { | 9 'variables': { |
10 'conditions': [ | 10 'conditions': [ |
11 # Enable the multi-process host on Windows by default. | 11 # Enable the multi-process host on Windows by default. |
12 ['OS=="win"', { | 12 ['OS=="win"', { |
13 'remoting_multi_process%': 1, | 13 'remoting_multi_process%': 1, |
14 }, { | 14 }, { |
15 'remoting_multi_process%': 0, | 15 'remoting_multi_process%': 0, |
16 }], | 16 }], |
17 ], | 17 ], |
18 }, | 18 }, |
19 | 19 |
20 'remoting_multi_process%': '<(remoting_multi_process)', | 20 'remoting_multi_process%': '<(remoting_multi_process)', |
21 'remoting_rdp_session%': 1, | 21 'remoting_rdp_session%': 1, |
22 | 22 |
23 'localize_py_path': 'tools/localize.py', | 23 'remoting_localize_path': 'tools/build/remoting_localize.py', |
24 | 24 |
25 # The |major|, |build| and |patch| versions are inherited from Chrome. | 25 # The |major|, |build| and |patch| versions are inherited from Chrome. |
26 # 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 |
27 # Chromoting-specific patch version. | 27 # Chromoting-specific patch version. |
28 # 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 |
29 # |remoting_version_path| so that we can override the Chrome version | 29 # |remoting_version_path| so that we can override the Chrome version |
30 # numbers if needed. | 30 # numbers if needed. |
31 'version_py_path': '../chrome/tools/build/version.py', | 31 'version_py_path': '../chrome/tools/build/version.py', |
32 'remoting_version_path': '../remoting/VERSION', | 32 'remoting_version_path': '../remoting/VERSION', |
33 'chrome_version_path': '../chrome/VERSION', | 33 'chrome_version_path': '../chrome/VERSION', |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 # classes will be used during/after upgrade even if there are old | 93 # classes will be used during/after upgrade even if there are old |
94 # instances running already. | 94 # instances running already. |
95 # The parameter passed to uuidgen.py is ignored, but needed to make sure | 95 # The parameter passed to uuidgen.py is ignored, but needed to make sure |
96 # that the script will be invoked separately for each CLSID. Otherwise | 96 # that the script will be invoked separately for each CLSID. Otherwise |
97 # GYP will reuse the value returned by the first invocation of | 97 # GYP will reuse the value returned by the first invocation of |
98 # the script. | 98 # the script. |
99 'daemon_controller_clsid': '<!(python tools/uuidgen.py 1)', | 99 'daemon_controller_clsid': '<!(python tools/uuidgen.py 1)', |
100 'rdp_desktop_session_clsid': '<!(python tools/uuidgen.py 2)', | 100 'rdp_desktop_session_clsid': '<!(python tools/uuidgen.py 2)', |
101 }], | 101 }], |
102 ], | 102 ], |
103 'remoting_languages': [ | 103 'remoting_locales': [ |
104 '-l', 'ar', | 104 'ar', 'bg', 'ca', 'cs', 'da', 'de', 'el', 'en', 'en-GB', 'es', |
105 '-l', 'bg', | 105 'es-419', 'et', 'fi', 'fil', 'fr', 'he', 'hi', 'hr', 'hu', 'id', |
106 '-l', 'ca', | 106 'it', 'ja', 'ko', 'lt', 'lv', 'nb', 'nl', 'pl', 'pt-BR', 'pt-PT', |
107 '-l', 'cs', | 107 'ro', 'ru', 'sk', 'sl', 'sr', 'sv', 'th', 'tr', 'uk', 'vi', |
108 '-l', 'da', | 108 'zh-CN', 'zh-TW', |
109 '-l', 'de', | |
110 '-l', 'el', | |
111 '-l', 'en', | |
112 '-l', 'en_GB', | |
113 '-l', 'es', | |
114 '-l', 'es_419', | |
115 '-l', 'et', | |
116 '-l', 'fi', | |
117 '-l', 'fil', | |
118 '-l', 'fr', | |
119 '-l', 'he', | |
120 '-l', 'hi', | |
121 '-l', 'hr', | |
122 '-l', 'hu', | |
123 '-l', 'id', | |
124 '-l', 'it', | |
125 '-l', 'ja', | |
126 '-l', 'ko', | |
127 '-l', 'lt', | |
128 '-l', 'lv', | |
129 '-l', 'nb', | |
130 '-l', 'nl', | |
131 '-l', 'pl', | |
132 '-l', 'pt_BR', | |
133 '-l', 'pt_PT', | |
134 '-l', 'ro', | |
135 '-l', 'ru', | |
136 '-l', 'sk', | |
137 '-l', 'sl', | |
138 '-l', 'sr', | |
139 '-l', 'sv', | |
140 '-l', 'th', | |
141 '-l', 'tr', | |
142 '-l', 'uk', | |
143 '-l', 'vi', | |
144 '-l', 'zh_CN', | |
145 '-l', 'zh_TW', | |
146 ], | 109 ], |
147 'remoting_webapp_locale_files': [ | 110 'remoting_webapp_locale_files': [ |
148 '<(webapp_locale_dir)/ar/messages.json', | 111 # Build the list of .json files generated from remoting_strings.grd. |
149 '<(webapp_locale_dir)/bg/messages.json', | 112 '<!@pymod_do_main(remoting_localize --locale_output ' |
150 '<(webapp_locale_dir)/ca/messages.json', | 113 '<(webapp_locale_dir)/${json_suffix}/messages.json ' |
151 '<(webapp_locale_dir)/cs/messages.json', | 114 '--print_only <(remoting_locales))', |
152 '<(webapp_locale_dir)/da/messages.json', | |
153 '<(webapp_locale_dir)/de/messages.json', | |
154 '<(webapp_locale_dir)/el/messages.json', | |
155 '<(webapp_locale_dir)/en/messages.json', | |
156 '<(webapp_locale_dir)/en_GB/messages.json', | |
157 '<(webapp_locale_dir)/es/messages.json', | |
158 '<(webapp_locale_dir)/es_419/messages.json', | |
159 '<(webapp_locale_dir)/et/messages.json', | |
160 '<(webapp_locale_dir)/fi/messages.json', | |
161 '<(webapp_locale_dir)/fil/messages.json', | |
162 '<(webapp_locale_dir)/fr/messages.json', | |
163 '<(webapp_locale_dir)/he/messages.json', | |
164 '<(webapp_locale_dir)/hi/messages.json', | |
165 '<(webapp_locale_dir)/hr/messages.json', | |
166 '<(webapp_locale_dir)/hu/messages.json', | |
167 '<(webapp_locale_dir)/id/messages.json', | |
168 '<(webapp_locale_dir)/it/messages.json', | |
169 '<(webapp_locale_dir)/ja/messages.json', | |
170 '<(webapp_locale_dir)/ko/messages.json', | |
171 '<(webapp_locale_dir)/lt/messages.json', | |
172 '<(webapp_locale_dir)/lv/messages.json', | |
173 '<(webapp_locale_dir)/nb/messages.json', | |
174 '<(webapp_locale_dir)/nl/messages.json', | |
175 '<(webapp_locale_dir)/pl/messages.json', | |
176 '<(webapp_locale_dir)/pt_BR/messages.json', | |
177 '<(webapp_locale_dir)/pt_PT/messages.json', | |
178 '<(webapp_locale_dir)/ro/messages.json', | |
179 '<(webapp_locale_dir)/ru/messages.json', | |
180 '<(webapp_locale_dir)/sk/messages.json', | |
181 '<(webapp_locale_dir)/sl/messages.json', | |
182 '<(webapp_locale_dir)/sr/messages.json', | |
183 '<(webapp_locale_dir)/sv/messages.json', | |
184 '<(webapp_locale_dir)/th/messages.json', | |
185 '<(webapp_locale_dir)/tr/messages.json', | |
186 '<(webapp_locale_dir)/uk/messages.json', | |
187 '<(webapp_locale_dir)/vi/messages.json', | |
188 '<(webapp_locale_dir)/zh_CN/messages.json', | |
189 '<(webapp_locale_dir)/zh_TW/messages.json', | |
190 ], | 115 ], |
191 'remoting_webapp_files': [ | 116 'remoting_webapp_files': [ |
192 'resources/chromoting16.webp', | 117 'resources/chromoting16.webp', |
193 'resources/chromoting48.webp', | 118 'resources/chromoting48.webp', |
194 'resources/chromoting128.webp', | 119 'resources/chromoting128.webp', |
195 'resources/disclosure_arrow_down.webp', | 120 'resources/disclosure_arrow_down.webp', |
196 'resources/disclosure_arrow_right.webp', | 121 'resources/disclosure_arrow_right.webp', |
197 'resources/host_setup_instructions.webp', | 122 'resources/host_setup_instructions.webp', |
198 'resources/icon_cross.webp', | 123 'resources/icon_cross.webp', |
199 'resources/icon_host.webp', | 124 'resources/icon_host.webp', |
(...skipping 1408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1608 ], | 1533 ], |
1609 'rules': [ | 1534 'rules': [ |
1610 { | 1535 { |
1611 'rule_name': 'version', | 1536 'rule_name': 'version', |
1612 'extension': 'jinja2', | 1537 'extension': 'jinja2', |
1613 'outputs': [ | 1538 'outputs': [ |
1614 '<(SHARED_INTERMEDIATE_DIR)/remoting/core.rc' | 1539 '<(SHARED_INTERMEDIATE_DIR)/remoting/core.rc' |
1615 ], | 1540 ], |
1616 'action': [ | 1541 'action': [ |
1617 'python', | 1542 'python', |
1618 '<(localize_py_path)', | 1543 '<(remoting_localize_path)', |
1619 '<@(remoting_languages)', | 1544 '--locale_dir', '<(webapp_locale_dir)', |
1620 '--messages_path', '<(webapp_locale_dir)', | 1545 '--template', '<(RULE_INPUT_PATH)', |
1621 '<(RULE_INPUT_PATH)', | 1546 '--output', '<@(_outputs)', |
1622 '<@(_outputs)', | 1547 '<@(remoting_locales)', |
1623 ], | 1548 ], |
1624 'message': 'Localizing the dialogs and strings' | 1549 'message': 'Localizing the dialogs and strings' |
1625 }, | 1550 }, |
1626 ], | 1551 ], |
1627 }, # end of target 'remoting_core_resources' | 1552 }, # end of target 'remoting_core_resources' |
1628 { | 1553 { |
1629 'target_name': 'remoting_desktop', | 1554 'target_name': 'remoting_desktop', |
1630 'type': 'executable', | 1555 'type': 'executable', |
1631 'variables': { 'enable_wexit_time_destructors': 1, }, | 1556 'variables': { 'enable_wexit_time_destructors': 1, }, |
1632 'defines': [ | 1557 'defines': [ |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1767 ], | 1692 ], |
1768 'rules': [ | 1693 'rules': [ |
1769 { | 1694 { |
1770 'rule_name': 'localize', | 1695 'rule_name': 'localize', |
1771 'extension': 'jinja2', | 1696 'extension': 'jinja2', |
1772 'outputs': [ | 1697 'outputs': [ |
1773 '<(SHARED_INTERMEDIATE_DIR)/remoting/host/remoting_host_messages
.mc', | 1698 '<(SHARED_INTERMEDIATE_DIR)/remoting/host/remoting_host_messages
.mc', |
1774 ], | 1699 ], |
1775 'action': [ | 1700 'action': [ |
1776 'python', | 1701 'python', |
1777 '<(localize_py_path)', | 1702 '<(remoting_localize_path)', |
1778 '<@(remoting_languages)', | 1703 '--locale_dir', '<(webapp_locale_dir)', |
1779 '--messages_path', '<(webapp_locale_dir)', | 1704 '--template', '<(RULE_INPUT_PATH)', |
1780 '<(RULE_INPUT_PATH)', | 1705 '--output', '<@(_outputs)', |
1781 '<@(_outputs)', | 1706 '<@(remoting_locales)', |
1782 ], | 1707 ], |
1783 'message': 'Localizing the event log messages' | 1708 'message': 'Localizing the event log messages' |
1784 }, | 1709 }, |
1785 ], | 1710 ], |
1786 }, # end of target 'remoting_host_messages' | 1711 }, # end of target 'remoting_host_messages' |
1787 { | 1712 { |
1788 'target_name': 'remoting_host_plugin_manifest', | 1713 'target_name': 'remoting_host_plugin_manifest', |
1789 'type': 'none', | 1714 'type': 'none', |
1790 'dependencies': [ | 1715 'dependencies': [ |
1791 'remoting_host_plugin', | 1716 'remoting_host_plugin', |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1851 'inputs': [ | 1776 'inputs': [ |
1852 '<(chrome_version_path)', | 1777 '<(chrome_version_path)', |
1853 '<(lastchange_path)', | 1778 '<(lastchange_path)', |
1854 '<(remoting_version_path)', | 1779 '<(remoting_version_path)', |
1855 ], | 1780 ], |
1856 'outputs': [ | 1781 'outputs': [ |
1857 '<(SHARED_INTERMEDIATE_DIR)/remoting/version.rc', | 1782 '<(SHARED_INTERMEDIATE_DIR)/remoting/version.rc', |
1858 ], | 1783 ], |
1859 'action': [ | 1784 'action': [ |
1860 'python', | 1785 'python', |
1861 '<(localize_py_path)', | 1786 '<(remoting_localize_path)', |
1862 '<@(remoting_languages)', | 1787 '--variables', '<(chrome_version_path)', |
1863 '-i', '<(chrome_version_path)', | |
1864 # |remoting_version_path| must be after |chrome_version_path| | 1788 # |remoting_version_path| must be after |chrome_version_path| |
1865 # because it can contain overrides for the version numbers. | 1789 # because it can contain overrides for the version numbers. |
1866 '-i', '<(remoting_version_path)', | 1790 '--variables', '<(remoting_version_path)', |
1867 '-i', '<(lastchange_path)', | 1791 '--variables', '<(lastchange_path)', |
1868 '--messages_path', '<(webapp_locale_dir)', | 1792 '--locale_dir', '<(webapp_locale_dir)', |
1869 '<(RULE_INPUT_PATH)', | 1793 '--template', '<(RULE_INPUT_PATH)', |
1870 '<@(_outputs)', | 1794 '--output', '<@(_outputs)', |
| 1795 '<@(remoting_locales)', |
1871 ], | 1796 ], |
1872 'message': 'Localizing the version information' | 1797 'message': 'Localizing the version information' |
1873 }, | 1798 }, |
1874 ], | 1799 ], |
1875 }, # end of target 'remoting_version_resources' | 1800 }, # end of target 'remoting_version_resources' |
1876 ], # end of 'targets' | 1801 ], # end of 'targets' |
1877 }], # 'OS=="win"' | 1802 }], # 'OS=="win"' |
1878 | 1803 |
1879 # The host installation is generated only if WiX is available. If | 1804 # The host installation is generated only if WiX is available. If |
1880 # component build is used the produced installation will not work due to | 1805 # component build is used the produced installation will not work due to |
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2336 'grit_grd_file': 'resources/common_resources.grd', | 2261 'grit_grd_file': 'resources/common_resources.grd', |
2337 }, | 2262 }, |
2338 'includes': [ '../build/grit_action.gypi' ], | 2263 'includes': [ '../build/grit_action.gypi' ], |
2339 }, | 2264 }, |
2340 ], | 2265 ], |
2341 'copies': [ | 2266 'copies': [ |
2342 # Copy results to the product directory. | 2267 # Copy results to the product directory. |
2343 { | 2268 { |
2344 'destination': '<(PRODUCT_DIR)/remoting_locales', | 2269 'destination': '<(PRODUCT_DIR)/remoting_locales', |
2345 'files': [ | 2270 'files': [ |
2346 '<(grit_out_dir)/remoting/resources/ar.pak', | 2271 # Build the list of .pak files generated from remoting_strings.grd. |
2347 '<(grit_out_dir)/remoting/resources/bg.pak', | 2272 '<!@pymod_do_main(remoting_localize --locale_output ' |
2348 '<(grit_out_dir)/remoting/resources/ca.pak', | 2273 '<(grit_out_dir)/remoting/resources/${pak_suffix}.pak ' |
2349 '<(grit_out_dir)/remoting/resources/cs.pak', | 2274 '--print_only <(remoting_locales))', |
2350 '<(grit_out_dir)/remoting/resources/da.pak', | |
2351 '<(grit_out_dir)/remoting/resources/de.pak', | |
2352 '<(grit_out_dir)/remoting/resources/el.pak', | |
2353 '<(grit_out_dir)/remoting/resources/en-US.pak', | |
2354 '<(grit_out_dir)/remoting/resources/en-GB.pak', | |
2355 '<(grit_out_dir)/remoting/resources/es.pak', | |
2356 '<(grit_out_dir)/remoting/resources/es-419.pak', | |
2357 '<(grit_out_dir)/remoting/resources/et.pak', | |
2358 '<(grit_out_dir)/remoting/resources/fi.pak', | |
2359 '<(grit_out_dir)/remoting/resources/fil.pak', | |
2360 '<(grit_out_dir)/remoting/resources/fr.pak', | |
2361 '<(grit_out_dir)/remoting/resources/he.pak', | |
2362 '<(grit_out_dir)/remoting/resources/hi.pak', | |
2363 '<(grit_out_dir)/remoting/resources/hr.pak', | |
2364 '<(grit_out_dir)/remoting/resources/hu.pak', | |
2365 '<(grit_out_dir)/remoting/resources/id.pak', | |
2366 '<(grit_out_dir)/remoting/resources/it.pak', | |
2367 '<(grit_out_dir)/remoting/resources/ja.pak', | |
2368 '<(grit_out_dir)/remoting/resources/ko.pak', | |
2369 '<(grit_out_dir)/remoting/resources/lt.pak', | |
2370 '<(grit_out_dir)/remoting/resources/lv.pak', | |
2371 '<(grit_out_dir)/remoting/resources/nb.pak', | |
2372 '<(grit_out_dir)/remoting/resources/nl.pak', | |
2373 '<(grit_out_dir)/remoting/resources/pl.pak', | |
2374 '<(grit_out_dir)/remoting/resources/pt-BR.pak', | |
2375 '<(grit_out_dir)/remoting/resources/pt-PT.pak', | |
2376 '<(grit_out_dir)/remoting/resources/ro.pak', | |
2377 '<(grit_out_dir)/remoting/resources/ru.pak', | |
2378 '<(grit_out_dir)/remoting/resources/sk.pak', | |
2379 '<(grit_out_dir)/remoting/resources/sl.pak', | |
2380 '<(grit_out_dir)/remoting/resources/sr.pak', | |
2381 '<(grit_out_dir)/remoting/resources/sv.pak', | |
2382 '<(grit_out_dir)/remoting/resources/th.pak', | |
2383 '<(grit_out_dir)/remoting/resources/tr.pak', | |
2384 '<(grit_out_dir)/remoting/resources/uk.pak', | |
2385 '<(grit_out_dir)/remoting/resources/vi.pak', | |
2386 '<(grit_out_dir)/remoting/resources/zh-CN.pak', | |
2387 '<(grit_out_dir)/remoting/resources/zh-TW.pak', | |
2388 ], | 2275 ], |
2389 }, | 2276 }, |
2390 { | 2277 { |
2391 'destination': '<(PRODUCT_DIR)', | 2278 'destination': '<(PRODUCT_DIR)', |
2392 'files': [ | 2279 'files': [ |
2393 '<(grit_out_dir)/remoting/resources/chrome_remote_desktop.pak', | 2280 '<(grit_out_dir)/remoting/resources/chrome_remote_desktop.pak', |
2394 ] | 2281 ] |
2395 }, | 2282 }, |
2396 ], | 2283 ], |
2397 'includes': [ '../build/grit_target.gypi' ], | 2284 'includes': [ '../build/grit_target.gypi' ], |
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2915 '../base/allocator/allocator.gyp:allocator', | 2802 '../base/allocator/allocator.gyp:allocator', |
2916 ], | 2803 ], |
2917 }, | 2804 }, |
2918 ], | 2805 ], |
2919 ], | 2806 ], |
2920 }], # end of 'toolkit_uses_gtk == 1' | 2807 }], # end of 'toolkit_uses_gtk == 1' |
2921 ], # end of 'conditions' | 2808 ], # end of 'conditions' |
2922 }, # end of target 'remoting_unittests' | 2809 }, # end of target 'remoting_unittests' |
2923 ], # end of targets | 2810 ], # end of targets |
2924 } | 2811 } |
OLD | NEW |