here’s what im currently using:
sources {
main {
cpp {
source {
srcDir "src"
include "*.cpp"
binaries.all {
if (toolChain in Gcc) {
tasks.withType(CppCompile) {
includes.from("${libSDLDistDir}/include")
}
linker.args path(["-L${libSDLDistDir}", "bin", "build", ".libs"])
linker.args "-static"
linker.args "-lSDL2"
linker.args "-dynamic"
linker.args "-lm"
linker.args "-ldl"
linker.args "-lpthread"
linker.args "-lrt"
}
}
}
}
}
}