-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpremake5.lua
52 lines (41 loc) · 1.48 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
--[[
HUI/MCU Output Logger
Utilized by Premake to generate project and solution files.
To generate projects and solutions, run the appropriate script in _Scripts.
Currently only supports Windows on Visual Studio 2019.
]]
local boostLocation = "../../_Libraries/boost_1_72_0" -- ATTN: Replace this with the path to your own boost installation!
workspace "HUI_MCU_OutputLogger"
configurations { "Debug", "Release" }
platforms { "Win64" } -- , "Win32" }
filter "configurations:Debug" defines { "DEBUG" } symbols "On"
filter "configurations:Release" defines { "RELEASE" } optimize "On"
filter "platforms:Win64" architecture "x86_64" defines "__WINDOWS_MM__"
-- filter "platforms:Win32" architecture "x86" defines "__WINDOWS_MM__"
filter {}
local outputdir = "%{cfg.shortname}"
project "HUI_MCU_OutputLogger"
location "project"
-- Build options
kind "ConsoleApp"
language "C++"
cppdialect "C++17"
staticruntime "On"
systemversion "latest"
-- Additional dependencies
filter "platforms:Win64"
links { "winmm.lib" }
filter {}
-- Include directories
includedirs { "project/vendor", boostLocation }
-- Source files
files
{
"project/src/**.h",
"project/src/**.cpp",
"project/vendor/rtmidi/RtMidi.h",
"project/vendor/rtmidi/RtMidi.cpp"
}
-- Build locations
targetdir ("bin/" .. outputdir)
objdir ("bin-int/" .. outputdir)