-
-
Notifications
You must be signed in to change notification settings - Fork 142
/
Copy pathproject.4coder
95 lines (88 loc) · 3.8 KB
/
project.4coder
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
version(1);
project_name = "Lumos";
open_recursively=true;
patterns = {
"*.c",
"*.cpp",
"*.h",
"*.hpp",
"*.m",
"*.mm",
"*.bat",
"*.sh",
"*.glsl",
"*.glslh",
"*.4coder",
"*.vert",
"*.frag",
"*.comp",
"*.shader",
"*.lua",
};
load_paths_base = {
{ "./Lumos/Source", .relative = true, .recursive = true, },
{ "./Lumos/Assets/Shaders", .relative = true, .recursive = true, },
{ "./Runtime", .relative = true, .recursive = true, },
{ "./Editor", .relative = true, .recursive = true, },
};
load_paths = {
{ load_paths_base, .os = "win", },
{ load_paths_base, .os = "linux", },
{ load_paths_base, .os = "mac", },
};
command_list = {
{ .name = "build",
.out = "*compilation*", .footer_panel = true, .save_dirty_files = true,.cursor_at_end = true,
.cmd = { { "Scripts\Windows\BuildWindows.bat" , .os = "win" },
{ "./Scripts/Linux/BuildLinux.sh", .os = "linux" },
{ "./Scripts/MacOS/BuildMacOS.sh", .os = "mac" }, }, },
{ .name = "run",
.out = "*Run - Release*", .footer_panel = true, .save_dirty_files = false,.cursor_at_end = true,
.cmd = { { "bin\\Release-windows-x86_64\\Runtime.exe", .os = "win" },
{ "./Scripts/Linux/RunLinux.sh" , .os = "linux" },
{ "./Scripts/MacOS/RunMacOS.sh" , .os = "mac" }, }, },
{ .name = "gen project",
.out = "*Generated Build Files*", .footer_panel = true, .save_dirty_files = false,.cursor_at_end = true,
.cmd = { { "Tools\premake5.exe vs2022", .os = "win" },
{ "Tools/linux/premake5 gmake2" , .os = "linux" },
{ "Tools/premake5 xcode4" , .os = "mac" }, }, },
{ .name = "clean",
.out = "*Clean*", .footer_panel = true, .save_dirty_files = false,.cursor_at_end = true,
.cmd = { { "Tools\premake5.exe clean", .os = "win" },
{ "Tools/linux/premake5 clean" , .os = "linux" },
{ "./Scripts/MacOS/CleanMacOS.sh" , .os = "mac" }, }, },
{ .name = "formatCode",
.out = "*Formatting Code*", .footer_panel = true, .save_dirty_files = false,.cursor_at_end = true,
.cmd = { { "", .os = "win" },
{ "" , .os = "linux" },
{ "cd Scripts ; ./ClangFormat.sh" , .os = "mac" }, }, },
{ .name = "compileShaders",
.out = "*Compile Shaders*", .footer_panel = true, .save_dirty_files = false,.cursor_at_end = true,
.cmd = { { "Lumos\Assets\Shaders\CompileShadersWindows.bat", .os = "win" },
{ "" , .os = "linux" },
{ "./Lumos/Assets/Shaders/CompileShadersMac.sh" , .os = "mac" }, }, },
{ .name = "buildEditor",
.out = "*Compilation - Editor - Release*", .footer_panel = true, .save_dirty_files = true,.cursor_at_end = true,
.cmd = { { "Scripts\Windows\BuildWindows-Editor.bat" , .os = "win" },
{ "./Scripts/Linux/BuildLinux-Editor.sh", .os = "linux" },
{ "./Scripts/MacOS/BuildMacOS-Editor.sh", .os = "mac" }, }, },
{ .name = "runEditor",
.out = "*Run - Editor - Release*", .footer_panel = true, .save_dirty_files = false,.cursor_at_end = true,
.cmd = { { "bin\\Release-windows-x86_64\\LumosEditor.exe", .os = "win" },
{ "./Scripts/Linux/RunLinux-Editor.sh" , .os = "linux" },
{ "./Scripts/MacOS/RunMacOS-Editor.sh" , .os = "mac" }, }, },
{ .name = "GitPull",
.out = "*Git Pull*", .footer_panel = true, .save_dirty_files = false,.cursor_at_end = true,
.cmd = { { "git pull", .os = "win" },
{ "git pull" , .os = "linux" },
{ "git pull", .os = "mac" }, }, },
};
fkey_command[1] = "gen project";
fkey_command[2] = "build";
fkey_command[3] = "run";
fkey_command[4] = "clean";
fkey_command[5] = "compileShaders";
fkey_command[6] = "formatCode";
fkey_command[7] = "buildEditor";
fkey_command[8] = "runEditor";
fkey_command[9] = "GitPull";