Mercurial > games > semicongine
changeset 1011:03100c57e4d6
fix: correct sqlite dlls for windows
author | sam <sam@basx.dev> |
---|---|
date | Sat, 27 Apr 2024 15:16:43 +0700 |
parents | 34be258400a6 |
children | ac15ef062e29 |
files | libs/sqlite3_32.dll libs/sqlite3_64.dll semicongine/build.nim |
diffstat | 3 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/semicongine/build.nim Tue Apr 16 02:42:39 2024 +0700 +++ b/semicongine/build.nim Sat Apr 27 15:16:43 2024 +0700 @@ -18,7 +18,8 @@ STEAMLIB = currentSourcePath().parentDir().parentDir().joinPath("libs/steam_api.dll") else: raise newException(Exception, "Unsupported platform") -let SQLITELIB = currentSourcePath().parentDir().parentDir().joinPath("libs/sqlite3.dll") +let SQLITELIB_32 = currentSourcePath().parentDir().parentDir().joinPath("libs/sqlite3_32.dll") +let SQLITELIB_64 = currentSourcePath().parentDir().parentDir().joinPath("libs/sqlite3_64.dll") proc semicongine_builddir*(buildname: string, builddir = "./build"): string = assert projectName() != "", "Please specify project file as a commandline argument" @@ -76,7 +77,8 @@ elif bundleType == "exe": switch("define", "BUILD_RESOURCEROOT=" & joinPath(getCurrentDir(), resourceRoot)) # required for in-exe packing of resources, must be absolute if defined(windows): - SQLITELIB.cpFile(outdir.joinPath(SQLITELIB.extractFilename)) + SQLITELIB_32.cpFile(outdir.joinPath(SQLITELIB_32.extractFilename)) + SQLITELIB_64.cpFile(outdir.joinPath(SQLITELIB_64.extractFilename)) if withSteam: STEAMLIB.cpFile(outdir.joinPath(STEAMLIB.extractFilename))