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("//mojo/public/mojo.gni") | 5 import("//mojo/public/mojo.gni") |
6 import("//mojo/public/mojo_application.gni") | 6 import("//mojo/public/mojo_application.gni") |
7 | 7 |
| 8 action("generate_blink_resource_map") { |
| 9 script = "//mojo/services/html_viewer/generate_blink_resource_map.py" |
| 10 args = [ |
| 11 "--pak-file", |
| 12 rebase_path("$root_out_dir/gen/blink/public/resources/blink_resources.pak"), |
| 13 "--header", |
| 14 rebase_path("$target_gen_dir/blink_resource_map.h"), |
| 15 "--cpp", |
| 16 rebase_path("$target_gen_dir/blink_resource_map.cc"), |
| 17 ] |
| 18 outputs = [ |
| 19 "$target_gen_dir/blink_resource_map.cc", |
| 20 "$target_gen_dir/blink_resource_map.h", |
| 21 ] |
| 22 public_deps = [ |
| 23 "//third_party/WebKit/public:resources", |
| 24 ] |
| 25 } |
| 26 |
8 source_set("lib") { | 27 source_set("lib") { |
9 sources = [ | 28 sources = [ |
| 29 "$target_gen_dir/blink_resource_map.cc", |
| 30 "$target_gen_dir/blink_resource_map.h", |
10 "ax_provider_impl.cc", | 31 "ax_provider_impl.cc", |
11 "ax_provider_impl.h", | 32 "ax_provider_impl.h", |
12 "blink_basic_type_converters.cc", | 33 "blink_basic_type_converters.cc", |
13 "blink_basic_type_converters.h", | 34 "blink_basic_type_converters.h", |
14 "blink_input_events_type_converters.cc", | 35 "blink_input_events_type_converters.cc", |
15 "blink_input_events_type_converters.h", | 36 "blink_input_events_type_converters.h", |
16 "blink_platform_impl.cc", | 37 "blink_platform_impl.cc", |
17 "blink_platform_impl.h", | 38 "blink_platform_impl.h", |
| 39 "blink_resource_constants.h", |
18 "blink_url_request_type_converters.cc", | 40 "blink_url_request_type_converters.cc", |
19 "blink_url_request_type_converters.h", | 41 "blink_url_request_type_converters.h", |
20 "html_document.cc", | 42 "html_document.cc", |
21 "html_document.h", | 43 "html_document.h", |
22 "mojo_blink_platform_impl.cc", | 44 "mojo_blink_platform_impl.cc", |
23 "mojo_blink_platform_impl.h", | 45 "mojo_blink_platform_impl.h", |
24 "webclipboard_impl.cc", | 46 "webclipboard_impl.cc", |
25 "webclipboard_impl.h", | 47 "webclipboard_impl.h", |
26 "webcookiejar_impl.cc", | 48 "webcookiejar_impl.cc", |
27 "webcookiejar_impl.h", | 49 "webcookiejar_impl.h", |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 "//mojo/services/surfaces/public/interfaces", | 96 "//mojo/services/surfaces/public/interfaces", |
75 "//net", | 97 "//net", |
76 "//skia", | 98 "//skia", |
77 "//ui/native_theme", | 99 "//ui/native_theme", |
78 "//url", | 100 "//url", |
79 ] | 101 ] |
80 | 102 |
81 public_deps = [ | 103 public_deps = [ |
82 "//mojo/public/cpp/bindings", | 104 "//mojo/public/cpp/bindings", |
83 "//third_party/WebKit/public:blink", | 105 "//third_party/WebKit/public:blink", |
| 106 ":generate_blink_resource_map", |
84 ] | 107 ] |
85 } | 108 } |
86 | 109 |
87 mojo_native_application("html_viewer") { | 110 mojo_native_application("html_viewer") { |
88 sources = [ | 111 sources = [ |
89 "html_viewer.cc", | 112 "html_viewer.cc", |
90 ] | 113 ] |
91 deps = [ | 114 deps = [ |
92 ":lib", | 115 ":lib", |
93 ] | 116 ] |
94 } | 117 } |
95 | 118 |
96 test("tests") { | 119 test("tests") { |
97 output_name = "html_viewer_unittests" | 120 output_name = "html_viewer_unittests" |
98 sources = [ | 121 sources = [ |
99 "ax_provider_impl_unittest.cc", | 122 "ax_provider_impl_unittest.cc", |
100 ] | 123 ] |
101 deps = [ | 124 deps = [ |
102 ":lib", | 125 ":lib", |
103 "//base/test:run_all_unittests", | 126 "//base/test:run_all_unittests", |
104 ] | 127 ] |
105 } | 128 } |
OLD | NEW |