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 copy("copy_blink_resources") { | |
jamesr
2015/01/09 19:11:49
why do you need this copy?
| |
9 sources = [ | |
10 "$root_out_dir/gen/blink/public/resources/blink_resources.pak", | |
11 ] | |
12 outputs = [ | |
13 "$root_out_dir/blink_resources.pak", | |
14 ] | |
15 public_deps = [ | |
16 "//third_party/WebKit/public:resources", | |
17 ] | |
18 } | |
19 | |
20 action("generate_blink_resource_map") { | |
21 script = "//mojo/services/html_viewer/generate_blink_resource_map.py" | |
22 args = [ | |
23 "--pak-file", | |
24 rebase_path("$root_out_dir/blink_resources.pak"), | |
jamesr
2015/01/09 19:11:49
can't you just point this at the existing blink_re
| |
25 "--header", | |
26 rebase_path("$target_gen_dir/blink_resource_map.h"), | |
27 "--cpp", | |
28 rebase_path("$target_gen_dir/blink_resource_map.cc"), | |
29 ] | |
30 outputs = [ | |
31 "$target_gen_dir/blink_resource_map.cc", | |
32 "$target_gen_dir/blink_resource_map.h", | |
33 ] | |
34 public_deps = [ | |
35 ":copy_blink_resources", | |
36 ] | |
37 } | |
38 | |
8 source_set("lib") { | 39 source_set("lib") { |
9 sources = [ | 40 sources = [ |
41 "$target_gen_dir/blink_resource_map.cc", | |
42 "$target_gen_dir/blink_resource_map.h", | |
10 "ax_provider_impl.cc", | 43 "ax_provider_impl.cc", |
11 "ax_provider_impl.h", | 44 "ax_provider_impl.h", |
12 "blink_basic_type_converters.cc", | 45 "blink_basic_type_converters.cc", |
13 "blink_basic_type_converters.h", | 46 "blink_basic_type_converters.h", |
14 "blink_input_events_type_converters.cc", | 47 "blink_input_events_type_converters.cc", |
15 "blink_input_events_type_converters.h", | 48 "blink_input_events_type_converters.h", |
16 "blink_platform_impl.cc", | 49 "blink_platform_impl.cc", |
17 "blink_platform_impl.h", | 50 "blink_platform_impl.h", |
18 "blink_url_request_type_converters.cc", | 51 "blink_url_request_type_converters.cc", |
19 "blink_url_request_type_converters.h", | 52 "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", | 107 "//mojo/services/surfaces/public/interfaces", |
75 "//net", | 108 "//net", |
76 "//skia", | 109 "//skia", |
77 "//ui/native_theme", | 110 "//ui/native_theme", |
78 "//url", | 111 "//url", |
79 ] | 112 ] |
80 | 113 |
81 public_deps = [ | 114 public_deps = [ |
82 "//mojo/public/cpp/bindings", | 115 "//mojo/public/cpp/bindings", |
83 "//third_party/WebKit/public:blink", | 116 "//third_party/WebKit/public:blink", |
117 ":generate_blink_resource_map", | |
84 ] | 118 ] |
85 } | 119 } |
86 | 120 |
87 mojo_native_application("html_viewer") { | 121 mojo_native_application("html_viewer") { |
88 sources = [ | 122 sources = [ |
89 "html_viewer.cc", | 123 "html_viewer.cc", |
90 ] | 124 ] |
91 deps = [ | 125 deps = [ |
92 ":lib", | 126 ":lib", |
93 ] | 127 ] |
94 } | 128 } |
95 | 129 |
96 test("tests") { | 130 test("tests") { |
97 output_name = "html_viewer_unittests" | 131 output_name = "html_viewer_unittests" |
98 sources = [ | 132 sources = [ |
99 "ax_provider_impl_unittest.cc", | 133 "ax_provider_impl_unittest.cc", |
100 ] | 134 ] |
101 deps = [ | 135 deps = [ |
102 ":lib", | 136 ":lib", |
103 "//base/test:run_all_unittests", | 137 "//base/test:run_all_unittests", |
104 ] | 138 ] |
105 } | 139 } |
OLD | NEW |