-
-
Couldn't load subscription status.
- Fork 2k
windows_setup
MMKV is an efficient, small, easy-to-use mobile key-value storage framework used in the WeChat application. It's currently available on both Android, iOS/macOS, Windows and POSIX.
- Windows XP and above are supported.
- Visual Studio 2019 and above.
-
Via Source
-
Getting source code from the git repository:
git clone https://github.com/Tencent/MMKV.git
-
Add
Core/core.vcxprojto your solution; -
Add
coreproject to your project's dependencies; -
Add
$(OutDir)includeto your project'sC/C++->General->Additional Include Directories; -
Add
$(OutDir)to your project'sLinker->General->Additional Library Directories; -
Add
mmkv.libto your project'sLinker->Input->Additional Dependencies; -
Add
#include <MMKV/MMKV.h>to your source file and we are done.
note:
- MMKV is compiled with
MT/MTdruntime by default. If your project usesMD/MDd, you should change MMKV's setting to match your project's (C/C++->Code Generation->Runtime Library), or wise versa. - MMKV is developed with Visual Studio 2022, change the
Platform Toolsetif you use a different version of Visual Studio. - If you are pretty sure that encryption is not needed, you can turn on the preprocess directive
MMKV_DISABLE_CRYPTinCore/MMKVPredef.hto save some binary size.
-
-
Build library from Source
-
Getting source code from the git repository:
git clone https://github.com/Tencent/MMKV.git
-
Open
Core/core.vcxprojwith Visual Studio; -
Build the project (with
ReleaseorDebug,x86orx64); -
Open the target folder (
Win32/MMKV/{x64}/ReleaseorWin32/MMKV/{x64}/Debug); -
Copy static library
mmkv.liband symbolmmkv.pdbto your library folder; -
Copy header files
include/MMKVto your header folder; -
Add
mmkv.libto your project'sLinker->Input->Additional Dependencies; -
Add
#include <MMKV/MMKV.h>to your source file and we are done.
note:
- MMKV is compiled with
MT/MTdruntime by default. If your project usesMD/MDd, you should change MMKV's setting to match your project's (C/C++->Code Generation->Runtime Library), or wise versa. - MMKV is developed with Visual Studio 2022, change the
Platform Toolsetif you use a different version of Visual Studio. - If you are pretty sure that encryption is not needed, you can turn on the preprocess directive
MMKV_DISABLE_CRYPTinCore/MMKVPredef.hto save some binary size.
-
MMKV is published under the BSD 3-Clause license. For details check out the LICENSE.TXT.
Check out the CHANGELOG.md for details of change history.
If you are interested in contributing, check out the CONTRIBUTING.md, also join our Tencent OpenSource Plan.
To give clarity of what is expected of our members, MMKV has adopted the code of conduct defined by the Contributor Covenant, which is widely used. And we think it articulates our values well. For more, check out the Code of Conduct.
Check out the FAQ first. Should there be any questions, don't hesitate to create issues.
User privacy is taken very seriously: MMKV does not obtain, collect or upload any personal information. Please refer to the MMKV SDK Personal Information Protection Rules for details.
- In English
- 中文
- In English
- 中文
- In English
- 中文
-
In English
-
中文
-
Golang
- In English
- 中文