Files
cpp-examples/sdl/02-sdl2-video/build.gradle
2016-05-16 09:13:09 +02:00

26 lines
607 B
Groovy

apply plugin: 'c'
apply plugin: 'visual-studio'
model {
components {
main(NativeExecutableSpec) {}
}
binaries {
all {
if (toolChain in VisualCpp) {
cCompiler.args "/MD"
linker.args "/SUBSYSTEM:CONSOLE", "/LIBPATH:../build/lib/", "SDL2main.lib", "SDL2.lib"
} else if (toolChain in Gcc) {
linker.args "-lSDL2"
}
}
}
}
task prepare(type: Copy) {
description "Copy DLL dependencies"
from "../build/lib/"
from "src/main/resources"
into "build/binaries/mainExecutable"
}