mirror of
https://github.com/ysoftdevs/cpp-examples.git
synced 2026-03-23 17:41:21 +01:00
update SDL2 video example with Gradle build
This commit is contained in:
28
sdl/02-sdl2-video/build.gradle
Normal file
28
sdl/02-sdl2-video/build.gradle
Normal 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) {
|
||||
cCompiler.args "/MD"
|
||||
linker.args "/SUBSYSTEM:CONSOLE", "/LIBPATH:../build/SDL2-2.0.3/lib/x86/", "SDL2main.lib", "SDL2.lib"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user