use shared library
This commit is contained in:
+40
-20
@@ -11,73 +11,93 @@ corlib = "*"
|
|||||||
"CxxBuildTool.git" = {Git = "https://git.unicon-gmbh.de/Rune/CxxBuildTool.git"}
|
"CxxBuildTool.git" = {Git = "https://git.unicon-gmbh.de/Rune/CxxBuildTool.git"}
|
||||||
|
|
||||||
[Configs.Debug.Win32]
|
[Configs.Debug.Win32]
|
||||||
LibPaths = ["$(BuildDir)/SDL3-static.lib"]
|
LibPaths = ["$(BuildDir)/SDL3.lib"]
|
||||||
|
PostBuildCmds = ["CopyToDependents(\"$(BuildDir)/SDL3.dll\")"]
|
||||||
|
|
||||||
[Configs.Debug.Win64]
|
[Configs.Debug.Win64]
|
||||||
LibPaths = ["$(BuildDir)/SDL3-static.lib"]
|
LibPaths = ["$(BuildDir)/SDL3.lib"]
|
||||||
|
PostBuildCmds = ["CopyToDependents(\"$(BuildDir)/SDL3.dll\")"]
|
||||||
|
|
||||||
[Configs.Debug.Linux32]
|
[Configs.Debug.Linux32]
|
||||||
LibPaths = ["$(BuildDir)/SDL3-static.a"]
|
LibPaths = ["$(BuildDir)/SDL3.a"]
|
||||||
|
PostBuildCmds = ["CopyToDependents(\"$(BuildDir)/SDL3.so\")"]
|
||||||
|
|
||||||
[Configs.Debug.Linux64]
|
[Configs.Debug.Linux64]
|
||||||
LibPaths = ["$(BuildDir)/SDL3-static.a"]
|
LibPaths = ["$(BuildDir)/SDL3.a"]
|
||||||
|
PostBuildCmds = ["CopyToDependents(\"$(BuildDir)/SDL3.so\")"]
|
||||||
|
|
||||||
[Configs.Debug.macOS]
|
[Configs.Debug.macOS]
|
||||||
LibPaths = ["$(BuildDir)/SDL3-static.a"]
|
LibPaths = ["$(BuildDir)/SDL3.a"]
|
||||||
|
PostBuildCmds = ["CopyToDependents(\"$(BuildDir)/SDL3.dylib\")"]
|
||||||
|
|
||||||
[Configs.Debug.wasm]
|
[Configs.Debug.wasm]
|
||||||
LibPaths = ["$(BuildDir)/SDL3-static.a"]
|
LibPaths = ["$(BuildDir)/SDL3-static.a"]
|
||||||
|
|
||||||
[Configs.Release.Win32]
|
[Configs.Release.Win32]
|
||||||
LibPaths = ["$(BuildDir)/SDL3-static.lib"]
|
LibPaths = ["$(BuildDir)/SDL3.lib"]
|
||||||
|
PostBuildCmds = ["CopyToDependents(\"$(BuildDir)/SDL3.dll\")"]
|
||||||
|
|
||||||
[Configs.Release.Win64]
|
[Configs.Release.Win64]
|
||||||
LibPaths = ["$(BuildDir)/SDL3-static.lib"]
|
LibPaths = ["$(BuildDir)/SDL3.lib"]
|
||||||
|
PostBuildCmds = ["CopyToDependents(\"$(BuildDir)/SDL3.dll\")"]
|
||||||
|
|
||||||
[Configs.Release.Linux32]
|
[Configs.Release.Linux32]
|
||||||
LibPaths = ["$(BuildDir)/SDL3-static.a"]
|
LibPaths = ["$(BuildDir)/SDL3.a"]
|
||||||
|
PostBuildCmds = ["CopyToDependents(\"$(BuildDir)/SDL3.so\")"]
|
||||||
|
|
||||||
[Configs.Release.Linux64]
|
[Configs.Release.Linux64]
|
||||||
LibPaths = ["$(BuildDir)/SDL3-static.a"]
|
LibPaths = ["$(BuildDir)/SDL3.a"]
|
||||||
|
PostBuildCmds = ["CopyToDependents(\"$(BuildDir)/SDL3.so\")"]
|
||||||
|
|
||||||
[Configs.Release.macOS]
|
[Configs.Release.macOS]
|
||||||
LibPaths = ["$(BuildDir)/SDL3-static.a"]
|
LibPaths = ["$(BuildDir)/SDL3.a"]
|
||||||
|
PostBuildCmds = ["CopyToDependents(\"$(BuildDir)/SDL3.dylib\")"]
|
||||||
|
|
||||||
[Configs.Release.wasm]
|
[Configs.Release.wasm]
|
||||||
LibPaths = ["$(BuildDir)/SDL3-static.a"]
|
LibPaths = ["$(BuildDir)/SDL3-static.a"]
|
||||||
|
|
||||||
[Configs.Paranoid.Win32]
|
[Configs.Paranoid.Win32]
|
||||||
LibPaths = ["$(BuildDir)/SDL3-static.lib"]
|
LibPaths = ["$(BuildDir)/SDL3.lib"]
|
||||||
|
PostBuildCmds = ["CopyToDependents(\"$(BuildDir)/SDL3.dll\")"]
|
||||||
|
|
||||||
[Configs.Paranoid.Win64]
|
[Configs.Paranoid.Win64]
|
||||||
LibPaths = ["$(BuildDir)/SDL3-static.lib"]
|
LibPaths = ["$(BuildDir)/SDL3.lib"]
|
||||||
|
PostBuildCmds = ["CopyToDependents(\"$(BuildDir)/SDL3.dll\")"]
|
||||||
|
|
||||||
[Configs.Paranoid.Linux32]
|
[Configs.Paranoid.Linux32]
|
||||||
LibPaths = ["$(BuildDir)/SDL3-static.a"]
|
LibPaths = ["$(BuildDir)/SDL3.a"]
|
||||||
|
PostBuildCmds = ["CopyToDependents(\"$(BuildDir)/SDL3.so\")"]
|
||||||
|
|
||||||
[Configs.Paranoid.Linux64]
|
[Configs.Paranoid.Linux64]
|
||||||
LibPaths = ["$(BuildDir)/SDL3-static.a"]
|
LibPaths = ["$(BuildDir)/SDL3.a"]
|
||||||
|
PostBuildCmds = ["CopyToDependents(\"$(BuildDir)/SDL3.so\")"]
|
||||||
|
|
||||||
[Configs.Paranoid.macOS]
|
[Configs.Paranoid.macOS]
|
||||||
LibPaths = ["$(BuildDir)/SDL3-static.a"]
|
LibPaths = ["$(BuildDir)/SDL3.a"]
|
||||||
|
PostBuildCmds = ["CopyToDependents(\"$(BuildDir)/SDL3.dylib\")"]
|
||||||
|
|
||||||
[Configs.Paranoid.wasm]
|
[Configs.Paranoid.wasm]
|
||||||
LibPaths = ["$(BuildDir)/SDL3-static.a"]
|
LibPaths = ["$(BuildDir)/SDL3-static.a"]
|
||||||
|
|
||||||
[Configs.Test.Win32]
|
[Configs.Test.Win32]
|
||||||
LibPaths = ["$(BuildDir)/SDL3-static.lib"]
|
LibPaths = ["$(BuildDir)/SDL3.lib"]
|
||||||
|
PostBuildCmds = ["CopyToDependents(\"$(BuildDir)/SDL3.dll\")"]
|
||||||
|
|
||||||
[Configs.Test.Win64]
|
[Configs.Test.Win64]
|
||||||
LibPaths = ["$(BuildDir)/SDL3-static.lib"]
|
LibPaths = ["$(BuildDir)/SDL3.lib"]
|
||||||
|
PostBuildCmds = ["CopyToDependents(\"$(BuildDir)/SDL3.dll\")"]
|
||||||
|
|
||||||
[Configs.Test.Linux32]
|
[Configs.Test.Linux32]
|
||||||
LibPaths = ["$(BuildDir)/SDL3-static.a"]
|
LibPaths = ["$(BuildDir)/SDL3.a"]
|
||||||
|
PostBuildCmds = ["CopyToDependents(\"$(BuildDir)/SDL3.so\")"]
|
||||||
|
|
||||||
[Configs.Test.Linux64]
|
[Configs.Test.Linux64]
|
||||||
LibPaths = ["$(BuildDir)/SDL3-static.a"]
|
LibPaths = ["$(BuildDir)/SDL3.a"]
|
||||||
|
PostBuildCmds = ["CopyToDependents(\"$(BuildDir)/SDL3.so\")"]
|
||||||
|
|
||||||
[Configs.Test.macOS]
|
[Configs.Test.macOS]
|
||||||
LibPaths = ["$(BuildDir)/SDL3-static.a"]
|
LibPaths = ["$(BuildDir)/SDL3.a"]
|
||||||
|
PostBuildCmds = ["CopyToDependents(\"$(BuildDir)/SDL3.dylib\")"]
|
||||||
|
|
||||||
[Configs.Test.wasm]
|
[Configs.Test.wasm]
|
||||||
LibPaths = ["$(BuildDir)/SDL3-static.a"]
|
LibPaths = ["$(BuildDir)/SDL3-static.a"]
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
FileVersion = 1
|
||||||
|
|
||||||
|
[Locks."CxxBuildTool.git".Git]
|
||||||
|
URL = "https://git.unicon-gmbh.de/Rune/CxxBuildTool.git"
|
||||||
|
Tag = ""
|
||||||
|
Hash = "b64a6221b8cb235a5e040c8597365dabeef849ca"
|
||||||
+1
-1
@@ -15,7 +15,7 @@ static class SDL
|
|||||||
private static void Build()
|
private static void Build()
|
||||||
{
|
{
|
||||||
if (!Compiler.IsBuilding) return;
|
if (!Compiler.IsBuilding) return;
|
||||||
CxxBuildTool.CMake(Compiler.ProjectDir + "/SDL", Compiler.BuildDir + "/" + Compiler.ProjectName, "-DSDL_STATIC=ON -DSDL_SHARED=OFF -DSDL_TESTS=OFF");
|
CxxBuildTool.CMake(Compiler.ProjectDir + "/SDL", Compiler.BuildDir + "/" + Compiler.ProjectName, "-DSDL_TESTS=OFF");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user