Update packages
This commit is contained in:
parent
6fdc345f47
commit
a78df6fce7
3 changed files with 417 additions and 608 deletions
|
@ -1,4 +1,5 @@
|
|||
cmake_minimum_required(VERSION 3.9)
|
||||
cmake_minimum_required(VERSION 3.15)
|
||||
cmake_policy(SET CMP0091 NEW)
|
||||
cmake_policy(SET CMP0042 NEW)
|
||||
project(image)
|
||||
include_directories(${CMAKE_JS_INC})
|
||||
|
@ -18,17 +19,8 @@ set(CMAKE_CXX_FLAGS "-Wall -Wextra -Werror=format-security -Wno-cast-function-ty
|
|||
set(CMAKE_CXX_FLAGS_DEBUG "-g")
|
||||
set(CMAKE_CXX_FLAGS_RELEASE "-O3")
|
||||
endif()
|
||||
add_definitions(-DNAPI_VERSION=3)
|
||||
|
||||
execute_process(COMMAND node -p "require('node-addon-api').include"
|
||||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
||||
OUTPUT_VARIABLE NODE_ADDON_API_DIR
|
||||
)
|
||||
string(REPLACE "\n" "" NODE_ADDON_API_DIR ${NODE_ADDON_API_DIR})
|
||||
string(REPLACE "\"" "" NODE_ADDON_API_DIR ${NODE_ADDON_API_DIR})
|
||||
target_include_directories(${PROJECT_NAME} PRIVATE ${NODE_ADDON_API_DIR})
|
||||
|
||||
find_package(ImageMagick COMPONENTS Magick++ MagickCore)
|
||||
find_package(ImageMagick REQUIRED COMPONENTS Magick++ MagickCore)
|
||||
add_definitions(-DMAGICKCORE_QUANTUM_DEPTH=16)
|
||||
add_definitions(-DMAGICKCORE_HDRI_ENABLE=0)
|
||||
include_directories(${ImageMagick_INCLUDE_DIRS})
|
||||
|
@ -38,3 +30,8 @@ pkg_check_modules(VIPS REQUIRED vips-cpp)
|
|||
include_directories(${VIPS_INCLUDE_DIRS})
|
||||
link_directories(${VIPS_LIBRARY_DIRS})
|
||||
target_link_libraries(${PROJECT_NAME} ${VIPS_LIBRARIES})
|
||||
|
||||
if(MSVC AND CMAKE_JS_NODELIB_DEF AND CMAKE_JS_NODELIB_TARGET)
|
||||
# Generate node.lib
|
||||
execute_process(COMMAND ${CMAKE_AR} /def:${CMAKE_JS_NODELIB_DEF} /out:${CMAKE_JS_NODELIB_TARGET} ${CMAKE_STATIC_LINKER_FLAGS})
|
||||
endif()
|
27
package.json
27
package.json
|
@ -28,38 +28,43 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@top-gg/sdk": "^3.1.3",
|
||||
"cmake-js": "^6.3.2",
|
||||
"dotenv": "^16.0.3",
|
||||
"emoji-regex": "^10.2.1",
|
||||
"file-type": "^17.1.6",
|
||||
"file-type": "^18.0.0",
|
||||
"format-duration": "^2.0.0",
|
||||
"jsqr": "^1.4.0",
|
||||
"node-addon-api": "^5.0.0",
|
||||
"node-emoji": "^1.11.0",
|
||||
"oceanic.js": "1.1.2",
|
||||
"oceanic.js": "1.2.1",
|
||||
"qrcode": "^1.5.1",
|
||||
"sharp": "^0.30.7",
|
||||
"sharp": "^0.31.1",
|
||||
"shoukaku": "github:Deivu/shoukaku",
|
||||
"undici": "^5.11.0",
|
||||
"winston": "^3.8.2",
|
||||
"winston-daily-rotate-file": "^4.7.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.19.3",
|
||||
"@babel/core": "^7.19.6",
|
||||
"@babel/eslint-parser": "^7.19.1",
|
||||
"@babel/eslint-plugin": "^7.19.1",
|
||||
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
||||
"eslint": "^8.25.0",
|
||||
"eslint-plugin-unicorn": "^42.0.0"
|
||||
"cmake-js": "^7.0.0",
|
||||
"eslint": "^8.26.0",
|
||||
"eslint-plugin-unicorn": "^44.0.2"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"better-sqlite3": "^7.6.2",
|
||||
"bufferutil": "^4.0.6",
|
||||
"erlpack": "github:abalabahaha/erlpack",
|
||||
"pm2": "^5.2.0",
|
||||
"bufferutil": "^4.0.7",
|
||||
"erlpack": "^0.1.4",
|
||||
"pm2": "^5.2.2",
|
||||
"postgres": "^3.3.1",
|
||||
"uuid": "^8.3.2",
|
||||
"uuid": "^9.0.0",
|
||||
"ws": "^8.9.0",
|
||||
"zlib-sync": "^0.1.7"
|
||||
},
|
||||
"binary": {
|
||||
"napi_versions": [
|
||||
7
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
979
pnpm-lock.yaml
979
pnpm-lock.yaml
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue