-
Notifications
You must be signed in to change notification settings - Fork 0
/
premake.lua
59 lines (43 loc) · 2.23 KB
/
premake.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
workspace "fifa-transfers"
filename "ftfs"
configurations { "debug", "release" }
architecture "x86_64"
------------------------------------------------------------------------------------------------------------------------------------------------
project "fifa-transfers"
filename "ftfs"
staticruntime "on"
language "C++"
cppdialect "C++17"
targetname "ftfs"
targetdir "bin/%{cfg.buildcfg}/"
objdir "objs/%{prj.name}/%{cfg.buildcfg}/"
includedirs { "src", "libs/asio/asio/include", "libs/irrklang/include", "libs/freetype/include", "libs/glad/include",
"libs/glfw/include", "libs/glm", "libs/stb", "libs/json/include" }
files { "src/**.h", "src/**.cpp", "src/**.c", "src/**.tpp" }
-- Project platform define macro based on identified system
filter "system:windows"
defines "_PLATFORM_WINDOWS"
filter "system:macosx"
defines "_PLATFORM_MACOSX"
-- Project settings with values unique to the Debug/Release configurations
filter "configurations:debug"
kind "ConsoleApp"
libdirs { "libs/irrklang/bin", "libs/freetype/build/Debug", "libs/glfw/build/src/Debug" }
links { "glfw3", "freetyped", "irrKlang" }
defines { "_DEBUG" }
symbols "On"
filter "configurations:release"
kind "WindowedApp"
entrypoint "mainCRTStartup"
libdirs { "libs/irrklang/bin", "libs/freetype/build/Release", "libs/glfw/build/src/Release" }
links { "glfw3", "freetype", "irrKlang" }
defines { "NDEBUG" }
optimize "Speed"
-- Copy required DLL lib files into game executable directory when building
filter { "system:windows", "configurations:debug" }
postbuildcommands { "copy libs\\irrklang\\bin\\irrKlang.dll bin\\debug\\irrKlang.dll",
"copy libs\\irrklang\\bin\\ikpMP3.dll bin\\debug\\ikpMP3.dll" }
filter { "system:windows", "configurations:release" }
postbuildcommands { "copy libs\\irrklang\\bin\\irrKlang.dll bin\\release\\irrKlang.dll",
"copy libs\\irrklang\\bin\\ikpMP3.dll bin\\release\\ikpMP3.dll" }
------------------------------------------------------------------------------------------------------------------------------------------------