Remove dependency on shared

Signed-off-by: jiajia_deng <2894220@gmail.com>
This commit is contained in:
jiajia_deng 2019-09-20 16:27:58 +08:00
parent 57f53ae4ac
commit 4933d1f2bc
430 changed files with 1956 additions and 6130 deletions

View File

@ -29,7 +29,7 @@ NIM Duilib 包含了一整套桌面软件的开发部件,与其说这是一个
git clone https://github.com/netease-im/NIM_Duilib_Framework git clone https://github.com/netease-im/NIM_Duilib_Framework
``` ```
进入 `NIM_Duilib_Framework/samples` 目录,使用 Visual Studio 2013 Update 5 以上版本 IDE 打开 `samples.sln`,按下 F7 即可编译所有示例程序 进入 `NIM_Duilib_Framework/examples` 目录,使用 Visual Studio 2013 Update 5 以上版本 IDE 打开 `examples.sln`,按下 F7 即可编译所有示例程序
## 文档 ## 文档
@ -38,19 +38,17 @@ git clone https://github.com/netease-im/NIM_Duilib_Framework
## 目录 ## 目录
├─`base` 基础类库
├─`bin` 各个示例程序输出目录,包含预设的皮肤和语言文件以及 CEF 依赖 ├─`bin` 各个示例程序输出目录,包含预设的皮肤和语言文件以及 CEF 依赖
├─`docs` duilib 接口的说明文档 ├─`docs` duilib 接口的说明文档
├─`duilib` duilib 核心代码,依赖 base 但不依赖 shared
├─`libs` 静态库编译后的输出目录,包含预设的一些 CEF 组件静态库 ├─`libs` 静态库编译后的输出目录,包含预设的一些 CEF 组件静态库
├─`samples` 各类示例程序 ├─`examples` 各类示例程序源代码
├─`third_party` 第三方库,目前仅有 cef_control 有依赖 ├─`third_party` 第三方库,目前仅有 cef_control 有依赖
├─`toolkits` ├─`ui_components` 基于 duilib 封装的常用组件库如 `msgbox`、`toast`、`cef_control` 等
│ ├─`base` 基础类库
│ ├─`duilib` duilib 核心代码,依赖 base 但不依赖 shared
│ ├─`shared` 包含一些工具的封装,如命令行解析、日志、路径处理等
│ ├─`ui_components` 基于 duilib 封装的常用组件库如 `msgbox`、`toast`、`cef_control` 等
## 交流 ## 交流
- 遇到问题:欢迎查看我们整理过的[中文文档](docs/SUMMARY.md)参考[示例程序](samples/README.md)来帮助你解决疑惑 - 遇到问题:欢迎查看我们整理过的[中文文档](docs/SUMMARY.md)参考[示例程序](examples/README.md)来帮助你解决疑惑
- 提交缺陷:在确保使用最新版本依然存在问题时请尽量以简洁的语言描述清楚复现该问题的步骤并提交 issue - 提交缺陷:在确保使用最新版本依然存在问题时请尽量以简洁的语言描述清楚复现该问题的步骤并提交 issue
- 功能建议:如果你有什么好的想法或者提案,欢迎提交 issue 与我们交流 - 功能建议:如果你有什么好的想法或者提案,欢迎提交 issue 与我们交流

View File

