| 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 |
| 11 gypi_values = | 11 gypi_values = |
| 12 exec_script("//build/gypi_to_gn.py", | 12 exec_script("//build/gypi_to_gn.py", |
| 13 [ rebase_path("../../chrome_browser_extensions.gypi") ], | 13 [ rebase_path("../../chrome_browser_extensions.gypi") ], |
| 14 "scope", | 14 "scope", |
| 15 [ "../../chrome_browser_extensions.gypi" ]) | 15 [ "../../chrome_browser_extensions.gypi" ]) |
| 16 | 16 |
| 17 # GYP version: chrome/chrome_browser_extensions.gypi:browser_extensions | 17 # GYP version: chrome/chrome_browser_extensions.gypi:browser_extensions |
| 18 static_library("extensions") { | 18 source_set("extensions") { |
| 19 sources = [] | 19 sources = [] |
| 20 sources += rebase_path(gypi_values.chrome_browser_extensions_enabled_sources, | 20 sources += rebase_path(gypi_values.chrome_browser_extensions_enabled_sources, |
| 21 ".", | 21 ".", |
| 22 "//chrome") | 22 "//chrome") |
| 23 | 23 |
| 24 defines = [] | 24 defines = [] |
| 25 | 25 |
| 26 # Since browser and browser_extensions actually depend on each other, | 26 # Since browser and browser_extensions actually depend on each other, |
| 27 # we must omit the dependency from browser_extensions to browser. | 27 # we must omit the dependency from browser_extensions to browser. |
| 28 # However, this means browser_extensions and browser should more or less | 28 # However, this means browser_extensions and browser should more or less |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 gypi_values.chrome_browser_extensions_networking_private_sources_win
mac, | 174 gypi_values.chrome_browser_extensions_networking_private_sources_win
mac, |
| 175 ".", | 175 ".", |
| 176 "//chrome") | 176 "//chrome") |
| 177 } | 177 } |
| 178 | 178 |
| 179 if (is_win) { | 179 if (is_win) { |
| 180 deps += [ | 180 deps += [ |
| 181 "//third_party/iaccessible2", | 181 "//third_party/iaccessible2", |
| 182 "//third_party/isimpledom", | 182 "//third_party/isimpledom", |
| 183 ] | 183 ] |
| 184 } else if (!is_chromeos) { | 184 } else if (use_aura && !is_chromeos) { |
| 185 sources += [ | 185 sources += [ |
| 186 "display_info_provider_aura.cc", | 186 "display_info_provider_aura.cc", |
| 187 "display_info_provider_aura.h", | 187 "display_info_provider_aura.h", |
| 188 ] | 188 ] |
| 189 } | 189 } |
| 190 | 190 |
| 191 if (enable_app_list) { | 191 if (enable_app_list) { |
| 192 sources += | 192 sources += |
| 193 rebase_path(gypi_values.chrome_browser_extensions_app_list_sources, | 193 rebase_path(gypi_values.chrome_browser_extensions_app_list_sources, |
| 194 ".", | 194 ".", |
| 195 "//chrome") | 195 "//chrome") |
| 196 } | 196 } |
| 197 | 197 |
| 198 if (is_chromeos && use_ozone) { | 198 if (is_chromeos && use_ozone) { |
| 199 sources -= [ "global_shortcut_listener_chromeos.cc" ] | 199 sources -= [ "global_shortcut_listener_chromeos.cc" ] |
| 200 } | 200 } |
| 201 if (!use_ozone) { | 201 if (!use_ozone) { |
| 202 sources -= [ "global_shortcut_listener_ozone.cc" ] | 202 sources -= [ "global_shortcut_listener_ozone.cc" ] |
| 203 } | 203 } |
| 204 if (enable_media_router) { | 204 if (enable_media_router) { |
| 205 defines += [ "ENABLE_MEDIA_ROUTER=1" ] | 205 defines += [ "ENABLE_MEDIA_ROUTER=1" ] |
| 206 } | 206 } |
| 207 } | 207 } |
| OLD | NEW |