Commit cd18716
committed
khronos_api: Resolve WebGL extension files relative to
Fixes #536
Fixes #549
Fixes #554
There are not one, not two but three PRs attempting to fix Bazel build
support, which seems to containerize or sandbox the build script such
that the paths it uses to find the crate source (e.g. `current_dir()`)
and XML files within is different than when the generated source is
being compiled, leading to files no longer being found.
The most simple solution of course is to remove all assumptions and
references to the working directory or absolute location of the crate
when the build script is being ran. This can only be used to find the
files, after which their relative paths (**within** the crate source)
will be emitted to the output file with a `concat!()` directive that
prepends it with `env!("CARGO_MANIFEST_DIR")` whenever the source is
finally being compiled (in a different sandbox).CARGO_MANIFEST_DIR
1 parent a4140fe commit cd18716
1 file changed
+13
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
| 28 | + | |
| 29 | + | |
33 | 30 | | |
34 | 31 | | |
35 | 32 | | |
| |||
56 | 53 | | |
57 | 54 | | |
58 | 55 | | |
59 | | - | |
60 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
61 | 67 | | |
62 | 68 | | |
63 | 69 | | |
| |||
0 commit comments