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", |
18 "blink_url_request_type_converters.cc", | 39 "blink_url_request_type_converters.cc", |
19 "blink_url_request_type_converters.h", | 40 "blink_url_request_type_converters.h", |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 "//mojo/services/surfaces/public/interfaces", | 95 "//mojo/services/surfaces/public/interfaces", |
75 "//net", | 96 "//net", |
76 "//skia", | 97 "//skia", |
77 "//ui/native_theme", | 98 "//ui/native_theme", |
78 "//url", | 99 "//url", |
79 ] | 100 ] |
80 | 101 |
81 public_deps = [ | 102 public_deps = [ |
82 "//mojo/public/cpp/bindings", | 103 "//mojo/public/cpp/bindings", |
83 "//third_party/WebKit/public:blink", | 104 "//third_party/WebKit/public:blink", |
| 105 ":generate_blink_resource_map", |
84 ] | 106 ] |
85 } | 107 } |
86 | 108 |
87 mojo_native_application("html_viewer") { | 109 mojo_native_application("html_viewer") { |
88 sources = [ | 110 sources = [ |
89 "html_viewer.cc", | 111 "html_viewer.cc", |
90 ] | 112 ] |
91 deps = [ | 113 deps = [ |
92 ":lib", | 114 ":lib", |
93 ] | 115 ] |
94 } | 116 } |
95 | 117 |
96 test("tests") { | 118 test("tests") { |
97 output_name = "html_viewer_unittests" | 119 output_name = "html_viewer_unittests" |
98 sources = [ | 120 sources = [ |
99 "ax_provider_impl_unittest.cc", | 121 "ax_provider_impl_unittest.cc", |
100 ] | 122 ] |
101 deps = [ | 123 deps = [ |
102 ":lib", | 124 ":lib", |
103 "//base/test:run_all_unittests", | 125 "//base/test:run_all_unittests", |
104 ] | 126 ] |
105 } | 127 } |
OLD | NEW |