mirror of
https://github.com/ysoftdevs/cpp-examples.git
synced 2026-01-15 00:03:36 +01:00
29 lines
629 B
Groovy
29 lines
629 B
Groovy
apply plugin: 'c'
|
|
apply plugin: 'visual-studio'
|
|
|
|
sources {
|
|
main {
|
|
c {
|
|
source {
|
|
// Include just source, avoid including *.swp and other helper files
|
|
include "**/*.c"
|
|
}
|
|
exportedHeaders {
|
|
srcDir "../build/SDL2-2.0.3/include"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
executables {
|
|
main {
|
|
binaries.all {
|
|
if (toolChain in VisualCpp) {
|
|
cCompiler.args "/MD"
|
|
linker.args "/SUBSYSTEM:CONSOLE", "/LIBPATH:../build/SDL2-2.0.3/lib/x86/", "SDL2main.lib", "SDL2.lib"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|