OLD | NEW |
---|---|
(Empty) | |
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 | |
3 # found in the LICENSE file. | |
4 | |
5 | |
6 import("//build/config/ui.gni") | |
7 import("//third_party/WebKit/Source/config.gni") | |
8 | |
9 web_gypi = exec_script( | |
10 "//build/gypi_to_gn.py", | |
11 [ rebase_path("web.gypi") ], | |
12 "scope", | |
13 [ "web.gypi" ]) | |
14 | |
15 component("web") { | |
16 output_name = "blink_web" | |
17 | |
18 deps = [ | |
19 ":calendar_picker", | |
20 ":picker_common", | |
21 ":color_suggestion_picker", | |
22 "//third_party/WebKit/Source/core", | |
23 "//third_party/WebKit/Source/platform", | |
24 #"//third_party/WebKit/Source/modules", | |
brettw
2014/06/17 16:50:39
It's not clear why this is commented out.
| |
25 "//skia", | |
26 "//third_party/icu", | |
27 "//v8", | |
28 "//third_party/angle:translator", | |
29 ] | |
30 | |
31 include_dirs = [ | |
32 # '<(angle_path)/include', | |
brettw
2014/06/17 16:50:39
You can just write //third_party/angle/include her
jamesr
2014/06/17 17:56:11
I can't find anything that needs this, so deleting
| |
33 "//third_party/skia/include/utils", | |
34 ] | |
35 | |
36 configs -= [ "//build/config/compiler:chromium_code" ] | |
37 configs += [ | |
38 "//build/config/compiler:no_chromium_code", | |
39 "//third_party/WebKit/Source:config", | |
40 "//third_party/WebKit/Source:non_test_config", | |
41 ] | |
42 | |
43 defines = [ | |
brettw
2014/06/17 16:50:39
Instead add "//third_party/WebKit/Source:inside_bl
| |
44 "BLINK_IMPLEMENTATION=1", | |
45 "INSIDE_BLINK", | |
46 ] | |
47 | |
48 sources = web_gypi.web_files | |
49 } | |
50 | |
51 template("make_file_arrays") { | |
52 assert(defined(invoker.resources), "Need resources in %target_name") | |
53 assert(defined(invoker.filename), "Need filename in %target_name") | |
54 | |
55 code_gen_target_name = target_name + "_code_gen" | |
56 | |
57 action(code_gen_target_name) { | |
58 source_prereqs = invoker.resources | |
59 script = "//third_party/WebKit/Source/build/scripts/make-file-arrays.py" | |
60 sources = [ script ] | |
61 sources += invoker.resources | |
62 outputs = [ | |
63 "$root_gen_dir/blink/" + invoker.filename + ".h", | |
64 "$root_gen_dir/blink/" + invoker.filename + ".cpp", | |
65 ] | |
66 args = [ | |
67 "--out-h=gen/blink/" + invoker.filename + ".h", | |
68 "--out-cpp=gen/blink/" + invoker.filename + ".cpp", | |
69 ] | |
70 args += rebase_path(invoker.resources, root_build_dir, ".") | |
71 } | |
72 | |
73 source_set(target_name) { | |
74 sources = get_target_outputs(":$code_gen_target_name") | |
75 deps = [ ":$code_gen_target_name" ] | |
76 } | |
77 } | |
78 | |
79 make_file_arrays("picker_common") { | |
80 resources = [ | |
81 "resources/pickerCommon.css", | |
82 "resources/pickerCommon.js", | |
83 ] | |
84 filename = "PickerCommon" | |
85 } | |
86 | |
87 make_file_arrays("color_suggestion_picker") { | |
88 resources = [ | |
89 "resources/colorSuggestionPicker.css", | |
90 "resources/colorSuggestionPicker.js", | |
91 ] | |
92 filename = "ColorSuggestionPicker" | |
93 } | |
94 | |
95 make_file_arrays("calendar_picker") { | |
96 resources = [ | |
97 "resources/calendarPicker.css", | |
98 "resources/calendarPicker.js", | |
99 "resources/pickerButton.css", | |
100 "resources/suggestionPicker.css", | |
101 "resources/suggestionPicker.js", | |
102 ] | |
103 filename = "CalendarPicker.h" | |
104 } | |
OLD | NEW |