• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
5import("//build/config/ui.gni")
6import("//third_party/WebKit/Source/config.gni")
7import("//third_party/WebKit/Source/build/make_file_arrays.gni")
8
9visibility = "//third_party/WebKit/*"
10
11web_gypi = exec_script(
12    "//build/gypi_to_gn.py",
13    [ rebase_path("web.gypi") ],
14    "scope",
15    [ "web.gypi" ])
16
17component("web") {
18  output_name = "blink_web"
19
20  deps = [
21    ":calendar_picker",
22    ":picker_common",
23    ":color_suggestion_picker",
24    "//third_party/WebKit/Source/core",
25    "//third_party/WebKit/Source/modules",
26    "//third_party/WebKit/Source/platform",
27    "//skia",
28    "//third_party/icu",
29    "//v8",
30    "//third_party/angle:translator",
31  ]
32
33  include_dirs = [
34    "//third_party/skia/include/utils",
35  ]
36
37  configs -= [ "//build/config/compiler:chromium_code" ]
38  configs += [
39    "//build/config/compiler:no_chromium_code",
40    "//third_party/WebKit/Source:config",
41    "//third_party/WebKit/Source:inside_blink",
42    "//third_party/WebKit/Source:non_test_config",
43  ]
44
45  sources = web_gypi.web_files
46}
47
48make_file_arrays("picker_common") {
49  resources = [
50    "resources/pickerCommon.css",
51    "resources/pickerCommon.js",
52  ]
53  filename = "PickerCommon"
54}
55
56make_file_arrays("color_suggestion_picker") {
57  resources = [
58    "resources/colorSuggestionPicker.css",
59    "resources/colorSuggestionPicker.js",
60  ]
61  filename = "ColorSuggestionPicker"
62}
63
64make_file_arrays("calendar_picker") {
65  resources = [
66    "resources/calendarPicker.css",
67    "resources/calendarPicker.js",
68    "resources/pickerButton.css",
69    "resources/suggestionPicker.css",
70    "resources/suggestionPicker.js",
71  ]
72  filename = "CalendarPicker"
73}
74