Skip to content

Commit

Permalink
Merge pull request #1980 from brave/0.63.x_pr1979_fix-3747-build
Browse files Browse the repository at this point in the history
Fix debug build dependency resolution for md_extensions webui (uplift to 0.63.x)
  • Loading branch information
petemill authored Mar 21, 2019
2 parents 3d471fd + 0cb29ad commit 8bdbde7
Showing 1 changed file with 31 additions and 33 deletions.
64 changes: 31 additions & 33 deletions browser/resources/md_extensions/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -18,36 +18,34 @@ grit("resources") {
resource_ids = "//brave/browser/resources/resource_ids"
}

if (optimize_webui) {
group("unpak") {
deps = [
":unpak_brave_extensions_resources",
]
}

action("unpak_brave_extensions_resources") {
script = "//chrome/browser/resources/unpack_pak.py"

pak_file = "brave_extensions_resources.pak"
out_folder = "$root_gen_dir/chrome/browser/resources/md_extensions/extensions_resources.unpak"

inputs = [
"$target_gen_dir/brave_extensions_resources.pak",
]

outputs = [
"${out_folder}/brave_unpack.stamp",
]

deps = [
":resources",
]

args = [
"--out_folder",
rebase_path(out_folder, root_build_dir),
"--pak_file",
rebase_path("$target_gen_dir/${pak_file}", root_build_dir),
]
}
}
group("unpak") {
deps = [
":unpak_brave_extensions_resources",
]
}

action("unpak_brave_extensions_resources") {
script = "//chrome/browser/resources/unpack_pak.py"

pak_file = "brave_extensions_resources.pak"
out_folder = "$root_gen_dir/chrome/browser/resources/md_extensions/extensions_resources.unpak"

inputs = [
"$target_gen_dir/brave_extensions_resources.pak",
]

outputs = [
"${out_folder}/brave_unpack.stamp",
]

deps = [
":resources",
]

args = [
"--out_folder",
rebase_path(out_folder, root_build_dir),
"--pak_file",
rebase_path("$target_gen_dir/${pak_file}", root_build_dir),
]
}

0 comments on commit 8bdbde7

Please sign in to comment.