diff options
Diffstat (limited to '3rdparty/bimg/scripts/bimg.lua')
-rw-r--r-- | 3rdparty/bimg/scripts/bimg.lua | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/3rdparty/bimg/scripts/bimg.lua b/3rdparty/bimg/scripts/bimg.lua index a70460ef092..0dde12d3899 100644 --- a/3rdparty/bimg/scripts/bimg.lua +++ b/3rdparty/bimg/scripts/bimg.lua @@ -1,30 +1,34 @@ -- --- Copyright 2010-2018 Branimir Karadzic. All rights reserved. +-- Copyright 2010-2022 Branimir Karadzic. All rights reserved. -- 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-encoder/include"), + path.join(BIMG_DIR, "3rdparty/tinyexr/deps/miniz"), } files { path.join(BIMG_DIR, "include/**"), path.join(BIMG_DIR, "src/image.*"), path.join(BIMG_DIR, "src/image_gnf.cpp"), + + path.join(BIMG_DIR, "3rdparty/astc-encoder/source/**.cpp"), + path.join(BIMG_DIR, "3rdparty/astc-encoder/source/**.h"), + + path.join(BIMG_DIR, "3rdparty/tinyexr/deps/miniz/miniz.*"), + } + + using_bx() + + configuration {} + + removeflags { + "FloatFast", -- astc-encoder doesn't work with it. } configuration { "linux-*" } |