@ -29,7 +29,7 @@ Clone the repo into your disk.
git clone https://github.com/netease-im/NIM_Duilib_Framework git clone https://github.com/netease-im/NIM_Duilib_Framework
``` ```
Enter the `NIM_Duilib_Framework/samples` directoryOpen `samples.sln` with Visual Studio 2013 Update 5 or higher press `F7` to compile all projects. Enter the `NIM_Duilib_Framework/examples` directoryOpen `examples.sln` with Visual Studio 2013 Update 5 or higher press `F7` to compile all projects.
## Documentation ## Documentation
@ -38,19 +38,17 @@ Enter the `NIM_Duilib_Framework/samples` directoryOpen `samples.sln` with Vis
## Structure ## Structure
├─`bin` Samples output directoriesinclude skin and language files and CEF dependencies. ├─`base` Base libraries.
├─`bin` Examples output directoriesinclude skin and language files and CEF dependencies.
├─`docs` Documentation of Duilib. ├─`docs` Documentation of Duilib.
├─`duilib` Duilib core, depend on base project.
├─`libs` Static library output directories, include CEF static library. ├─`libs` Static library output directories, include CEF static library.
├─`samples` Samples of Duilib. ├─`examples` Examples of Duilib.
├─`third_party` Third party for CEF. ├─`third_party` Third party for CEF.
├─`toolkits` ├─`ui_components` UI components based on Duilib, such as `msgbox`,`toast`,`cef_control`
│ ├─`base` Base libraries.
│ ├─`duilib` Duilib core, depend on base project.
│ ├─`shared` Utils, such as logs/string/path utils.
│ ├─`ui_components` UI components based on Duilib, such as `msgbox`,`toast`,`cef_control`
## Communication ## Communication
- Question: Read the [Documentation](docs/SUMMARY.md) and [Samples code](samples/README.md) to help you. - Question: Read the [Documentation](docs/SUMMARY.md) and [Examples code](examples/README.md) to help you.
- Report: File a bug in GitHub issues. - Report: File a bug in GitHub issues.
- Suggestion: Request a new feature in Github issues. - Suggestion: Request a new feature in Github issues.

View File

@ -175,28 +175,28 @@
</ImportGroup> </ImportGroup>
<PropertyGroup Label="UserMacros" /> <PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<OutDir>..\..\libs\</OutDir> <OutDir>$(ProjectDir)..\libs\</OutDir>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" /> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<IntDir>$(ProjectDir)..\..\tmp\$(PlatformName)\$(ProjectName)\$(Configuration)\</IntDir> <IntDir>$(ProjectDir)..\tmp\$(PlatformName)\$(ProjectName)\$(Configuration)\</IntDir>
<TargetName>$(ProjectName)_d</TargetName> <TargetName>$(ProjectName)_d</TargetName>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<TargetName>$(ProjectName)_d</TargetName> <TargetName>$(ProjectName)_d</TargetName>
<OutDir>..\..\libs\x64\</OutDir> <OutDir>$(ProjectDir)..\libs\x64\</OutDir>
<IntDir>$(ProjectDir)..\..\tmp\$(PlatformName)\$(ProjectName)\$(Configuration)\</IntDir> <IntDir>$(ProjectDir)..\tmp\$(PlatformName)\$(ProjectName)\$(Configuration)\</IntDir>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<OutDir>..\..\libs\</OutDir> <OutDir>$(ProjectDir)..\libs\</OutDir>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" /> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<IntDir>$(ProjectDir)..\..\tmp\$(PlatformName)\$(ProjectName)\$(Configuration)\</IntDir> <IntDir>$(ProjectDir)..\tmp\$(PlatformName)\$(ProjectName)\$(Configuration)\</IntDir>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<OutDir>..\..\libs\x64\</OutDir> <OutDir>$(ProjectDir)..\libs\x64\</OutDir>
<IntDir>$(ProjectDir)..\..\tmp\$(PlatformName)\$(ProjectName)\$(Configuration)\</IntDir> <IntDir>$(ProjectDir)..\tmp\$(PlatformName)\$(ProjectName)\$(Configuration)\</IntDir>
</PropertyGroup> </PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile> <ClCompile>

View File

@ -9,6 +9,16 @@
#include "base/thread/framework_thread.h" #include "base/thread/framework_thread.h"
#include "base/memory/singleton.h" #include "base/memory/singleton.h"
/**
* 线 ID 使
*/
enum ThreadIds
{
kThreadMain,
kThreadDatabase,
kThreadGlobalMisc,
};
namespace nbase namespace nbase
{ {
class MessageLoop; class MessageLoop;

Some files were not shown because too many files have changed in this diff Show More