forked from Black-Tek/BlackTek-MapEditor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpremake5.lua
More file actions
67 lines (56 loc) · 1.97 KB
/
premake5.lua
File metadata and controls
67 lines (56 loc) · 1.97 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
workspace "Black-Tek-Mapeditor"
configurations { "Debug", "Release" }
platforms { "64" }
location ""
editorintegration "On"
project "Black-Tek-Mapeditor"
kind "WindowedApp"
language "C++"
cppdialect "C++20"
targetdir "%{wks.location}"
objdir "build/%{cfg.buildcfg}/obj"
location ""
files { "source/**.cpp", "source/**.h" }
flags { "LinkTimeOptimization", "MultiProcessorCompile" }
vectorextensions "AVX"
-- Add wxWidgets, zlib, fmt, OpenGL, GLUT, and wxGL dependencies for Linux
filter "system:linux"
includedirs { "/usr/include/wx-3.2" } -- Optional, as wx-config usually handles this
buildoptions { "`wx-config --cxxflags`" }
linkoptions { "`wx-config --libs`", "-lwx_gtk3u_aui-3.2", "-lwx_gtk3u_gl-3.2", "-lz", "-lfmt", "-lGL", "-lglut" }
filter {}
filter "configurations:Debug"
defines { "DEBUG" }
symbols "On"
optimize "Debug"
filter {}
filter "configurations:Release"
defines { "NDEBUG" }
symbols "On"
optimize "Speed"
filter {}
filter "platforms:64"
architecture "amd64"
filter {}
filter "system:not windows"
buildoptions { "-Wall", "-Wextra", "-pedantic", "-pipe", "-fvisibility=hidden", "-Wno-unused-local-typedefs" }
filter {}
filter "system:windows"
openmp "On"
characterset "MBCS"
debugformat "c7"
vsprops { VcpkgEnableManifest = "true" }
buildoptions { "/bigobj", "/utf-8" }
linkoptions { "/IGNORE:4099" }
filter {}
filter "toolset:gcc"
buildoptions { "-fno-strict-aliasing" }
buildoptions { "-std=c++20" }
filter {}
filter "toolset:clang"
buildoptions { "-Wimplicit-fallthrough", "-Wmove" }
filter {}
filter { "system:macosx", "action:gmake" }
buildoptions { "-fvisibility=hidden" }
filter {}
intrinsics "On"