Added astc-codec decoder.

This commit is contained in:
Бранимир Караџић
2019-02-16 13:11:06 -08:00
parent c299a8d593
commit 7ad9c896ba
130 changed files with 13342 additions and 57 deletions

View File

@@ -3,28 +3,34 @@
-- License: https://github.com/bkaradzic/bx#license-bsd-2-clause
--
function filesexist(_srcPath, _dstPath, _files)
for _, file in ipairs(_files) do
file = path.getrelative(_srcPath, file)
local filePath = path.join(_dstPath, file)
if not os.isfile(filePath) then return false end
end
return true
end
project "bimg"
kind "StaticLib"
includedirs {
path.join(BX_DIR, "include"),
path.join(BIMG_DIR, "include"),
path.join(BIMG_DIR, "3rdparty/astc-codec"),
path.join(BIMG_DIR, "3rdparty/astc-codec/include"),
}
local ASTC_CODEC_DIR = path.join(BIMG_DIR, "3rdparty/astc-codec")
files {
path.join(BIMG_DIR, "include/**"),
path.join(BIMG_DIR, "src/image.*"),
path.join(BIMG_DIR, "src/image_gnf.cpp"),
path.join(ASTC_CODEC_DIR, "src/decoder/astc_file.*"),
path.join(ASTC_CODEC_DIR, "src/decoder/codec.*"),
path.join(ASTC_CODEC_DIR, "src/decoder/endpoint_codec.*"),
path.join(ASTC_CODEC_DIR, "src/decoder/footprint.*"),
path.join(ASTC_CODEC_DIR, "src/decoder/integer_sequence_codec.*"),
path.join(ASTC_CODEC_DIR, "src/decoder/intermediate_astc_block.*"),
path.join(ASTC_CODEC_DIR, "src/decoder/logical_astc_block.*"),
path.join(ASTC_CODEC_DIR, "src/decoder/partition.*"),
path.join(ASTC_CODEC_DIR, "src/decoder/physical_astc_block.*"),
path.join(ASTC_CODEC_DIR, "src/decoder/quantization.*"),
path.join(ASTC_CODEC_DIR, "src/decoder/weight_infill.*"),
}
configuration { "linux-*" }

View File

@@ -10,8 +10,6 @@ project "bimg_decode"
path.join(BX_DIR, "include"),
path.join(BIMG_DIR, "include"),
path.join(BIMG_DIR, "3rdparty"),
path.join(BIMG_DIR, "3rdparty/nvtt"),
path.join(BIMG_DIR, "3rdparty/iqa/include"),
}
files {