mirror of
https://github.com/BinomialLLC/basis_universal.git
synced 2026-06-08 00:23:52 +00:00
fixes for contrib/single_file_transcoder so it works again
This commit is contained in:
@@ -29,9 +29,11 @@
|
|||||||
#define BASISD_SUPPORT_FXT1 0
|
#define BASISD_SUPPORT_FXT1 0
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* KTX2 support disabled.
|
* KTX2 support enabled.
|
||||||
*/
|
*/
|
||||||
#define BASISD_SUPPORT_KTX2 0
|
#define BASISD_SUPPORT_KTX2 1
|
||||||
|
|
||||||
|
#define BASISU_ASTC_HELPERS_IMPLEMENTATION
|
||||||
|
|
||||||
#include "basisu_transcoder.cpp"
|
#include "basisu_transcoder.cpp"
|
||||||
|
|
||||||
|
|||||||
@@ -160,7 +160,7 @@ def add_file(file: Path, file_name: str = None) -> None:
|
|||||||
if (not file_name):
|
if (not file_name):
|
||||||
file_name = file.name
|
file_name = file.name
|
||||||
error_line(f'Processing: {file_name}')
|
error_line(f'Processing: {file_name}')
|
||||||
with file.open('r', errors='replace') as opened:
|
with file.open('r', encoding='utf-8-sig', errors='replace') as opened:
|
||||||
for line in opened:
|
for line in opened:
|
||||||
line = line.rstrip('\n')
|
line = line.rstrip('\n')
|
||||||
match_include = include_regex.match(line);
|
match_include = include_regex.match(line);
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ which cc > /dev/null
|
|||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "(Skipping compile test)"
|
echo "(Skipping compile test)"
|
||||||
else
|
else
|
||||||
cc -std=c++11 -Wall -Wextra -Wno-unused-value -Os -g0 -fno-exceptions -fno-rtti -fno-strict-aliasing -o $OUT_FILE examples/simple.cpp -lstdc++ -lm
|
cc -std=c++17 -Wall -Wextra -Wno-unused-value -Os -g0 -fno-exceptions -fno-rtti -fno-strict-aliasing -o $OUT_FILE examples/simple.cpp ../../zstd/zstd.c -lstdc++ -lm
|
||||||
# Did compilation work?
|
# Did compilation work?
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "Compiling simple.cpp: FAILED"
|
echo "Compiling simple.cpp: FAILED"
|
||||||
|
|||||||
Reference in New Issue
Block a user