Skip to content

Commit

Permalink
Move from components/leo to ui/webui/resources
Browse files Browse the repository at this point in the history
  • Loading branch information
fallaciousreasoning committed May 21, 2023
1 parent d74e375 commit 3576baa
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 22 deletions.
18 changes: 0 additions & 18 deletions components/leo/BUILD.gn

This file was deleted.

14 changes: 14 additions & 0 deletions ui/webui/resources/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at https://mozilla.org/MPL/2.0/.

import("//brave/components/common/typescript.gni")
import("//tools/grit/preprocess_if_expr.gni")
import("//tools/polymer/css_to_wrapper.gni")
import("//tools/polymer/html_to_wrapper.gni")
Expand All @@ -24,6 +25,7 @@ group("grdp") {
public_deps = [
":fonts_grdp",
":icons_grdp",
":leo_web_components",
":static_grdp",
]
if (include_polymer) {
Expand Down Expand Up @@ -89,6 +91,18 @@ if (include_polymer) {
]
}

transpile_web_ui("leo_web_components") {
generate_grdp = true
resource_path_prefix = "brave"

entry_points = [ [
"leo",
rebase_path("leo/web_components.ts"),
] ]

resource_name = "leo"
}

# Create a grdp that //ui/webui/resources can include in its main resources GRD
generate_grd("static_grdp") {
grd_prefix = "brave_webui"
Expand Down
File renamed without changes.
5 changes: 1 addition & 4 deletions ui/webui/resources/sources.gni
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@ if (!is_ios) {
"$brave_resources_extra_grdps_path/brave_icons_resources.grdp",
"$root_gen_dir/brave/web-ui-leo/leo.grdp",
]
brave_resources_extra_grdps_deps += [
"//brave/components/leo",
"//brave/ui/webui/resources:grdp",
]
brave_resources_extra_grdps_deps += [ "//brave/ui/webui/resources:grdp" ]
}

# At the moment, all non-static resources are only required for polymer WebUI.
Expand Down

0 comments on commit 3576baa

Please sign in to comment.