OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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/config/ui.gni") | 6 import("//build/config/ui.gni") |
7 import("//remoting/remoting_version.gni") | 7 import("//remoting/remoting_version.gni") |
8 | 8 |
9 static_library("host") { | 9 static_library("host") { |
10 gypi_values = exec_script( | 10 gypi_values = exec_script("//build/gypi_to_gn.py", |
11 "//build/gypi_to_gn.py", | 11 [ rebase_path("../remoting_host_srcs.gypi") ], |
12 [ rebase_path("../remoting_host_srcs.gypi")], | 12 "scope", |
13 "scope", | 13 [ "../remoting_host_srcs.gypi" ]) |
14 [ "../remoting_host_srcs.gypi" ]) | |
15 | 14 |
16 sources = rebase_path( | 15 sources = rebase_path(gypi_values.remoting_host_sources, ".", "//remoting") |
17 gypi_values.remoting_host_sources, ".", "//remoting") | |
18 | 16 |
19 libs = [] | 17 libs = [] |
20 | 18 |
21 configs += [ "//build/config/compiler:wexit_time_destructors" ] | 19 configs += [ "//build/config/compiler:wexit_time_destructors" ] |
22 | 20 |
23 defines = [ "WEBRTC_CHROMIUM_BUILD" ] | 21 defines = [ "WEBRTC_CHROMIUM_BUILD" ] |
24 | 22 |
25 deps = [ | 23 deps = [ |
26 "//base:i18n", | 24 "//base:i18n", |
27 "//crypto", | 25 "//crypto", |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 defines += [ | 96 defines += [ |
99 "HOST_BUNDLE_NAME=\"$host_bundle_name\"", | 97 "HOST_BUNDLE_NAME=\"$host_bundle_name\"", |
100 "PREFPANE_BUNDLE_NAME=\"$prefpane_bundle_name\"", | 98 "PREFPANE_BUNDLE_NAME=\"$prefpane_bundle_name\"", |
101 ] | 99 ] |
102 | 100 |
103 libs += [ | 101 libs += [ |
104 "Accelerate.framework", | 102 "Accelerate.framework", |
105 "libpam.a", | 103 "libpam.a", |
106 ] | 104 ] |
107 | 105 |
108 deps += [ | 106 deps += [ "//google_toolbox_for_mac" ] |
109 "//google_toolbox_for_mac" | |
110 ] | |
111 } | 107 } |
112 | 108 |
113 if (enable_webrtc) { | 109 if (enable_webrtc) { |
114 deps += [ | 110 deps += [ |
115 "//third_party/libjingle:libpeerconnection", | 111 "//third_party/libjingle:libpeerconnection", |
116 "//third_party/webrtc/modules/desktop_capture", | 112 "//third_party/webrtc/modules/desktop_capture", |
117 ] | 113 ] |
118 | 114 |
119 sources += rebase_path( | 115 sources += rebase_path(gypi_values.remoting_cast_sources, ".", "//remoting") |
120 gypi_values.remoting_cast_sources, ".", "//remoting") | |
121 } | 116 } |
122 } | 117 } |
OLD | NEW |