perfetto-ui: Remove _wasm suffix from js files
Remove the recently tntroduced "_wasm" suffix from:
trace_processor_wasm.wasm
trace_processor_wasm.js
trace_processor_wasm.d.ts
While retaining the target name of trace_processor_wasm.
To do this we enforce users of wasm_lib set a name variable such that
name + "_wasm" == target_name
(i.e. "trace_processor" + "_wasm" == "trace_processor_wasm").
This isn't ideal but there is only one user of wasm_lib at the moment.
This implicilty fixes the bug where we had forgot to update a refrence
to the new name somewhere.
Change-Id: I5641f62ac68f2f185a28e2203f5760ef949c8294
diff --git a/ui/BUILD.gn b/ui/BUILD.gn
index fca5f67..104b6e8 100644
--- a/ui/BUILD.gn
+++ b/ui/BUILD.gn
@@ -325,10 +325,10 @@
copy("wasm_dist") {
deps = [
- "//src/trace_processor:trace_processor_wasm.wasm($wasm_toolchain)",
+ "//src/trace_processor:trace_processor.wasm($wasm_toolchain)",
]
sources = [
- "$root_build_dir/wasm/trace_processor_wasm.wasm",
+ "$root_build_dir/wasm/trace_processor.wasm",
]
outputs = [
"$ui_dir/{{source_file_part}}",
@@ -338,14 +338,14 @@
copy("wasm_gen") {
deps = [
":dist_symlink",
- "//src/trace_processor:trace_processor_wasm.d.ts($wasm_toolchain)",
- "//src/trace_processor:trace_processor_wasm.js($wasm_toolchain)",
- "//src/trace_processor:trace_processor_wasm.wasm($wasm_toolchain)",
+ "//src/trace_processor:trace_processor.d.ts($wasm_toolchain)",
+ "//src/trace_processor:trace_processor.js($wasm_toolchain)",
+ "//src/trace_processor:trace_processor.wasm($wasm_toolchain)",
]
sources = [
- "$root_build_dir/wasm/trace_processor_wasm.d.ts",
- "$root_build_dir/wasm/trace_processor_wasm.js",
- "$root_build_dir/wasm/trace_processor_wasm.wasm",
+ "$root_build_dir/wasm/trace_processor.d.ts",
+ "$root_build_dir/wasm/trace_processor.js",
+ "$root_build_dir/wasm/trace_processor.wasm",
]
outputs = [
"$ui_gen_dir/{{source_file_part}}",