-
Notifications
You must be signed in to change notification settings - Fork 0
/
premake5.lua
92 lines (86 loc) · 1.85 KB
/
premake5.lua
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
workspace "Engine"
architecture "x86_64"
startproject "Engine"
configurations
{
"Windows",
"Wii"
}
flags
{
"MultiProcessorCompile"
}
outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}"
include "Engine/third-party/glfw"
include "Engine/third-party/glad"
include "Engine/third-party/imgui"
project "Engine"
location "Engine"
kind "ConsoleApp"
language "C++"
cppdialect "C++17"
staticruntime "on"
files
{
"%{prj.name}/src/*.h",
"%{prj.name}/src/*.cpp",
"%{prj.name}/src/third-party/**.h",
"%{prj.name}/src/third-party/**.cpp",
"%{prj.name}/src/third-party/**.cc"
}
includedirs
{
"%{prj.name}/src",
"%{prj.name}/src/third-party",
}
links
{
"GLAD",
"GLFW",
"IMGUI",
"opengl32.lib"
}
filter "configurations:Windows"
runtime "Debug"
symbols "on"
files
{
"%{prj.name}/src/windows/**.h",
"%{prj.name}/src/windows/**.cpp",
"%{prj.name}/third-party/glm/glm/**.hpp",
"%{prj.name}/third-party/glm/glm/**.inl",
}
includedirs
{
"%{prj.name}/src/windows",
"%{prj.name}/src/windows/third-party",
"%{prj.name}/third-party/glfw/include",
"%{prj.name}/third-party/glad/include",
"%{prj.name}/third-party/imgui",
"%{prj.name}/third-party/glm",
"%{prj.name}/third-party/stb_image",
}
defines
{
"WINDOWS",
"GLFW_INCLUDE_NONE",
"STB_IMAGE_IMPLEMENTATION"
}
filter "configurations:Wii"
defines "WII"
runtime "Release"
optimize "on"
files
{
"%{prj.name}/src/wii/**.h",
"%{prj.name}/src/wii/**.cpp",
"%{prj.name}/src/wii/**.cc"
}
includedirs
{
"%{prj.name}/src/wii",
"%{prj.name}/src/wii/third-party",
"F:/devkitPro/libogc/include",
"F:/devkitPro/devkitPPC/powerpc-eabi/include",
"F:/devkitPro/devkitPPC/lib/gcc/powerpc-eabi/6.3.0/include"
}