Files
SnowLuma/.pnpm-store/v11/files/78/f9e6a2c576408cc86eb14243f35c008751d79f0acf415fd9509aea0f3028f8cd431e7ee6651e6e684814891654da60dfbe81930083e10672906d3b1353c990
T
TanTan 2a69b23b47
Dev Build / cleanup (push) Canceled after 0s
Dev Build / typecheck (push) Canceled after 0s
Dev Build / build (linux-arm64, ubuntu-24.04-arm, linux-arm64) (push) Canceled after 0s
Dev Build / build (linux-x64, ubuntu-latest, linux-x64) (push) Canceled after 0s
Dev Build / build (win-x64, windows-latest, win32-x64) (push) Canceled after 0s
Dev Build / dispatch-dev-docker (push) Canceled after 0s
docs: 仓库链接指向本镜像仓库
2026-11-13 09:27:07 +08:00

78 lines
2.6 KiB
Plaintext

{
"includes": [ "deps/common-sqlite.gypi" ],
"variables": {
"sqlite%":"internal",
"sqlite_libname%":"sqlite3",
"module_name": "node_sqlite3",
},
"targets": [
{
"target_name": "<(module_name)",
"cflags!": [ "-fno-exceptions" ],
"cflags_cc!": [ "-fno-exceptions" ],
"xcode_settings": { "GCC_ENABLE_CPP_EXCEPTIONS": "YES",
"CLANG_CXX_LIBRARY": "libc++",
"CLANG_CXX_LANGUAGE_STANDARD": "c++17",
"MACOSX_DEPLOYMENT_TARGET": "12.0",
},
"msvs_settings": {
"VCCLCompilerTool": { "ExceptionHandling": 1 },
},
"include_dirs": [
"<!@(node -p \"require('node-addon-api').include\")"],
"conditions": [
["sqlite != 'internal'", {
"include_dirs": [
"<!@(node -p \"require('node-addon-api').include\")", "<(sqlite)/include" ],
# The vendored build gets these from deps/sqlite3.gyp's
# direct_dependent_settings, which an external SQLite never
# reaches — so without them the session, preupdate and column
# metadata declarations in the external sqlite3.h stay behind
# their #ifdefs and src/session.h fails to compile
# ("'sqlite3_session' does not name a type"). They describe
# what this addon's sources need to *see*; the external library
# must have been built with them too, or the link fails.
"defines": [
"SQLITE_ENABLE_SESSION",
"SQLITE_ENABLE_PREUPDATE_HOOK",
"SQLITE_ENABLE_COLUMN_METADATA"
],
"libraries": [
"-l<(sqlite_libname)"
],
"conditions": [
[ "OS=='linux'", {"libraries+":["-Wl,-rpath=<@(sqlite)/lib"]} ],
[ "OS!='win'", {"libraries+":["-L<@(sqlite)/lib"]} ]
],
'msvs_settings': {
'VCLinkerTool': {
'AdditionalLibraryDirectories': [
'<(sqlite)/lib'
],
},
}
},
{
"dependencies": [
"<!(node -p \"require('node-addon-api').gyp\")",
"deps/sqlite3.gyp:sqlite3"
]
}
]
],
"sources": [
"src/backup.cc",
"src/blob.cc",
"src/convert.cc",
"src/database.cc",
"src/function.cc",
"src/node_sqlite3.cc",
"src/session.cc",
"src/statement.cc",
"src/vtab.cc"
],
"defines": [ "NAPI_VERSION=<(napi_build_version)", "NAPI_DISABLE_CPP_EXCEPTIONS=1" ]
}
]
}