[wasm] Add a --wasmDataDir
parameter
#1938
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In an earlier commit, generated projects got support for importing
props/targets files from the benchmark projects. And that allows
customizing the build.
But there isn't a clean way to inject/add references to the build of the
project, like custom paths, or access to additional files, without
adding new command line parameters.
To solve that,
--wasmDataDir
param is added which is surfaced in thegenerated project as the msbuild property -
$(WasmDataDir)
.An example use case is to have the wasm js file added to this data dir,
and in the props file use:
<WasmMainJSPath>$(WasmDataDir)test-main.js</WasmMainJSPath>
.