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
3 # found in the LICENSE file.
9 # Set this to run the jscompile checks after building the webapp.
12 # Set this to enable cast mode on the android client.
17 # Enable the multi-process host on Windows by default.
19 'remoting_multi_process%': 1,
21 'remoting_multi_process%': 0,
26 'remoting_multi_process%': '<(remoting_multi_process)',
27 'remoting_rdp_session%': 1,
29 'remoting_localize_path': 'tools/build/remoting_localize.py',
31 'branding_path': '../remoting/branding_<(branding)',
33 'webapp_locale_dir': '<(SHARED_INTERMEDIATE_DIR)/remoting/webapp/_locales',
37 'mac_bundle_id': '<!(python <(version_py_path) -f <(branding_path) -t "@MAC_BUNDLE_ID@")',
38 'mac_creator': '<!(python <(version_py_path) -f <(branding_path) -t "@MAC_CREATOR@")',
41 # Each CLSID is a hash of the current version string salted with an
42 # arbitrary GUID. This ensures that the newly installed COM classes will
43 # be used during/after upgrade even if there are old instances running
45 # The IDs are not random to avoid rebuilding host when it's not
47 'daemon_controller_clsid':
48 '<!(python -c "import uuid; print uuid.uuid5(uuid.UUID(\'655bd819-c08c-4b04-80c2-f160739ff6ef\'), \'<(version_full)\')")',
49 'rdp_desktop_session_clsid':
50 '<!(python -c "import uuid; print uuid.uuid5(uuid.UUID(\'6a7699f0-ee43-43e7-aa30-a6738f9bd470\'), \'<(version_full)\')")',
54 # Note: list duplicated in GN build. See //remoting/resources/BUILD.gn
55 'ar', 'bg', 'ca', 'cs', 'da', 'de', 'el', 'en', 'en-GB', 'es',
56 'es-419', 'et', 'fi', 'fil', 'fr', 'he', 'hi', 'hr', 'hu', 'id',
57 'it', 'ja', 'ko', 'lt', 'lv', 'nb', 'nl', 'pl', 'pt-BR', 'pt-PT',
58 'ro', 'ru', 'sk', 'sl', 'sr', 'sv', 'th', 'tr', 'uk', 'vi',
61 'remoting_host_locale_files': [
62 # Build the list of .pak files generated from remoting_strings.grd.
63 '<!@pymod_do_main(remoting_copy_locales -o -p <(OS) -x '
64 '<(PRODUCT_DIR) <(remoting_locales))',
66 'remoting_webapp_locale_files': [
67 # Build the list of .json files generated from remoting_strings.grd.
68 '<!@pymod_do_main(remoting_localize --locale_output '
69 '"<(webapp_locale_dir)/@{json_suffix}/messages.json" '
70 '--print_only <(remoting_locales))',
75 '../chrome/js_unittest_vars.gypi',
76 'remoting_android.gypi',
77 'remoting_client.gypi',
81 'remoting_version.gypi',
82 'remoting_webapp_files.gypi',
89 'BINARY_HOST_ME2ME=3',
90 'BINARY_NATIVE_MESSAGING_HOST=4',
91 'BINARY_REMOTE_ASSISTANCE_HOST=5',
94 '..', # Root of Chrome checkout
97 'win_debug_RuntimeChecks': '0',
100 ['OS=="mac" and mac_breakpad==1', {
102 'REMOTING_ENABLE_BREAKPAD'
105 ['OS=="win" and buildtype == "Official"', {
107 'REMOTING_ENABLE_BREAKPAD'
110 ['OS=="win" and remoting_multi_process != 0 and \
111 remoting_rdp_session != 0', {
113 'REMOTING_RDP_SESSION',
116 ['remoting_multi_process != 0', {
118 'REMOTING_MULTI_PROCESS',
126 'target_name': 'remoting_breakpad',
127 'type': 'static_library',
128 'variables': { 'enable_wexit_time_destructors': 1, },
130 '../base/base.gyp:base',
134 'base/breakpad_linux.cc',
135 'base/breakpad_mac.mm',
136 'base/breakpad_win.cc',
141 '../breakpad/breakpad.gyp:breakpad',
146 '../breakpad/breakpad.gyp:breakpad_handler',
150 }, # end of target 'remoting_breakpad'
153 # GN version: //remoting/resources
154 'target_name': 'remoting_resources',
157 'remoting_webapp_html',
160 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)',
162 '<(SHARED_INTERMEDIATE_DIR)/main.html',
163 'base/resources_unittest.cc',
164 'host/continue_window_mac.mm',
165 'host/disconnect_window_mac.mm',
166 'host/installer/mac/uninstaller/remoting_uninstaller-InfoPlist.strings.jinja2',
167 'host/mac/me2me_preference_pane-InfoPlist.strings.jinja2',
168 'host/win/core.rc.jinja2',
169 'host/win/host_messages.mc.jinja2',
170 'host/win/version.rc.jinja2',
171 'resources/play_store_resources.cc',
172 'webapp/crd/js/background.js',
173 'webapp/crd/js/butter_bar.js',
174 'webapp/crd/js/client_screen.js',
175 'webapp/crd/js/error.js',
176 'webapp/crd/js/host_list.js',
177 'webapp/crd/js/host_setup_dialog.js',
178 'webapp/crd/js/host_table_entry.js',
179 'webapp/crd/js/it2me_helpee_channel.js',
180 'webapp/crd/js/options_menu.js',
181 'webapp/crd/js/paired_client_manager.js',
182 'webapp/crd/js/remoting.js',
183 'webapp/crd/js/window_frame.js',
184 'webapp/crd/manifest.json.jinja2',
189 # GN version: //remoting/resources:verify_resources
190 'action_name': 'verify_resources',
192 'resources/remoting_strings.grd',
193 'tools/verify_resources.py',
197 '<(PRODUCT_DIR)/remoting_resources_verified.stamp',
201 'tools/verify_resources.py',
202 '-t', '<(PRODUCT_DIR)/remoting_resources_verified.stamp',
203 '-r', 'resources/remoting_strings.grd',
208 # GN version: //remoting/resources:strings
209 'action_name': 'remoting_strings',
211 'grit_grd_file': 'resources/remoting_strings.grd',
213 'includes': [ '../build/grit_action.gypi' ],
216 # GN version: //remoting/resources:copy_locales
217 'action_name': 'copy_locales',
219 'copy_output_dir%': '<(PRODUCT_DIR)',
222 'tools/build/remoting_copy_locales.py',
223 '<!@pymod_do_main(remoting_copy_locales -i -p <(OS) -g <(grit_out_dir) <(remoting_locales))'
226 '<!@pymod_do_main(remoting_copy_locales -o -p <(OS) -x <(copy_output_dir) <(remoting_locales))'
229 'python', 'tools/build/remoting_copy_locales.py',
231 '-g', '<(grit_out_dir)',
232 '-x', '<(copy_output_dir)/.',
233 '<@(remoting_locales)',
237 'includes': [ '../build/grit_target.gypi' ],
238 }, # end of target 'remoting_resources'
241 # GN version: //remoting/base
242 'target_name': 'remoting_base',
243 'type': 'static_library',
244 'variables': { 'enable_wexit_time_destructors': 1, },
246 '../base/base.gyp:base',
247 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
248 '../media/media.gyp:media',
249 '../media/media.gyp:shared_memory_support',
250 '../net/net.gyp:net',
251 '../third_party/libvpx/libvpx.gyp:libvpx',
252 '../third_party/libyuv/libyuv.gyp:libyuv',
253 '../third_party/opus/opus.gyp:opus',
254 '../third_party/protobuf/protobuf.gyp:protobuf_lite',
255 '../third_party/webrtc/modules/modules.gyp:desktop_capture',
256 '../ui/base/ui_base.gyp:ui_base',
257 '../ui/gfx/gfx.gyp:gfx',
258 '../ui/gfx/gfx.gyp:gfx_geometry',
259 'proto/chromotocol.gyp:chromotocol_proto_lib',
260 'remoting_resources',
262 'export_dependent_settings': [
263 '../base/base.gyp:base',
264 '../net/net.gyp:net',
265 '../third_party/protobuf/protobuf.gyp:protobuf_lite',
266 'proto/chromotocol.gyp:chromotocol_proto_lib',
268 # This target needs a hard dependency because dependent targets
269 # depend on chromotocol_proto_lib for headers.
270 'hard_dependency': 1,
272 '<@(remoting_base_sources)',
274 }, # end of target 'remoting_base'
277 # GN version: //remoting/protocol
278 'target_name': 'remoting_protocol',
279 'type': 'static_library',
280 'variables': { 'enable_wexit_time_destructors': 1, },
282 '../base/base.gyp:base',
283 '../crypto/crypto.gyp:crypto',
284 '../jingle/jingle.gyp:jingle_glue',
285 '../jingle/jingle.gyp:notifier',
286 '../net/net.gyp:net',
287 '../third_party/libjingle/libjingle.gyp:libjingle',
290 'export_dependent_settings': [
291 '../third_party/libjingle/libjingle.gyp:libjingle',
294 '<@(remoting_protocol_sources)',
296 }, # end of target 'remoting_protocol'