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 1412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1612 ], | 1537 ], |
1613 'rules': [ | 1538 'rules': [ |
1614 { | 1539 { |
1615 'rule_name': 'version', | 1540 'rule_name': 'version', |
1616 'extension': 'jinja2', | 1541 'extension': 'jinja2', |
1617 'outputs': [ | 1542 'outputs': [ |
1618 '<(SHARED_INTERMEDIATE_DIR)/remoting/core.rc' | 1543 '<(SHARED_INTERMEDIATE_DIR)/remoting/core.rc' |
1619 ], | 1544 ], |
1620 'action': [ | 1545 'action': [ |
1621 'python', | 1546 'python', |
1622 '<(localize_py_path)', | 1547 '<(remoting_localize_path)', |
1623 '<@(remoting_languages)', | 1548 '--locale_dir', '<(webapp_locale_dir)', |
1624 '--messages_path', '<(webapp_locale_dir)', | 1549 '--template', '<(RULE_INPUT_PATH)', |
1625 '<(RULE_INPUT_PATH)', | 1550 '--output', '<@(_outputs)', |
1626 '<@(_outputs)', | 1551 '<@(remoting_locales)', |
1627 ], | 1552 ], |
1628 'message': 'Localizing the dialogs and strings' | 1553 'message': 'Localizing the dialogs and strings' |
1629 }, | 1554 }, |
1630 ], | 1555 ], |
1631 }, # end of target 'remoting_core_resources' | 1556 }, # end of target 'remoting_core_resources' |
1632 { | 1557 { |
1633 'target_name': 'remoting_desktop', | 1558 'target_name': 'remoting_desktop', |
1634 'type': 'executable', | 1559 'type': 'executable', |
1635 'variables': { 'enable_wexit_time_destructors': 1, }, | 1560 'variables': { 'enable_wexit_time_destructors': 1, }, |
1636 'defines': [ | 1561 'defines': [ |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1771 ], | 1696 ], |
1772 'rules': [ | 1697 'rules': [ |
1773 { | 1698 { |
1774 'rule_name': 'localize', | 1699 'rule_name': 'localize', |
1775 'extension': 'jinja2', | 1700 'extension': 'jinja2', |
1776 'outputs': [ | 1701 'outputs': [ |
1777 '<(SHARED_INTERMEDIATE_DIR)/remoting/host/remoting_host_messages
.mc', | 1702 '<(SHARED_INTERMEDIATE_DIR)/remoting/host/remoting_host_messages
.mc', |
1778 ], | 1703 ], |
1779 'action': [ | 1704 'action': [ |
1780 'python', | 1705 'python', |
1781 '<(localize_py_path)', | 1706 '<(remoting_localize_path)', |
1782 '<@(remoting_languages)', | 1707 '--locale_dir', '<(webapp_locale_dir)', |
1783 '--messages_path', '<(webapp_locale_dir)', | 1708 '--template', '<(RULE_INPUT_PATH)', |
1784 '<(RULE_INPUT_PATH)', | 1709 '--output', '<@(_outputs)', |
1785 '<@(_outputs)', | 1710 '<@(remoting_locales)', |
1786 ], | 1711 ], |
1787 'message': 'Localizing the event log messages' | 1712 'message': 'Localizing the event log messages' |
1788 }, | 1713 }, |
1789 ], | 1714 ], |
1790 }, # end of target 'remoting_host_messages' | 1715 }, # end of target 'remoting_host_messages' |
1791 { | 1716 { |
1792 'target_name': 'remoting_host_plugin_manifest', | 1717 'target_name': 'remoting_host_plugin_manifest', |
1793 'type': 'none', | 1718 'type': 'none', |
1794 'dependencies': [ | 1719 'dependencies': [ |
1795 'remoting_host_plugin', | 1720 'remoting_host_plugin', |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1855 'inputs': [ | 1780 'inputs': [ |
1856 '<(chrome_version_path)', | 1781 '<(chrome_version_path)', |
1857 '<(lastchange_path)', | 1782 '<(lastchange_path)', |
1858 '<(remoting_version_path)', | 1783 '<(remoting_version_path)', |
1859 ], | 1784 ], |
1860 'outputs': [ | 1785 'outputs': [ |
1861 '<(SHARED_INTERMEDIATE_DIR)/remoting/version.rc', | 1786 '<(SHARED_INTERMEDIATE_DIR)/remoting/version.rc', |
1862 ], | 1787 ], |
1863 'action': [ | 1788 'action': [ |
1864 'python', | 1789 'python', |
1865 '<(localize_py_path)', | 1790 '<(remoting_localize_path)', |
1866 '<@(remoting_languages)', | 1791 '--variables', '<(chrome_version_path)', |
1867 '-i', '<(chrome_version_path)', | |
1868 # |remoting_version_path| must be after |chrome_version_path| | 1792 # |remoting_version_path| must be after |chrome_version_path| |
1869 # because it can contain overrides for the version numbers. | 1793 # because it can contain overrides for the version numbers. |
1870 '-i', '<(remoting_version_path)', | 1794 '--variables', '<(remoting_version_path)', |
1871 '-i', '<(lastchange_path)', | 1795 '--variables', '<(lastchange_path)', |
1872 '--messages_path', '<(webapp_locale_dir)', | 1796 '--locale_dir', '<(webapp_locale_dir)', |
1873 '<(RULE_INPUT_PATH)', | 1797 '--template', '<(RULE_INPUT_PATH)', |
1874 '<@(_outputs)', | 1798 '--output', '<@(_outputs)', |
| 1799 '<@(remoting_locales)', |
1875 ], | 1800 ], |
1876 'message': 'Localizing the version information' | 1801 'message': 'Localizing the version information' |
1877 }, | 1802 }, |
1878 ], | 1803 ], |
1879 }, # end of target 'remoting_version_resources' | 1804 }, # end of target 'remoting_version_resources' |
1880 ], # end of 'targets' | 1805 ], # end of 'targets' |
1881 }], # 'OS=="win"' | 1806 }], # 'OS=="win"' |
1882 | 1807 |
1883 ['OS=="android"', { | 1808 ['OS=="android"', { |
1884 'targets': [ | 1809 'targets': [ |
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2360 'grit_grd_file': 'resources/common_resources.grd', | 2285 'grit_grd_file': 'resources/common_resources.grd', |
2361 }, | 2286 }, |
2362 'includes': [ '../build/grit_action.gypi' ], | 2287 'includes': [ '../build/grit_action.gypi' ], |
2363 }, | 2288 }, |
2364 ], | 2289 ], |
2365 'copies': [ | 2290 'copies': [ |
2366 # Copy results to the product directory. | 2291 # Copy results to the product directory. |
2367 { | 2292 { |
2368 'destination': '<(PRODUCT_DIR)/remoting_locales', | 2293 'destination': '<(PRODUCT_DIR)/remoting_locales', |
2369 'files': [ | 2294 'files': [ |
2370 '<(grit_out_dir)/remoting/resources/ar.pak', | 2295 # Build the list of .pak files generated from remoting_strings.grd. |
2371 '<(grit_out_dir)/remoting/resources/bg.pak', | 2296 '<!@pymod_do_main(remoting_localize --locale_output ' |
2372 '<(grit_out_dir)/remoting/resources/ca.pak', | 2297 '"<(grit_out_dir)/remoting/resources/${pak_suffix}.pak" ' |
2373 '<(grit_out_dir)/remoting/resources/cs.pak', | 2298 '--print_only <(remoting_locales))', |
2374 '<(grit_out_dir)/remoting/resources/da.pak', | |
2375 '<(grit_out_dir)/remoting/resources/de.pak', | |
2376 '<(grit_out_dir)/remoting/resources/el.pak', | |
2377 '<(grit_out_dir)/remoting/resources/en-US.pak', | |
2378 '<(grit_out_dir)/remoting/resources/en-GB.pak', | |
2379 '<(grit_out_dir)/remoting/resources/es.pak', | |
2380 '<(grit_out_dir)/remoting/resources/es-419.pak', | |
2381 '<(grit_out_dir)/remoting/resources/et.pak', | |
2382 '<(grit_out_dir)/remoting/resources/fi.pak', | |
2383 '<(grit_out_dir)/remoting/resources/fil.pak', | |
2384 '<(grit_out_dir)/remoting/resources/fr.pak', | |
2385 '<(grit_out_dir)/remoting/resources/he.pak', | |
2386 '<(grit_out_dir)/remoting/resources/hi.pak', | |
2387 '<(grit_out_dir)/remoting/resources/hr.pak', | |
2388 '<(grit_out_dir)/remoting/resources/hu.pak', | |
2389 '<(grit_out_dir)/remoting/resources/id.pak', | |
2390 '<(grit_out_dir)/remoting/resources/it.pak', | |
2391 '<(grit_out_dir)/remoting/resources/ja.pak', | |
2392 '<(grit_out_dir)/remoting/resources/ko.pak', | |
2393 '<(grit_out_dir)/remoting/resources/lt.pak', | |
2394 '<(grit_out_dir)/remoting/resources/lv.pak', | |
2395 '<(grit_out_dir)/remoting/resources/nb.pak', | |
2396 '<(grit_out_dir)/remoting/resources/nl.pak', | |
2397 '<(grit_out_dir)/remoting/resources/pl.pak', | |
2398 '<(grit_out_dir)/remoting/resources/pt-BR.pak', | |
2399 '<(grit_out_dir)/remoting/resources/pt-PT.pak', | |
2400 '<(grit_out_dir)/remoting/resources/ro.pak', | |
2401 '<(grit_out_dir)/remoting/resources/ru.pak', | |
2402 '<(grit_out_dir)/remoting/resources/sk.pak', | |
2403 '<(grit_out_dir)/remoting/resources/sl.pak', | |
2404 '<(grit_out_dir)/remoting/resources/sr.pak', | |
2405 '<(grit_out_dir)/remoting/resources/sv.pak', | |
2406 '<(grit_out_dir)/remoting/resources/th.pak', | |
2407 '<(grit_out_dir)/remoting/resources/tr.pak', | |
2408 '<(grit_out_dir)/remoting/resources/uk.pak', | |
2409 '<(grit_out_dir)/remoting/resources/vi.pak', | |
2410 '<(grit_out_dir)/remoting/resources/zh-CN.pak', | |
2411 '<(grit_out_dir)/remoting/resources/zh-TW.pak', | |
2412 ], | 2299 ], |
2413 }, | 2300 }, |
2414 { | 2301 { |
2415 'destination': '<(PRODUCT_DIR)', | 2302 'destination': '<(PRODUCT_DIR)', |
2416 'files': [ | 2303 'files': [ |
2417 '<(grit_out_dir)/remoting/resources/chrome_remote_desktop.pak', | 2304 '<(grit_out_dir)/remoting/resources/chrome_remote_desktop.pak', |
2418 ] | 2305 ] |
2419 }, | 2306 }, |
2420 ], | 2307 ], |
2421 'includes': [ '../build/grit_target.gypi' ], | 2308 'includes': [ '../build/grit_target.gypi' ], |
(...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2940 '../base/allocator/allocator.gyp:allocator', | 2827 '../base/allocator/allocator.gyp:allocator', |
2941 ], | 2828 ], |
2942 }, | 2829 }, |
2943 ], | 2830 ], |
2944 ], | 2831 ], |
2945 }], # end of 'toolkit_uses_gtk == 1' | 2832 }], # end of 'toolkit_uses_gtk == 1' |
2946 ], # end of 'conditions' | 2833 ], # end of 'conditions' |
2947 }, # end of target 'remoting_unittests' | 2834 }, # end of target 'remoting_unittests' |
2948 ], # end of targets | 2835 ], # end of targets |
2949 } | 2836 } |
OLD | NEW |