| OLD | NEW |
| 1 # Copyright 2017 The Chromium Authors. All rights reserved. | 1 # Copyright 2017 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("//services/service_manager/public/cpp/service.gni") | 5 import("//services/service_manager/public/cpp/service.gni") |
| 6 import("//services/service_manager/public/service_manifest.gni") | 6 import("//services/service_manager/public/service_manifest.gni") |
| 7 import("//testing/test.gni") | 7 import("//testing/test.gni") |
| 8 | 8 |
| 9 source_set("lib") { | 9 source_set("lib") { |
| 10 sources = [ | 10 sources = [ |
| 11 "barcode_detection_impl.h", | 11 "barcode_detection_impl.h", |
| 12 "face_detection_provider_impl.h", | 12 "face_detection_provider_impl.h", |
| 13 "shape_detection_service.cc", | 13 "shape_detection_service.cc", |
| 14 "shape_detection_service.h", | 14 "shape_detection_service.h", |
| 15 "text_detection_impl.h", |
| 15 ] | 16 ] |
| 16 | 17 |
| 17 if (is_mac) { | 18 if (is_mac) { |
| 18 sources += [ | 19 sources += [ |
| 19 "barcode_detection_impl_mac.h", | 20 "barcode_detection_impl_mac.h", |
| 20 "barcode_detection_impl_mac.mm", | 21 "barcode_detection_impl_mac.mm", |
| 21 "detection_utils_mac.h", | 22 "detection_utils_mac.h", |
| 22 "detection_utils_mac.mm", | 23 "detection_utils_mac.mm", |
| 23 "face_detection_impl_mac.h", | 24 "face_detection_impl_mac.h", |
| 24 "face_detection_impl_mac.mm", | 25 "face_detection_impl_mac.mm", |
| 26 "text_detection_impl_mac.h", |
| 27 "text_detection_impl_mac.mm", |
| 25 ] | 28 ] |
| 26 libs = [ "QuartzCore.framework" ] | 29 libs = [ "QuartzCore.framework" ] |
| 27 } else { | 30 } else { |
| 28 sources += [ | 31 sources += [ |
| 29 "barcode_detection_impl.cc", | 32 "barcode_detection_impl.cc", |
| 30 "face_detection_provider_impl.cc", | 33 "face_detection_provider_impl.cc", |
| 34 "text_detection_impl.cc", |
| 31 ] | 35 ] |
| 32 } | 36 } |
| 33 | 37 |
| 34 deps = [ | 38 deps = [ |
| 35 "//mojo/public/cpp/bindings", | 39 "//mojo/public/cpp/bindings", |
| 36 "//ui/gfx", | 40 "//ui/gfx", |
| 37 "//ui/gfx/geometry", | 41 "//ui/gfx/geometry", |
| 38 ] | 42 ] |
| 39 | 43 |
| 40 public_deps = [ | 44 public_deps = [ |
| 41 "//base", | 45 "//base", |
| 42 "//media/capture", | 46 "//media/capture", |
| 43 "//services/service_manager/public/cpp", | 47 "//services/service_manager/public/cpp", |
| 44 "//services/shape_detection/public/interfaces", | 48 "//services/shape_detection/public/interfaces", |
| 45 ] | 49 ] |
| 46 } | 50 } |
| 47 | 51 |
| 48 service_manifest("manifest") { | 52 service_manifest("manifest") { |
| 49 name = "shape_detection" | 53 name = "shape_detection" |
| 50 source = "manifest.json" | 54 source = "manifest.json" |
| 51 } | 55 } |
| 52 | 56 |
| 53 source_set("tests") { | 57 source_set("tests") { |
| 54 testonly = true | 58 testonly = true |
| 55 sources = [] | 59 sources = [] |
| 56 if (is_mac) { | 60 if (is_mac) { |
| 57 sources += [ | 61 sources += [ |
| 58 "barcode_detection_impl_mac_unittest.mm", | 62 "barcode_detection_impl_mac_unittest.mm", |
| 59 "face_detection_impl_mac_unittest.mm", | 63 "face_detection_impl_mac_unittest.mm", |
| 64 "text_detection_impl_mac_unittest.mm", |
| 60 ] | 65 ] |
| 61 | 66 |
| 62 libs = [ | 67 libs = [ |
| 63 "CoreFoundation.framework", | 68 "CoreFoundation.framework", |
| 64 "CoreGraphics.framework", | 69 "CoreGraphics.framework", |
| 65 "QuartzCore.framework", | 70 "QuartzCore.framework", |
| 66 ] | 71 ] |
| 67 | 72 |
| 68 deps = [ | 73 deps = [ |
| 69 ":lib", | 74 ":lib", |
| 70 "//base", | 75 "//base", |
| 71 "//skia", | 76 "//skia", |
| 72 "//testing/gmock", | 77 "//testing/gmock", |
| 73 "//testing/gtest", | 78 "//testing/gtest", |
| 74 "//ui/gfx", | 79 "//ui/gfx", |
| 75 "//ui/gl", | 80 "//ui/gl", |
| 76 ] | 81 ] |
| 77 } | 82 } |
| 78 } | 83 } |
| OLD | NEW |