mirror of
https://github.com/lc-soft/LCUI.git
synced 2026-11-30 16:48:21 +01:00
26 lines
710 B
Lua
26 lines
710 B
Lua
option("with-libpng", {showmenu = true, default = true})
|
|
option("with-libjpeg", {showmenu = true, default = true})
|
|
|
|
if has_config("with-libpng") then
|
|
add_requires("libpng", {optional = true})
|
|
end
|
|
|
|
if has_config("with-libjpeg") then
|
|
add_requires("libjpeg", {optional = true})
|
|
end
|
|
|
|
target("lcui-image")
|
|
set_kind("static")
|
|
add_files("src/*.c")
|
|
set_configdir("src")
|
|
add_configfiles("src/config.h.in")
|
|
add_options("with-libpng", "with-libjpeg")
|
|
add_packages("libjpeg", "libpng")
|
|
add_deps("lcui-util", "lcui-paint")
|
|
if has_package("libjpeg") then
|
|
set_configvar("USE_LIBJPEG", 1)
|
|
end
|
|
if has_package("libpng") then
|
|
set_configvar("USE_LIBPNG", 1)
|
|
end
|