mirror of
https://gitee.com/idea4good/GuiLite.git
synced 2026-06-26 22:33:10 +08:00
add more function comment for HowToWork-cn.md
This commit is contained in:
@@ -45,15 +45,14 @@ FAQ: Error when open GuiLite project with Visual Studio, reconfigure the project
|
||||
- Output here: /GuiLite/Objects/GuiLite.lib
|
||||
|
||||
## How to port?
|
||||
Here are 2 options for porting. For option 1: you should build GuiLite library, and move all headers files & library to your project; For option 2: You do not need to build GuiLite library, just merge all GuiLite code into 1 header(GuiLite.h) & 1 source(GuiLite.cpp), then move the 2 files to your project.
|
||||
Here are 2 options for porting.
|
||||
|
||||
We recommend option 2, because of:
|
||||
- Easy to port - no need to buid library
|
||||
- Easy to move - just 2 files
|
||||
- Easy to manage header files - just 1 header file
|
||||
- Easy to debug - no library binary
|
||||
### Option 1: 1 Header & 1 Source
|
||||
1. Execute `1h-1cpp.sh` to merge the whole source code into: 1 header(GuiLite.h) & 1 source(GuiLite.cpp)
|
||||
2. Move GuiLite.h/GuiLite.cpp to your project
|
||||
3. Rebuild your project
|
||||
|
||||
### Option 1: Header & Library
|
||||
### Option 2: Headers & 1 Library
|
||||
- Headers: core_include, widgets_include
|
||||
- Library: The GuiLite library
|
||||
1. Move core_include/widgets_include to your project
|
||||
@@ -61,7 +60,10 @@ We recommend option 2, because of:
|
||||
3. Link GuiLite library to your project
|
||||
4. Rebuild your project
|
||||
|
||||
### Option 2: Header & Source
|
||||
1. Execute `1h-1cpp.sh` to merge the whole source code into: 1 header(GuiLite.h) & 1 source(GuiLite.cpp)
|
||||
2. Move GuiLite.h/GuiLite.cpp to your project
|
||||
3. Rebuild your project
|
||||
We recommend option 1, because of:
|
||||
- Easy to port - no need to buid library
|
||||
- Easy to move - just 2 files
|
||||
- Easy to manage header files - just 1 header file
|
||||
- Easy to debug - no library binary
|
||||
|
||||
On the other hand, for option 2: you should build GuiLite library, and move all headers files & library to your project.
|
||||
|
||||
Reference in New Issue
Block a user