garykac | aa86d5f | 2015-04-22 20:37:10 | [diff] [blame] | 1 | # Copyright 2015 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. |
| 4 | |
dpranke | 63e164a | 2015-11-04 01:12:46 | [diff] [blame] | 5 | import("//build/config/chrome_build.gni") |
sergeyu | 5342d96f | 2017-01-23 20:18:52 | [diff] [blame] | 6 | import("//build/config/ui.gni") |
| 7 | |
| 8 | enable_remoting_host = |
| 9 | is_win || (is_linux && (is_chromeos || use_x11)) || is_mac |
| 10 | enable_me2me_host = is_win || (is_linux && !is_chromeos && use_x11) || is_mac |
dpranke | 63e164a | 2015-11-04 01:12:46 | [diff] [blame] | 11 | |
garykac | 8db0901 | 2015-06-12 23:30:35 | [diff] [blame] | 12 | # These arguments can be overridden from the command line (see "gn help args"). |
| 13 | declare_args() { |
| 14 | # Set this to run the jscompile checks after building the webapp. |
| 15 | enable_remoting_jscompile = false |
garykac | fb86b49 | 2015-07-08 23:58:01 | [diff] [blame] | 16 | |
| 17 | # Set this to enable building internal AppRemoting apps. |
| 18 | enable_internal_app_remoting_targets = false |
lambroslambrou | 0e1b88f | 2016-01-26 21:35:46 | [diff] [blame] | 19 | } |
garykac | aa86d5f | 2015-04-22 20:37:10 | [diff] [blame] | 20 | |
garykac | aa86d5f | 2015-04-22 20:37:10 | [diff] [blame] | 21 | # Set this to use GCD instead of the remoting directory service. |
| 22 | remoting_use_gcd = 0 |
| 23 | |
| 24 | # Enable the multi-process host on Windows by default. |
| 25 | if (is_win) { |
| 26 | remoting_multi_process = 1 |
| 27 | } else { |
| 28 | remoting_multi_process = 0 |
| 29 | } |
| 30 | |
| 31 | remoting_rdp_session = 1 |
| 32 | |
dpranke | 63e164a | 2015-11-04 01:12:46 | [diff] [blame] | 33 | if (is_chrome_branded) { |
phajdan.jr | ba1f0bf2 | 2016-05-06 06:39:06 | [diff] [blame] | 34 | branding_path = "//remoting/branding_Chrome" |
dpranke | 63e164a | 2015-11-04 01:12:46 | [diff] [blame] | 35 | } else { |
phajdan.jr | ba1f0bf2 | 2016-05-06 06:39:06 | [diff] [blame] | 36 | branding_path = "//remoting/branding_Chromium" |
dpranke | 63e164a | 2015-11-04 01:12:46 | [diff] [blame] | 37 | } |
garykac | aa86d5f | 2015-04-22 20:37:10 | [diff] [blame] | 38 | |
| 39 | # The ar_service_environment variable is used to define the target |
| 40 | # environment for the app being built. |
joedow | 1c4ddaf3 | 2015-09-21 23:40:20 | [diff] [blame] | 41 | # The allowed values are dev and prod. |
garykac | aa86d5f | 2015-04-22 20:37:10 | [diff] [blame] | 42 | if (is_debug) { |
| 43 | ar_service_environment = "dev" |
| 44 | } else { |
| 45 | # Non-dev builds should default to 'prod'. |
| 46 | ar_service_environment = "prod" |
| 47 | } |
nicholss | 336d51f | 2016-08-25 19:52:13 | [diff] [blame] | 48 | |
nicholss | 336d51f | 2016-08-25 19:52:13 | [diff] [blame] | 49 | rdp_desktop_session_guid = "6a7699f0-ee43-43e7-aa30-a6738f9bd470" |