diff --git a/BeefProj.toml b/BeefProj.toml index f57a006..d577141 100644 --- a/BeefProj.toml +++ b/BeefProj.toml @@ -11,73 +11,93 @@ corlib = "*" "CxxBuildTool.git" = {Git = "https://git.unicon-gmbh.de/Rune/CxxBuildTool.git"} [Configs.Debug.Win32] -LibPaths = ["$(BuildDir)/SDL3-static.lib"] +LibPaths = ["$(BuildDir)/SDL3.lib"] +PostBuildCmds = ["CopyToDependents(\"$(BuildDir)/SDL3.dll\")"] [Configs.Debug.Win64] -LibPaths = ["$(BuildDir)/SDL3-static.lib"] +LibPaths = ["$(BuildDir)/SDL3.lib"] +PostBuildCmds = ["CopyToDependents(\"$(BuildDir)/SDL3.dll\")"] [Configs.Debug.Linux32] -LibPaths = ["$(BuildDir)/SDL3-static.a"] +LibPaths = ["$(BuildDir)/SDL3.a"] +PostBuildCmds = ["CopyToDependents(\"$(BuildDir)/SDL3.so\")"] [Configs.Debug.Linux64] -LibPaths = ["$(BuildDir)/SDL3-static.a"] +LibPaths = ["$(BuildDir)/SDL3.a"] +PostBuildCmds = ["CopyToDependents(\"$(BuildDir)/SDL3.so\")"] [Configs.Debug.macOS] -LibPaths = ["$(BuildDir)/SDL3-static.a"] +LibPaths = ["$(BuildDir)/SDL3.a"] +PostBuildCmds = ["CopyToDependents(\"$(BuildDir)/SDL3.dylib\")"] [Configs.Debug.wasm] LibPaths = ["$(BuildDir)/SDL3-static.a"] [Configs.Release.Win32] -LibPaths = ["$(BuildDir)/SDL3-static.lib"] +LibPaths = ["$(BuildDir)/SDL3.lib"] +PostBuildCmds = ["CopyToDependents(\"$(BuildDir)/SDL3.dll\")"] [Configs.Release.Win64] -LibPaths = ["$(BuildDir)/SDL3-static.lib"] +LibPaths = ["$(BuildDir)/SDL3.lib"] +PostBuildCmds = ["CopyToDependents(\"$(BuildDir)/SDL3.dll\")"] [Configs.Release.Linux32] -LibPaths = ["$(BuildDir)/SDL3-static.a"] +LibPaths = ["$(BuildDir)/SDL3.a"] +PostBuildCmds = ["CopyToDependents(\"$(BuildDir)/SDL3.so\")"] [Configs.Release.Linux64] -LibPaths = ["$(BuildDir)/SDL3-static.a"] +LibPaths = ["$(BuildDir)/SDL3.a"] +PostBuildCmds = ["CopyToDependents(\"$(BuildDir)/SDL3.so\")"] [Configs.Release.macOS] -LibPaths = ["$(BuildDir)/SDL3-static.a"] +LibPaths = ["$(BuildDir)/SDL3.a"] +PostBuildCmds = ["CopyToDependents(\"$(BuildDir)/SDL3.dylib\")"] [Configs.Release.wasm] LibPaths = ["$(BuildDir)/SDL3-static.a"] [Configs.Paranoid.Win32] -LibPaths = ["$(BuildDir)/SDL3-static.lib"] +LibPaths = ["$(BuildDir)/SDL3.lib"] +PostBuildCmds = ["CopyToDependents(\"$(BuildDir)/SDL3.dll\")"] [Configs.Paranoid.Win64] -LibPaths = ["$(BuildDir)/SDL3-static.lib"] +LibPaths = ["$(BuildDir)/SDL3.lib"] +PostBuildCmds = ["CopyToDependents(\"$(BuildDir)/SDL3.dll\")"] [Configs.Paranoid.Linux32] -LibPaths = ["$(BuildDir)/SDL3-static.a"] +LibPaths = ["$(BuildDir)/SDL3.a"] +PostBuildCmds = ["CopyToDependents(\"$(BuildDir)/SDL3.so\")"] [Configs.Paranoid.Linux64] -LibPaths = ["$(BuildDir)/SDL3-static.a"] +LibPaths = ["$(BuildDir)/SDL3.a"] +PostBuildCmds = ["CopyToDependents(\"$(BuildDir)/SDL3.so\")"] [Configs.Paranoid.macOS] -LibPaths = ["$(BuildDir)/SDL3-static.a"] +LibPaths = ["$(BuildDir)/SDL3.a"] +PostBuildCmds = ["CopyToDependents(\"$(BuildDir)/SDL3.dylib\")"] [Configs.Paranoid.wasm] LibPaths = ["$(BuildDir)/SDL3-static.a"] [Configs.Test.Win32] -LibPaths = ["$(BuildDir)/SDL3-static.lib"] +LibPaths = ["$(BuildDir)/SDL3.lib"] +PostBuildCmds = ["CopyToDependents(\"$(BuildDir)/SDL3.dll\")"] [Configs.Test.Win64] -LibPaths = ["$(BuildDir)/SDL3-static.lib"] +LibPaths = ["$(BuildDir)/SDL3.lib"] +PostBuildCmds = ["CopyToDependents(\"$(BuildDir)/SDL3.dll\")"] [Configs.Test.Linux32] -LibPaths = ["$(BuildDir)/SDL3-static.a"] +LibPaths = ["$(BuildDir)/SDL3.a"] +PostBuildCmds = ["CopyToDependents(\"$(BuildDir)/SDL3.so\")"] [Configs.Test.Linux64] -LibPaths = ["$(BuildDir)/SDL3-static.a"] +LibPaths = ["$(BuildDir)/SDL3.a"] +PostBuildCmds = ["CopyToDependents(\"$(BuildDir)/SDL3.so\")"] [Configs.Test.macOS] -LibPaths = ["$(BuildDir)/SDL3-static.a"] +LibPaths = ["$(BuildDir)/SDL3.a"] +PostBuildCmds = ["CopyToDependents(\"$(BuildDir)/SDL3.dylib\")"] [Configs.Test.wasm] LibPaths = ["$(BuildDir)/SDL3-static.a"] diff --git a/Example/BeefSpace_Lock.toml b/Example/BeefSpace_Lock.toml new file mode 100644 index 0000000..15da856 --- /dev/null +++ b/Example/BeefSpace_Lock.toml @@ -0,0 +1,6 @@ +FileVersion = 1 + +[Locks."CxxBuildTool.git".Git] +URL = "https://git.unicon-gmbh.de/Rune/CxxBuildTool.git" +Tag = "" +Hash = "b64a6221b8cb235a5e040c8597365dabeef849ca" diff --git a/src/Library.bf b/src/Library.bf index d8d3488..7a954ad 100644 --- a/src/Library.bf +++ b/src/Library.bf @@ -15,7 +15,7 @@ static class SDL private static void Build() { 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"); } }