Skip to content

Commit f3b64c1

Browse files
committed
添加多个依赖库,更新Readme,添加premake构建系统
1 parent bc8206e commit f3b64c1

File tree

19 files changed

+290
-25
lines changed

19 files changed

+290
-25
lines changed

.gitignore

Lines changed: 46 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,54 @@
1-
# Prerequisites
2-
*.d
1+
# Binaries
2+
**/bin/
3+
**/bin-int/
4+
Intermediates/
5+
**/Binaries/
36

4-
# Compiled Object files
5-
*.slo
6-
*.lo
7-
*.o
8-
*.obj
7+
# Visual Studio Code
8+
.vscode/
9+
*.code-workspace
10+
.history/
911

10-
# Precompiled Headers
11-
*.gch
12-
*.pch
12+
# Visual Studio files and folder
13+
.vscode/
14+
.vs/
15+
**.sln
16+
**.vcxproj
17+
**.vcxproj.filters
18+
**.vcxproj.user
19+
**.csproj**
1320

14-
# Compiled Dynamic libraries
15-
*.so
16-
*.dylib
17-
*.dll
21+
# Visual Studio build outputs
22+
*.suo
23+
*.vspscc
24+
*.vssscc
25+
*.user
26+
*.aps
27+
*.pch
1828

19-
# Fortran module files
20-
*.mod
21-
*.smod
29+
# OS generated
30+
.DS_Store
31+
Thumbs.db
2232

23-
# Compiled Static libraries
24-
*.lai
25-
*.la
33+
# C/C++ generated
2634
*.a
35+
*.ax
36+
*.d
37+
*.dll
2738
*.lib
39+
*.lo
40+
*.o
41+
*.os
42+
*.ox
43+
*.Plo
44+
*.so
45+
46+
# Binutils tmp linker output of the form "stXXXXXX" where "X" is alphanumeric
47+
st[A-Za-z0-9][A-Za-z0-9][A-Za-z0-9][A-Za-z0-9][A-Za-z0-9][A-Za-z0-9]
48+
49+
# Python generated
50+
__pycache__/
51+
*.pyc
2852

29-
# Executables
30-
*.exe
31-
*.out
32-
*.app
53+
# Documentation
54+
doc/_build/

.gitmodules

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
[submodule "thirdparty/imnodes"]
2+
path = thirdparty/imnodes
3+
url = [email protected]:YINGHAIDADA/imnodes.git
4+
[submodule "thirdparty/imgui"]
5+
path = thirdparty/imgui
6+
url = https://github.com/YINGHAIDADA/imgui
7+
branch = docking
8+
[submodule "thirdparty/rapidjson"]
9+
path = thirdparty/rapidjson
10+
url = https://github.com/YINGHAIDADA/rapidjson.git
11+
[submodule "thirdparty/glfw"]
12+
path = thirdparty/glfw
13+
url = https://github.com/YINGHAIDADA/glfw.git
14+
[submodule "thirdparty/glm"]
15+
path = thirdparty/glm
16+
url = https://github.com/g-truc/glm.git
17+
[submodule "thirdparty/spdlog"]
18+
path = thirdparty/spdlog
19+
url = https://github.com/gabime/spdlog.git

Dependencies.lua

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
2+
VULKAN_SDK = os.getenv("VULKAN_SDK")
3+
4+
IncludeDir = {}
5+
IncludeDir["glfw"] = "%{wks.location}/thirdparty/glfw/include"
6+
IncludeDir["Glad"] = "%{wks.location}/thirdparty/Glad/include"
7+
IncludeDir["ImGui"] = "%{wks.location}/thirdparty/imgui"
8+
IncludeDir["glm"] = "%{wks.location}/thirdparty/glm"
9+
-- IncludeDir["stb_image"] = "%{wks.location}/thirdparty/stb_image"
10+
IncludeDir["imnodes"] = "%{wks.location}/thirdparty/imnodes"
11+
IncludeDir["rapidjson"] = "%{wks.location}/thirdparty/rapidjson/include"
12+
13+
LibraryDir = {}
14+
15+
Library = {}
16+
17+
-- Windows
18+
Library["WinSock"] = "Ws2_32.lib"
19+
Library["WinMM"] = "Winmm.lib"
20+
Library["WinVersion"] = "Version.lib"
21+
Library["BCrypt"] = "Bcrypt.lib"

Generate.bat

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
@echo off
2+
call vendor\premake\bin\premake5.exe vs2022
3+
popd
4+
PAUSE

