-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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.vcxproj
to your solution; -
Add
core
project to your project's dependencies; -
Add
$(OutDir)include
to your project'sC/C++
->General
->Additional Include Directories
; -
Add
$(OutDir)
to your project'sLinker
->General
->Additional Library Directories
; -
Add
mmkv.lib
to 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/MTd
runtime 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 Toolset
if 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_CRYPT
inCore/MMKVPredef.h
to 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.vcxproj
with Visual Studio; -
Build the project (with
Release
orDebug
,x86
orx64
); -
Open the target folder (
Win32/MMKV/{x64}/Release
orWin32/MMKV/{x64}/Debug
); -
Copy static library
mmkv.lib
and symbolmmkv.pdb
to your library folder; -
Copy header files
include/MMKV
to your header folder; -
Add
mmkv.lib
to 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/MTd
runtime 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 Toolset
if 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_CRYPT
inCore/MMKVPredef.h
to 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