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