NodeEditor.lua

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
project "NodeEditor"
2+
kind "ConsoleApp"
3+
language "C++"
4+
cppdialect "C++17"
5+
staticruntime "off"
6+
7+
targetdir ("%{wks.location}/bin/" .. outputdir .. "/%{prj.name}")
8+
objdir ("%{wks.location}/bin-int/" .. outputdir .. "/%{prj.name}")
9+
10+
-- pchheader "cnpch.h"
11+
-- pchsource "src/cnpch.cpp"
12+
13+
files
14+
{
15+
"main/**.h",
16+
"main/**.cpp",
17+
"core/**.h",
18+
"core/**.cpp",
19+
"drivers/**.h",
20+
"drivers/**.cpp",
21+
"platform/**.h",
22+
"platform/**.cpp",
23+
"thirdparty/glm/glm/**.hpp",
24+
"thirdparty/glm/glm/**.inl",
25+
"thirdparty/imnodes/imnodes.h",
26+
"thirdparty/imnodes/imnodes.cpp",
27+
"thirdparty/imnodes/imnodes_internal.h",
28+
"thirdparty/rapidjson/include/**.h",
29+
-- "thirdparty/stb_image/**.h",
30+
-- "thirdparty/stb_image/**.cpp",
31+
32+
}
33+
34+
includedirs
35+
{
36+
"main",
37+
"core",
38+
"drivers",
39+
"platform",
40+
"%{wks.location}/thirdparty/spdlog/include",
41+
"%{IncludeDir.glfw}",
42+
"%{IncludeDir.Glad}",
43+
"%{IncludeDir.imgui}",
44+
"%{IncludeDir.glm}",
45+
"%{IncludeDir.imnodes}",
46+
"%{IncludeDir.rapidjson}",
47+
}
48+
49+
links
50+
{
51+
"GLFW",
52+
"Glad",
53+
"ImGui",
54+
55+
"opengl32.lib",
56+
}
57+
58+
defines
59+
{
60+
"_CRT_SECURE_NO_WARNINGS",
61+
"GLFW_INCLUDE_NONE",
62+
}
63+
64+
filter "system:windows"
65+
systemversion "latest"
66+
67+
defines
68+
{
69+
"NE_PLATFORM_WINDOWS",
70+
}
71+
72+
links
73+
{
74+
"%{Library.WinSock}",
75+
"%{Library.WinMM}",
76+
"%{Library.WinVersion}",
77+
"%{Library.BCrypt}",
78+
}
79+
80+
filter "configurations:Debug"
81+
defines "NE_DEBUG"
82+
runtime "Debug"
83+
symbols "on"
84+
85+
links
86+
{
87+
88+
}
89+
90+
filter "configurations:Release"
91+
defines "NE_RELEASE"
92+
runtime "Release"
93+
optimize "on"
94+
95+
links
96+
{
97+
}

README.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,23 @@
1-
# NodeEditor
1+
<p align="center">
2+
<!-- <img width="auto" src="" > -->
3+
<h1 align="center" style="margin: 0 auto 0 auto;">NodeEditor</h1>
4+
</p>
5+
<br>
6+
<p align="center">
7+
<img src="https://img.shields.io/github/contributors/opacity-black/NodeEditor?color=0088f&style=for-the-badge&logo=github">
8+
<img src="https://img.shields.io/github/issues/opacity-black/NodeEditor?color=4682f2&style=for-the-badge&logo=github">
9+
<img src="https://img.shields.io/github/stars/opacity-black/NodeEditor?color=f7bb05&style=for-the-badge&logo=github">
10+
<img alt="Views" src="https://komarev.com/ghpvc/?username=NodeEditor&color=22d495&label=Views&style=for-the-badge">
11+
<p>
12+
13+
## 简介
14+
NodeEditor是一个C++开发的一款多功能自动化流程软件,旨在帮助用户通过可视化界面创建、编辑和管理复杂的自动化流程。该软件将提供强大的节点编辑功能、灵活的流程控制和丰富的集成接口
15+
16+
## 开始
17+
18+
```shell
19+
git clone --recursive https://github.com/opacity-black/NodeEditor.git
20+
cd NodeEditor
21+
git submodule update --init --recursive
22+
23+
```

core/init

Whitespace-only changes.

drivers/init

Whitespace-only changes.

main/init

Whitespace-only changes.

platform/init

Whitespace-only changes.

0 commit comments

Comments
 (0)