mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 23:38:38 +09:00
Issue #1457 - Unfold sqlite3 from nss
This commit is contained in:
parent
92d49e3b00
commit
639a4913b3
8 changed files with 21 additions and 57 deletions
|
|
@ -1048,22 +1048,11 @@ bool DefineOSFileConstants(JSContext *cx, JS::Handle<JSObject*> global)
|
|||
}
|
||||
#endif // defined(XP_MACOSX)
|
||||
|
||||
// sqlite3 is linked from different places depending on the platform
|
||||
// sqlite3 is always a shared lib
|
||||
nsAutoString libsqlite3;
|
||||
#if defined(ANDROID)
|
||||
// On Android, we use the system's libsqlite3
|
||||
libsqlite3.AppendLiteral(DLL_PREFIX);
|
||||
libsqlite3.AppendLiteral("sqlite3");
|
||||
libsqlite3.AppendLiteral("mozsqlite3");
|
||||
libsqlite3.AppendLiteral(DLL_SUFFIX);
|
||||
#elif defined(XP_WIN)
|
||||
// On Windows, for some reason, this is part of nss3.dll
|
||||
libsqlite3.AppendLiteral(DLL_PREFIX);
|
||||
libsqlite3.AppendLiteral("nss3");
|
||||
libsqlite3.AppendLiteral(DLL_SUFFIX);
|
||||
#else
|
||||
// On other platforms, we link sqlite3 into libxul
|
||||
libsqlite3 = libxul;
|
||||
#endif // defined(ANDROID) || defined(XP_WIN)
|
||||
|
||||
if (!SetStringProperty(cx, objPath, "libsqlite3", libsqlite3)) {
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue