2017-04-11 09:15:27 +02:00
|
|
|
--
|
2018-02-03 17:39:28 +01:00
|
|
|
-- Copyright 2010-2018 Branimir Karadzic. All rights reserved.
|
2017-04-11 09:15:27 +02:00
|
|
|
-- License: https://github.com/bkaradzic/bx#license-bsd-2-clause
|
|
|
|
--
|
|
|
|
|
2018-02-03 17:39:28 +01:00
|
|
|
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
|
|
|
|
|
2017-04-11 09:15:27 +02:00
|
|
|
project "bimg"
|
|
|
|
kind "StaticLib"
|
|
|
|
|
|
|
|
includedirs {
|
|
|
|
path.join(BX_DIR, "include"),
|
|
|
|
path.join(BIMG_DIR, "include"),
|
|
|
|
}
|
|
|
|
|
|
|
|
files {
|
2018-02-03 17:39:28 +01:00
|
|
|
path.join(BIMG_DIR, "include/**"),
|
2017-04-11 09:15:27 +02:00
|
|
|
path.join(BIMG_DIR, "src/image.*"),
|
2018-02-03 17:39:28 +01:00
|
|
|
path.join(BIMG_DIR, "src/image_gnf.cpp"),
|
2017-04-11 09:15:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
configuration { "linux-*" }
|
|
|
|
buildoptions {
|
|
|
|
"-fPIC",
|
|
|
|
}
|
|
|
|
|
|
|
|
configuration {}
|