Repository navigation
Expand file tree
/
Copy pathprojects.lua
More file actions
99 lines (78 loc) · 2.23 KB
/
Copy pathprojects.lua
File metadata and controls
99 lines (78 loc) · 2.23 KB
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
96
97
98
99
local resource_packer = _SCRIPT_DIR .. "/tools/out/resource_packer.exe"
project "borealis"
kind "StaticLib"
language "C++"
cppdialect "C++23"
targetdir "lib"
objdir "build"
dependson {"glad", "tinygltf", "resource_packer", "glfw", "freetype"}
files {
"src/**.cpp",
"src/**.c",
"include/**.h",
"include/**.hpp",
"default_assets/**.frag",
"default_assets/**.vert",
"default_assets/**.shdinc",
"default_assets/**.png",
"default_assets/**.glb",
}
includedirs {
"include",
"ext/glad/include",
"ext/glm",
"ext/stb/",
"ext/glfw/include",
"ext/assimp/include",
"ext/tinygltf",
"ext/freetype/include",
"ext"
}
libdirs {
"ext/glad/lib",
}
prebuildcommands { resource_packer.." ".._SCRIPT_DIR.."/default_assets/ ".._MAIN_SCRIPT_DIR.."/out/default_assets.res" }
postbuildcommands {"setx BOREALIS_DIR \"".._SCRIPT_DIR .. "\""}
links {
"glad",
"glfw3",
"opengl32",
"gdi32",
}
filter "configurations:Debug*"
symbols "On"
defines { "DEBUG" }
buildoptions { "-Wall", "-fcompare-debug-second" }
filter "configurations:Release"
optimize "On"
defines { "NDEBUG" }
buildoptions { "-Wall", "-fcompare-debug-second" }
project "resource_packer"
kind "ConsoleApp"
language "C++"
cppdialect "C++20"
targetdir "tools/out/"
objdir "build"
files {
"tools/src/**.cpp",
"tools/src/**.c",
"tools/include/**.h",
"tools/include/**.hpp"
}
includedirs {
"tools/include",
}
debugargs {_SCRIPT_DIR.."/default_assets/",_MAIN_SCRIPT_DIR.."/out/default_assets.res"}
filter "configurations:Debug*"
symbols "On"
defines { "DEBUG" }
buildoptions { "-Wall", "-fcompare-debug-second" }
filter "configurations:Release"
optimize "On"
defines { "NDEBUG" }
buildoptions { "-Wall", "-fcompare-debug-second" }
include("ext/glad/premake5.lua")
include("ext/glfw/premake5.lua")
include("ext/stb/premake5.lua")
include("ext/glm/premake5.lua")
include("ext/freetype/premake5.lua")