Chromium Code Reviews| Index: Source/web/BUILD.gn |
| diff --git a/Source/web/BUILD.gn b/Source/web/BUILD.gn |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..e9a825771fd6ed41308494f70b0fdf2365322886 |
| --- /dev/null |
| +++ b/Source/web/BUILD.gn |
| @@ -0,0 +1,104 @@ |
| +# Copyright 2014 The Chromium Authors. All rights reserved. |
| +# Use of this source code is governed by a BSD-style license that can be |
| +# found in the LICENSE file. |
| + |
| + |
| +import("//build/config/ui.gni") |
| +import("//third_party/WebKit/Source/config.gni") |
| + |
| +web_gypi = exec_script( |
| + "//build/gypi_to_gn.py", |
| + [ rebase_path("web.gypi") ], |
| + "scope", |
| + [ "web.gypi" ]) |
| + |
| +component("web") { |
| + output_name = "blink_web" |
| + |
| + deps = [ |
| + ":calendar_picker", |
| + ":picker_common", |
| + ":color_suggestion_picker", |
| + "//third_party/WebKit/Source/core", |
| + "//third_party/WebKit/Source/platform", |
| +#"//third_party/WebKit/Source/modules", |
|
brettw
2014/06/17 16:50:39
It's not clear why this is commented out.
|
| + "//skia", |
| + "//third_party/icu", |
| + "//v8", |
| + "//third_party/angle:translator", |
| + ] |
| + |
| + include_dirs = [ |
| +# '<(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
|
| + "//third_party/skia/include/utils", |
| + ] |
| + |
| + configs -= [ "//build/config/compiler:chromium_code" ] |
| + configs += [ |
| + "//build/config/compiler:no_chromium_code", |
| + "//third_party/WebKit/Source:config", |
| + "//third_party/WebKit/Source:non_test_config", |
| + ] |
| + |
| + defines = [ |
|
brettw
2014/06/17 16:50:39
Instead add "//third_party/WebKit/Source:inside_bl
|
| + "BLINK_IMPLEMENTATION=1", |
| + "INSIDE_BLINK", |
| + ] |
| + |
| + sources = web_gypi.web_files |
| +} |
| + |
| +template("make_file_arrays") { |
| + assert(defined(invoker.resources), "Need resources in %target_name") |
| + assert(defined(invoker.filename), "Need filename in %target_name") |
| + |
| + code_gen_target_name = target_name + "_code_gen" |
| + |
| + action(code_gen_target_name) { |
| + source_prereqs = invoker.resources |
| + script = "//third_party/WebKit/Source/build/scripts/make-file-arrays.py" |
| + sources = [ script ] |
| + sources += invoker.resources |
| + outputs = [ |
| + "$root_gen_dir/blink/" + invoker.filename + ".h", |
| + "$root_gen_dir/blink/" + invoker.filename + ".cpp", |
| + ] |
| + args = [ |
| + "--out-h=gen/blink/" + invoker.filename + ".h", |
| + "--out-cpp=gen/blink/" + invoker.filename + ".cpp", |
| + ] |
| + args += rebase_path(invoker.resources, root_build_dir, ".") |
| + } |
| + |
| + source_set(target_name) { |
| + sources = get_target_outputs(":$code_gen_target_name") |
| + deps = [ ":$code_gen_target_name" ] |
| + } |
| +} |
| + |
| +make_file_arrays("picker_common") { |
| + resources = [ |
| + "resources/pickerCommon.css", |
| + "resources/pickerCommon.js", |
| + ] |
| + filename = "PickerCommon" |
| +} |
| + |
| +make_file_arrays("color_suggestion_picker") { |
| + resources = [ |
| + "resources/colorSuggestionPicker.css", |
| + "resources/colorSuggestionPicker.js", |
| + ] |
| + filename = "ColorSuggestionPicker" |
| +} |
| + |
| +make_file_arrays("calendar_picker") { |
| + resources = [ |
| + "resources/calendarPicker.css", |
| + "resources/calendarPicker.js", |
| + "resources/pickerButton.css", |
| + "resources/suggestionPicker.css", |
| + "resources/suggestionPicker.js", |
| + ] |
| + filename = "CalendarPicker.h" |
| +} |