blob: 44c5f66ec044646b06b0f3fcce7a925b1a10f931 [file] [log] [blame]
workspace 'rive'
configurations {"debug", "release"}
require 'setup_compiler'
rive = path.getabsolute("../../")
dofile(rive .. '/dependencies/premake5_libpng.lua')
project 'rive_decoders'
dependson 'libpng'
kind 'StaticLib'
language "C++"
cppdialect "C++17"
targetdir "%{cfg.buildcfg}"
objdir "obj/%{cfg.buildcfg}"
flags { "FatalWarnings" }
includedirs {
'../include',
'../../include',
libpng,
}
files {
'../src/**.cpp'
}
filter { "system:windows" }
do
architecture "x64"
end
filter "configurations:debug"
do
defines {"DEBUG"}
symbols "On"
end
filter "configurations:release"
do
defines {"RELEASE"}
defines {"NDEBUG"}
optimize "On"
end