Mercurial
comparison gui_ze/gui_ze.bzl @ 128:7eb79fd91c7e
[Misc] Fixed all bazel targets. I should creat a separate scripts for these lol.
| author | June Park <parkjune1995@gmail.com> |
|---|---|
| date | Thu, 08 Jan 2026 19:20:56 -0800 |
| parents | a30944e5719e |
| children | bdcc610eeed8 |
comparison
equal
deleted
inserted
replaced
| 127:9af248484ba2 | 128:7eb79fd91c7e |
|---|---|
| 30 | 30 |
| 31 start = 0 | 31 start = 0 |
| 32 for directory in f.path.split("/"): | 32 for directory in f.path.split("/"): |
| 33 if directory == binary.short_path.split("/")[0]: | 33 if directory == binary.short_path.split("/")[0]: |
| 34 break | 34 break |
| 35 print("\n\n equals: ", directory, binary.short_path.split("/")[0]); | |
| 36 start += 1 | 35 start += 1 |
| 37 | 36 |
| 38 # Remove the first folder (output) and last file (actaul files that needed to be copied) | 37 # Remove the first folder (output) and last file (actaul files that needed to be copied) |
| 39 paths = "/".join(f.path.split("/")[start:-1]) | 38 paths = "/".join(f.path.split("/")[start:-1]) |
| 40 full_path = "{}/{}".format(out_dir.path, paths) | 39 full_path = "{}/{}".format(out_dir.path, paths) |
| 47 inputs = runfiles_files, | 46 inputs = runfiles_files, |
| 48 outputs = [out_dir], | 47 outputs = [out_dir], |
| 49 command = " && ".join(copy_cmd), | 48 command = " && ".join(copy_cmd), |
| 50 progress_message = "Bundling {}".format(ctx.label.name), | 49 progress_message = "Bundling {}".format(ctx.label.name), |
| 51 ) | 50 ) |
| 52 | |
| 53 print("[INFO] See {}".format(out_dir.path)) | |
| 54 | |
| 55 return [DefaultInfo(files = depset([out_dir]))] | 51 return [DefaultInfo(files = depset([out_dir]))] |
| 56 | 52 |
| 57 bundle = rule( | 53 bundle = rule( |
| 58 implementation = _bundle_impl, | 54 implementation = _bundle_impl, |
| 59 attrs = { | 55 attrs = { |