-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpremake5.lua
More file actions
109 lines (87 loc) · 1.75 KB
/
Copy pathpremake5.lua
File metadata and controls
109 lines (87 loc) · 1.75 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
100
101
102
103
104
105
106
107
108
109
workspace "Win32WPF"
startproject "Win32WPF"
configurations
{
"Debug",
"Release",
"Dist"
}
outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}"
-- Include directories relative to root folder (solution directory)
IncludeDir = {}
IncludeDir["Glad"] = "CppDll/Vendor/Glad/include"
IncludeDir["GLFW"] = "CppDll/Vendor/GLFW/include"
include "CppDll/Vendor/Glad"
include "CppDll/Vendor/GLFW"
project "CppDll"
location "CppDll"
kind "SharedLib"
language "C++"
cppdialect "C++17"
architecture "x86_64"
staticruntime "off"
targetdir ("bin/" .. outputdir .. "/%{prj.name}")
objdir ("bin-int/" .. outputdir .. "/%{prj.name}")
pchheader "pch.h"
pchsource "CppDll/src/pch.cpp"
files
{
"%{prj.name}/src/**.h",
"%{prj.name}/src/**.cpp",
}
defines
{
"_CRT_SECURE_NO_WARNINGS"
}
includedirs
{
"%{prj.name}/src",
"%{IncludeDir.Glad}",
"%{IncludeDir.GLFW}",
}
links
{
"Glad",
"GLFW",
"opengl32.lib"
}
filter "system:windows"
systemversion "latest"
defines
{
"ME_PLATFORM_WINDOWS",
"ME_DYNAMIC_LINK",
"ME_BUILD_DLL",
"GLFW_INCLUDE_NONE"
}
postbuildcommands
{
("{COPY} %{cfg.buildtarget.relpath} \"../bin/" .. outputdir .. "/Win32WPF/\"")
}
filter "configurations:Debug"
defines "ME_DEBUG"
runtime "Debug"
symbols "on"
filter "configurations:Release"
defines "ME_RELEASE"
runtime "Release"
optimize "on"
filter "configurations:Dist"
defines "ME_DIST"
runtime "Release"
optimize "on"
project "Win32WPF"
location "Win32WPF"
kind "WindowedApp"
language "C#"
dotnetframework "net8.0-windows"
targetdir ("bin/" .. outputdir .. "x86_64/%{prj.name}")
objdir ("bin-int/" .. outputdir .. "x86_64/%{prj.name}")
flags
{
"WPF"
}
files
{
"%{prj.name}/*.cs",
}