Files
GdCpp12/3rdParty.md

33 lines
1.2 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# spdlog + fmt
spdlog: v1.15.0 2025-01-12 14:37 from https://github.com/gabime/spdlog
内嵌fmt v11.1 from https://github.com/fmtlib/fmt
两种调用方式dll和HEADER_ONLY。
如果需要dll调用c++编译选项的宏定义里需要增加SPDLOG_COMPILED_LIB没有设置默认SPDLOG_HEADER_ONLY.
编译dll时cmake改动的选项
开启BUILD_SHARED
关闭BUILD_TEST、BUILD_EXAMPLE
优化tweakme.h需要对应修改
SPDLOG_NO_ATOMIC_LEVELS
SPDLOG_WCHAR_FILENAMES
SPDLOG_WCHAR_TO_UTF8_SUPPORT
SPDLOG_DISABLE_DEFAULT_LOGGER
# json 3.11.3 2023-11-29
from https://github.com/nlohmann/json
# sqlite 3.47.2
from https://www.sqlite.org/
注意:
1. 没有区分debug、release版
2. 没有pdb
3. 没有lib但提供了一个def文件可以有def文件生成lib文件。
推荐方案:
编译前判断$(OutDir)中是否存在sqlite.lib文件是否存在不存在就从def文件生成lib文件。
实现方法:
在vc项目的生成事件/生成前事件:
命令行if not exist "$(OutDir)sqlite3.lib" lib /def:"$(SolutionDir)3rdParty\lib\sqlite3.def" /out:"$(OutDir)sqlite3.lib" /machine:x64
说明Generate sqlite3.lib from sqlite3.def if it does not exist