On Wednesday, 18 March 2020 at 13:52:20 UTC, Abby wrote:
Hi there,
I'm using d2sqlite3 which has dependency on sqlite3.lib. When
I'm building my app on windows I have a dub.sdl which has a line
libs
"%USERPROFILE%/AppData/Local/dub/packages/d2sqlite3-0.18.3/d2sqlite3/lib/win64/sqlite3" platform="windows-x86_64-dmd"
but unless I specify full path using specific user profile name
on windows like so
"c:/user/abby/AppData/Local/dub/packages/d2sqlite3-0.18.3/d2sqlite3/lib/win64/sqlite3"
I cannot build my app, so I was wondering if there is some
clever way to solve this without hardcoded path to my profile
name.
Thank you very much for your help.
I see it in CairoD.
dub.json
--------
{
...
"configurations": [
{
"name": "unittest",
"targetType": "executable",
"mainSourceFile": "unittest.d",
"versions": ["CairoPNG"],
"targetPath": "bin",
"libs-posix": ["cairo"],
"libs-windows-x86-dmd": ["lib/32/mars/cairo"],
"libs-windows-x86-gdc": ["lib/32/msvc_mingw/cairo"],
"libs-windows-x86-ldc": ["lib/32/msvc_mingw/cairo"],
"libs-windows-x86_64": ["lib/64/cairo"],
"copyFiles-windows-x86": ["lib/32/*.dll"],
"copyFiles-windows-x86_64": ["lib/64/*.dll"]
}
]
}
folders:
./
lib/
32/
mars/
cairo.lib
msvc_mingw/
cairo.lib
64/
cairo.lib