Files
bgfx/scripts
kingscallop c0adb2a51e Make the generated embedded shader headers the same between linux and gnuwin32 (#2538)
This echo command on the makefile behaves differently between linux and gnuwin32:
```
-@echo extern const uint8_t* $(basename $(<))_pssl;>> $(@)
```

On linux the semicolon immediately ends the echo command and its output is never piped to the embedded shader's header.
If you try to fix it by quoting the string:
```
-@echo "extern const uint8_t* $(basename $(<))_pssl;" >> $(@)
```

It will work on linux but not on gnuwin32 because the quotes will appear on the outputted string.
The solution was to use printf which works consistently between the two.

Also on gnuwin32 the outputted string has 'CRLF' line endings, which clashes with the rest of the 'LF' line endings
of the embedded shaders header which were produced by shaderc.
The solution was to remove the 'CR' from the outputted string by using the tr command.
2021-06-12 10:22:19 -07:00
..
2019-07-04 18:47:08 -07:00
2014-09-10 21:04:42 -07:00
2021-05-25 20:13:59 -07:00
2021-04-18 11:39:52 -07:00
2020-09-30 13:49:34 -07:00
2021-03-17 17:49:01 -07:00
2021-01-14 15:53:49 -08:00
2021-05-25 20:13:59 -07:00
2019-07-04 18:47:08 -07:00
2021-01-14 15:53:49 -08:00
2021-01-14 15:53:49 -08:00
2019-07-14 21:19:46 -07:00
2021-01-14 15:53:49 -08:00
2021-01-14 15:53:49 -08:00
2021-01-14 15:53:49 -08:00
2021-01-14 15:53:49 -08:00
2021-01-14 15:53:49 -08:00
2021-02-28 10:15:09 -08:00
2021-01-14 15:53:49 -08:00