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