use gradle to build example

This commit is contained in:
Juraj Michalek
2014-04-19 12:01:24 +02:00
parent 64ef14f422
commit cc9f35d783
5 changed files with 70 additions and 27 deletions

View File

@@ -0,0 +1,28 @@
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) {
linker.args "/machine:X86", "/SUBSYSTEM:WINDOWS", "../build/SDL2-2.0.3/lib/x86/SDL2.lib"
//linker.args "/SUBSYSTEM:WINDOWS", "/LIBPATH:../build/SDL2-2.0.3/lib/x86/", "SDL2.lib"
}
}
}
}