2017-12-01 13:22:27 +01:00
|
|
|
--
|
2023-09-07 21:14:35 +02:00
|
|
|
-- Copyright 2010-2022 Branimir Karadzic. All rights reserved.
|
2017-12-01 13:22:27 +01:00
|
|
|
-- License: https://github.com/bkaradzic/bx#license-bsd-2-clause
|
|
|
|
--
|
|
|
|
|
|
|
|
project "bimg"
|
|
|
|
kind "StaticLib"
|
|
|
|
|
|
|
|
includedirs {
|
|
|
|
path.join(BIMG_DIR, "include"),
|
2023-01-05 15:32:40 +01:00
|
|
|
path.join(BIMG_DIR, "3rdparty/astc-encoder/include"),
|
2021-08-10 20:27:19 +02:00
|
|
|
path.join(BIMG_DIR, "3rdparty/tinyexr/deps/miniz"),
|
2017-12-01 13:22:27 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
files {
|
|
|
|
path.join(BIMG_DIR, "include/**"),
|
|
|
|
path.join(BIMG_DIR, "src/image.*"),
|
2018-12-05 19:45:08 +01:00
|
|
|
path.join(BIMG_DIR, "src/image_gnf.cpp"),
|
2019-10-13 13:50:38 +02:00
|
|
|
|
2023-01-05 15:32:40 +01:00
|
|
|
path.join(BIMG_DIR, "3rdparty/astc-encoder/source/**.cpp"),
|
|
|
|
path.join(BIMG_DIR, "3rdparty/astc-encoder/source/**.h"),
|
2021-08-10 20:27:19 +02:00
|
|
|
|
|
|
|
path.join(BIMG_DIR, "3rdparty/tinyexr/deps/miniz/miniz.*"),
|
2017-12-01 13:22:27 +01:00
|
|
|
}
|
|
|
|
|
2023-01-05 15:32:40 +01:00
|
|
|
using_bx()
|
|
|
|
|
|
|
|
configuration {}
|
|
|
|
|
|
|
|
removeflags {
|
|
|
|
"FloatFast", -- astc-encoder doesn't work with it.
|
|
|
|
}
|
|
|
|
|
2017-12-01 13:22:27 +01:00
|
|
|
configuration { "linux-*" }
|
|
|
|
buildoptions {
|
|
|
|
"-fPIC",
|
|
|
|
}
|
|
|
|
|
|
|
|
configuration {}
|