OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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 import("//build/config/features.gni") | 5 import("//build/config/features.gni") |
6 import("//build/util/version.gni") | 6 import("//build/util/version.gni") |
| 7 import("//remoting/remoting_options.gni") |
7 | 8 |
8 # TODO(nicholss): Move this and other defines to version.h.in. | 9 # TODO(nicholss): Move this and other defines to version.h.in. |
9 # Various remoting targets need this version definition. | 10 # Various remoting targets need this version definition. |
10 config("version") { | 11 config("version") { |
11 defines = [ "VERSION=$chrome_version_full" ] | 12 defines = [ "VERSION=$chrome_version_full" ] |
12 } | 13 } |
13 | 14 |
14 config("enable_webrtc_remoting_client") { | 15 config("enable_webrtc_remoting_client") { |
15 if (!is_official_build && !is_nacl) { | 16 if (!is_official_build && !is_nacl) { |
16 defines = [ "ENABLE_WEBRTC_REMOTING_CLIENT=1" ] | 17 defines = [ "ENABLE_WEBRTC_REMOTING_CLIENT=1" ] |
17 } | 18 } |
18 } | 19 } |
| 20 |
| 21 config("remoting_me2me_host") { |
| 22 defines = [] |
| 23 |
| 24 if (is_mac && is_official_build) { |
| 25 defines += [ "USE_REMOTING_MACOSX_INTERNAL" ] |
| 26 } |
| 27 |
| 28 if (is_win && remoting_multi_process != 0 && remoting_rdp_session != 0) { |
| 29 defines += [ "REMOTING_RDP_SESSION" ] |
| 30 } |
| 31 |
| 32 if (remoting_multi_process != 0) { |
| 33 defines += [ "REMOTING_MULTI_PROCESS" ] |
| 34 } |
| 35 } |
OLD | NEW |