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("//mojo/public/tools/bindings/mojom.gni") |
| 6 |
5 static_library("content") { | 7 static_library("content") { |
6 sources = [ | 8 sources = [ |
7 "payment_request.cc", | 9 "payment_request.cc", |
8 "payment_request.h", | 10 "payment_request.h", |
9 "payment_request_dialog.h", | 11 "payment_request_dialog.h", |
10 "payment_request_spec.cc", | 12 "payment_request_spec.cc", |
11 "payment_request_spec.h", | 13 "payment_request_spec.h", |
12 "payment_request_state.cc", | 14 "payment_request_state.cc", |
13 "payment_request_state.h", | 15 "payment_request_state.h", |
14 "payment_request_web_contents_manager.cc", | 16 "payment_request_web_contents_manager.cc", |
15 "payment_request_web_contents_manager.h", | 17 "payment_request_web_contents_manager.h", |
16 "payment_response_helper.cc", | 18 "payment_response_helper.cc", |
17 "payment_response_helper.h", | 19 "payment_response_helper.h", |
18 ] | 20 ] |
19 | 21 |
20 deps = [ | 22 deps = [ |
| 23 ":mojom", |
21 ":utils", | 24 ":utils", |
22 "//components/autofill/core/browser", | 25 "//components/autofill/core/browser", |
23 "//components/payments/core", | 26 "//components/payments/core", |
24 "//components/payments/mojom", | |
25 "//content/public/browser", | 27 "//content/public/browser", |
26 "//mojo/public/cpp/bindings", | 28 "//mojo/public/cpp/bindings", |
27 "//third_party/libphonenumber", | 29 "//third_party/libphonenumber", |
28 ] | 30 ] |
29 } | 31 } |
30 | 32 |
| 33 mojom("mojom") { |
| 34 sources = [ |
| 35 "payment_request.mojom", |
| 36 ] |
| 37 } |
| 38 |
| 39 mojom("mojom_parser") { |
| 40 sources = [ |
| 41 "payment_manifest_parser.mojom", |
| 42 ] |
| 43 |
| 44 public_deps = [ |
| 45 "//url/mojo:url_mojom_gurl", |
| 46 ] |
| 47 } |
| 48 |
| 49 mojom("mojom_payment_app") { |
| 50 sources = [ |
| 51 "payment_app.mojom", |
| 52 ] |
| 53 |
| 54 public_deps = [ |
| 55 ":mojom", |
| 56 "//mojo/common:common_custom_types", |
| 57 "//url/mojo:url_mojom_gurl", |
| 58 ] |
| 59 } |
| 60 |
31 static_library("utils") { | 61 static_library("utils") { |
32 sources = [ | 62 sources = [ |
33 "payment_details_validation.cc", | 63 "payment_details_validation.cc", |
34 "payment_details_validation.h", | 64 "payment_details_validation.h", |
35 "payment_manifest_downloader.cc", | 65 "payment_manifest_downloader.cc", |
36 "payment_manifest_downloader.h", | 66 "payment_manifest_downloader.h", |
37 "payment_manifest_parser_host.cc", | 67 "payment_manifest_parser_host.cc", |
38 "payment_manifest_parser_host.h", | 68 "payment_manifest_parser_host.h", |
39 "payments_validators.cc", | 69 "payments_validators.cc", |
40 "payments_validators.h", | 70 "payments_validators.h", |
41 ] | 71 ] |
42 | 72 |
43 deps = [ | 73 deps = [ |
| 74 ":mojom", |
| 75 ":mojom_parser", |
44 "//base", | 76 "//base", |
45 "//components/autofill/core/browser", | 77 "//components/autofill/core/browser", |
46 "//components/data_use_measurement/core", | 78 "//components/data_use_measurement/core", |
47 "//components/link_header_util", | 79 "//components/link_header_util", |
48 "//components/payments/core", | 80 "//components/payments/core", |
49 "//components/payments/mojom", | |
50 "//components/payments/mojom:mojom_parser", | |
51 "//components/strings", | 81 "//components/strings", |
52 "//content/public/browser", | 82 "//content/public/browser", |
53 "//net", | 83 "//net", |
54 "//third_party/re2", | 84 "//third_party/re2", |
55 "//ui/base", | 85 "//ui/base", |
56 "//url", | 86 "//url", |
57 ] | 87 ] |
58 | 88 |
59 public_deps = [ | 89 public_deps = [ |
60 "//third_party/icu", | 90 "//third_party/icu", |
61 "//third_party/libaddressinput", | 91 "//third_party/libaddressinput", |
62 ] | 92 ] |
63 } | 93 } |
64 | 94 |
65 source_set("unit_tests") { | 95 source_set("unit_tests") { |
66 testonly = true | 96 testonly = true |
67 sources = [ | 97 sources = [ |
68 "payment_manifest_downloader_unittest.cc", | 98 "payment_manifest_downloader_unittest.cc", |
69 "payment_request_spec_unittest.cc", | 99 "payment_request_spec_unittest.cc", |
70 "payment_request_state_unittest.cc", | 100 "payment_request_state_unittest.cc", |
71 "payment_response_helper_unittest.cc", | 101 "payment_response_helper_unittest.cc", |
72 "payments_validators_unittest.cc", | 102 "payments_validators_unittest.cc", |
73 ] | 103 ] |
74 | 104 |
75 deps = [ | 105 deps = [ |
76 ":content", | 106 ":content", |
| 107 ":mojom", |
77 ":utils", | 108 ":utils", |
78 "//base", | 109 "//base", |
79 "//base/test:test_support", | 110 "//base/test:test_support", |
80 "//components/autofill/core/browser", | 111 "//components/autofill/core/browser", |
81 "//components/autofill/core/browser:test_support", | 112 "//components/autofill/core/browser:test_support", |
82 "//components/payments/core", | 113 "//components/payments/core", |
83 "//components/payments/mojom", | |
84 "//content/test:test_support", | 114 "//content/test:test_support", |
85 "//net:test_support", | 115 "//net:test_support", |
86 "//testing/gtest", | 116 "//testing/gtest", |
87 "//third_party/icu", | 117 "//third_party/icu", |
88 "//third_party/libaddressinput:test_support", | 118 "//third_party/libaddressinput:test_support", |
89 ] | 119 ] |
90 } | 120 } |
OLD | NEW |