-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpremake5.lua
79 lines (67 loc) · 1.77 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
SolutionName = 'SysInfo'
rootpath = '%{wks.location}/../'
buildpath = function(p) return rootpath..'Bin/'..p..'/' end
objpath = rootpath..'Build/obj/%{cfg.platform}/%{cfg.buildcfg}'
copy = function(p) return '{COPY} %{cfg.buildtarget.abspath} "'..rootpath..p..'/"' end
workspace ( SolutionName )
configurations { "Debug", "Release" }
platforms { 'x86', 'x64' }
cppdialect 'C++latest'
characterset 'MBCS'
pic 'On'
symbols 'On'
flags 'MultiProcessorCompile'
location 'Build'
includedirs {
'hpp'
}
filter {}
defines { 'SYSINFO_BUILD' }
filter 'platforms:x86'
architecture 'x86'
filter 'platforms:x64'
architecture 'x86_64'
filter 'configurations:Debug'
defines { '_DEBUG' }
targetsuffix '_d'
runtime 'Debug'
optimize 'Debug'
symbols "On"
filter 'configurations:Release'
defines { 'NDEBUG' }
targetsuffix ''
runtime 'Release'
optimize 'Speed'
symbols "Off"
filter 'system:windows'
toolset 'v143'
preferredtoolarchitecture 'x86_64'
staticruntime 'On'
defines {
'_WIN32',
'WIN32_LEAN_AND_MEAN',
'NOMINMAX',
}
buildoptions { '/Zc:__cplusplus' }
project ( SolutionName )
kind 'SharedLib'
language "C++"
targetname ( SolutionName )
targetdir(buildpath('.'))
debugdir(buildpath('.'))
--objdir(objpath)
pchheader "pch.hpp"
pchsource "pch.cpp"
vpaths {
['Headers/*'] = { 'hpp/SysInfo/**.hpp', 'src/**.hpp' },
['Sources/*'] = 'src/**.cpp',
['Resources/*'] = { '**.manifest', 'premake5.lua' },
}
files {
'premake5.lua',
'src/**.hpp',
'src/**.cpp',
'hpp/**.hpp',
'**.manifest',
}
filter {}