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/crypto.gni") | 5 import("//build/config/crypto.gni") |
6 import("//build/config/features.gni") | 6 import("//build/config/features.gni") |
7 import("//build/config/ui.gni") | 7 import("//build/config/ui.gni") |
8 | 8 |
9 assert(enable_extensions) | 9 assert(enable_extensions) |
10 | 10 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 "//ui/base", | 78 "//ui/base", |
79 "//ui/base/ime", | 79 "//ui/base/ime", |
80 "//ui/gfx", | 80 "//ui/gfx", |
81 "//ui/gfx/geometry", | 81 "//ui/gfx/geometry", |
82 "//ui/resources", | 82 "//ui/resources", |
83 "//ui/strings", | 83 "//ui/strings", |
84 "//url", | 84 "//url", |
85 "//storage/browser", | 85 "//storage/browser", |
86 ] | 86 ] |
87 | 87 |
88 if (is_chromeos) { | 88 if (use_cros_fe) { |
89 sources += | 89 sources += |
90 rebase_path(gypi_values.chrome_browser_extensions_chromeos_sources, | 90 rebase_path(gypi_values.chrome_browser_extensions_chromeos_sources, |
91 ".", | 91 ".", |
92 "//chrome") | 92 "//chrome") |
93 sources -= [ "api/music_manager_private/device_id_linux.cc" ] | 93 sources -= [ "api/music_manager_private/device_id_linux.cc" ] |
94 configs += [ "//build/config/linux:dbus" ] | 94 configs += [ "//build/config/linux:dbus" ] |
95 deps += [ | 95 deps += [ |
96 "//third_party/libevent", | 96 "//third_party/libevent", |
97 "//third_party/protobuf:protobuf_lite", | 97 "//third_party/protobuf:protobuf_lite", |
98 "//chromeos/ime:gencode", | 98 "//chromeos/ime:gencode", |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 if (use_brlapi) { | 162 if (use_brlapi) { |
163 deps += [ "//build/config/linux:libbrlapi" ] | 163 deps += [ "//build/config/linux:libbrlapi" ] |
164 sources += rebase_path(gypi_values.chrome_browser_extensions_brlapi_sources, | 164 sources += rebase_path(gypi_values.chrome_browser_extensions_brlapi_sources, |
165 ".", | 165 ".", |
166 "//chrome") | 166 "//chrome") |
167 } else { | 167 } else { |
168 sources += [ "api/braille_display_private/braille_controller_stub.cc" ] | 168 sources += [ "api/braille_display_private/braille_controller_stub.cc" ] |
169 } | 169 } |
170 | 170 |
171 # chromeos uses its own global_shortcut_listener, _x11 is not necessary. | 171 # chromeos uses its own global_shortcut_listener, _x11 is not necessary. |
172 if (is_chromeos || !use_x11) { | 172 if (use_cros_fe || !use_x11) { |
173 sources -= [ | 173 sources -= [ |
174 "global_shortcut_listener_x11.cc", | 174 "global_shortcut_listener_x11.cc", |
175 "global_shortcut_listener_x11.h", | 175 "global_shortcut_listener_x11.h", |
176 ] | 176 ] |
177 } | 177 } |
178 | 178 |
179 if (is_win || is_mac) { | 179 if (is_win || is_mac) { |
180 deps += [ "//components/wifi" ] | 180 deps += [ "//components/wifi" ] |
181 sources += rebase_path( | 181 sources += rebase_path( |
182 gypi_values.chrome_browser_extensions_networking_private_sources_win
mac, | 182 gypi_values.chrome_browser_extensions_networking_private_sources_win
mac, |
183 ".", | 183 ".", |
184 "//chrome") | 184 "//chrome") |
185 } | 185 } |
186 | 186 |
187 if (is_win) { | 187 if (is_win) { |
188 deps += [ | 188 deps += [ |
189 "//third_party/iaccessible2", | 189 "//third_party/iaccessible2", |
190 "//third_party/isimpledom", | 190 "//third_party/isimpledom", |
191 ] | 191 ] |
192 } else if (use_aura && !is_chromeos) { | 192 } else if (use_aura && !use_cros_fe) { |
193 sources += [ | 193 sources += [ |
194 "display_info_provider_aura.cc", | 194 "display_info_provider_aura.cc", |
195 "display_info_provider_aura.h", | 195 "display_info_provider_aura.h", |
196 ] | 196 ] |
197 } | 197 } |
198 | 198 |
199 if (enable_app_list) { | 199 if (enable_app_list) { |
200 sources += | 200 sources += |
201 rebase_path(gypi_values.chrome_browser_extensions_app_list_sources, | 201 rebase_path(gypi_values.chrome_browser_extensions_app_list_sources, |
202 ".", | 202 ".", |
203 "//chrome") | 203 "//chrome") |
204 } | 204 } |
205 | 205 |
206 if (is_chromeos && use_ozone) { | 206 if (use_cros_fe && use_ozone) { |
207 sources -= [ "global_shortcut_listener_chromeos.cc" ] | 207 sources -= [ "global_shortcut_listener_chromeos.cc" ] |
208 } | 208 } |
209 if (!use_ozone) { | 209 if (!use_ozone) { |
210 sources -= [ "global_shortcut_listener_ozone.cc" ] | 210 sources -= [ "global_shortcut_listener_ozone.cc" ] |
211 } | 211 } |
212 } | 212 } |
OLD | NEW |