Skip to content

Commit

Permalink
Address feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon-T committed Dec 11, 2024
1 parent c730f2b commit 25c6501
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions ui/webui/resources/sources.gni
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,21 @@

brave_resources_extra_grdps_path = "$root_gen_dir/brave/ui/webui/resources"

brave_resources_extra_grdps = []
brave_resources_extra_grdps = [
"$brave_resources_extra_grdps_path/brave_static_resources.grdp",
"$root_gen_dir/brave/web-ui-leo/leo.grdp",
]

brave_resources_extra_grdps_deps = []
brave_resources_extra_grdps_deps = [ "//brave/ui/webui/resources:grdp" ]

# ios does not need any static resources
if (is_ios) {
brave_resources_extra_grdps += [
"$brave_resources_extra_grdps_path/brave_static_resources.grdp",
"$root_gen_dir/brave/web-ui-leo/leo.grdp",
]
} else {
# ios does not need font or icon resources
if (!is_ios) {
brave_resources_extra_grdps += [
"$brave_resources_extra_grdps_path/brave_fonts_resources.grdp",
"$brave_resources_extra_grdps_path/brave_static_resources.grdp",
"$brave_resources_extra_grdps_path/brave_icons_resources.grdp",
"$root_gen_dir/brave/web-ui-leo/leo.grdp",
]
}

brave_resources_extra_grdps_deps += [ "//brave/ui/webui/resources:grdp" ]

# At the moment, all non-static resources are only required for polymer WebUI.
# This could change and, when it does, the `include_polymer` conditional can be removed
# here and the one in //brave/ui/webui/resources/BUILD.gn be relied on to only add
Expand Down

0 comments on commit 25c6501

Please sign in to comment.