mirror of
https://github.com/ysoftdevs/cpp-examples.git
synced 2026-01-14 15:53:32 +01:00
add Gradle Debian Linux packaging
This commit is contained in:
@@ -20,7 +20,8 @@ executables {
|
||||
binaries.all {
|
||||
if (toolChain in VisualCpp) {
|
||||
cCompiler.args "/MD"
|
||||
linker.args "/SUBSYSTEM:CONSOLE", "/LIBPATH:../build/lib/", "SDL2main.lib", "SDL2.lib"
|
||||
linker.args "/SUBSYSTEM:CONSOLE", "/LIBPATH:../build/lib/",
|
||||
"SDL2main.lib", "SDL2.lib"
|
||||
} else if (toolChain in Gcc) {
|
||||
linker.args "-lSDL2"
|
||||
}
|
||||
@@ -28,3 +29,9 @@ executables {
|
||||
}
|
||||
}
|
||||
|
||||
task prepare(type: Copy) {
|
||||
description "Copy DLL dependencies"
|
||||
from "../build/lib/"
|
||||
into "build/binaries/mainExecutable"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user