| 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("//extensions/features/features.gni") |
| 6 |
| 7 assert(enable_extensions, |
| 8 "Cannot depend on extensions because enable_extensions=false.") |
| 9 |
| 5 source_set("document_scan") { | 10 source_set("document_scan") { |
| 6 sources = [ | 11 sources = [ |
| 7 "document_scan_api.cc", | 12 "document_scan_api.cc", |
| 8 "document_scan_api.h", | 13 "document_scan_api.h", |
| 9 "document_scan_interface.cc", | 14 "document_scan_interface.cc", |
| 10 "document_scan_interface.h", | 15 "document_scan_interface.h", |
| 11 "document_scan_interface_chromeos.cc", | 16 "document_scan_interface_chromeos.cc", |
| 12 "document_scan_interface_chromeos.h", | 17 "document_scan_interface_chromeos.h", |
| 13 ] | 18 ] |
| 14 | 19 |
| 15 if (!is_chromeos) { | 20 if (!is_chromeos) { |
| 16 sources += [ "document_scan_interface_nonchromeos.cc" ] | 21 sources += [ "document_scan_interface_nonchromeos.cc" ] |
| 17 } | 22 } |
| 18 | 23 |
| 19 deps = [ | 24 deps = [ |
| 20 "//extensions/common/api", | 25 "//extensions/common/api", |
| 21 ] | 26 ] |
| 22 | 27 |
| 23 public_deps = [ | 28 public_deps = [ |
| 24 "//extensions/browser:browser_sources", | 29 "//extensions/browser:browser_sources", |
| 25 ] | 30 ] |
| 26 } | 31 } |
| OLD | NEW |