Skip to content

Commit

Permalink
Merge pull request #176 from pswaminathan/ps/res-toplevel-fix
Browse files Browse the repository at this point in the history
Remove restriction in custom_res against top-level directory
  • Loading branch information
arunsampathkumar-grabtaxi authored Jun 19, 2024
2 parents 93a0875 + 4852974 commit 72a8915
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/custom_res/custom_res.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def custom_res(target, dir_name, resource_files = []):
new_root_dir = target + "_" + dir_name
fixed_resource_path = []
for old_resource_path in resource_files:
fixed_path = new_root_dir + "/" + old_resource_path.replace("/" + dir_name, "/res")
fixed_path = new_root_dir + "/" + old_resource_path.replace(dir_name + "/", "res/")
fixed_resource_path.append(fixed_path)
genrule_suffix = old_resource_path.replace("/", "_").replace(".", "_").replace("-", "_")
native.genrule(
Expand Down

0 comments on commit 72a8915

Please sign in to comment.