This repository was archived by the owner on Jul 31, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpremake5.lua
93 lines (71 loc) · 1.97 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
---
-- Premake Next build configuration script
-- Use this script to configure the project with Premake5.
---
workspace 'Premake6'
configurations { 'Release', 'Debug' }
filter { 'system:windows' }
platforms { 'x86', 'x64' }
project 'Premake6'
targetname 'premake6'
language 'C'
kind 'ConsoleApp'
files
{
'core/host/src/**.h',
'core/host/src/**.c',
'core/host/src/**.lua',
'core/contrib/lua/src/**.h',
'core/contrib/lua/src/**.c'
}
removefiles
{
'core/contrib/lua/src/lua.c',
'core/contrib/lua/src/luac.c',
'core/contrib/lua/src/print.c',
'core/contrib/lua/**.lua',
'core/contrib/lua/etc/*.c'
}
includedirs
{
'core/include',
'core/contrib'
}
flags { 'MultiProcessorCompile' }
staticruntime 'On'
warnings 'Extra'
filter 'configurations:Debug'
defines '_DEBUG'
symbols 'On'
targetdir 'bin/debug'
debugargs { '--scripts=%{prj.location}/%{path.getrelative(prj.location, prj.basedir)}' }
debugdir '.'
filter 'configurations:Release'
defines 'NDEBUG'
optimize 'Full'
flags { 'NoBufferSecurityCheck', 'NoRuntimeChecks' }
targetdir 'bin/release'
filter 'system:windows'
links { 'ole32', 'ws2_32', 'advapi32' }
filter { 'system:windows', 'configurations:Release' }
flags { 'NoIncrementalLink', 'LinkTimeOptimization' }
filter 'system:linux or bsd or hurd'
defines { 'LUA_USE_POSIX', 'LUA_USE_DLOPEN' }
links { 'm' }
linkoptions { '-rdynamic' }
filter 'system:linux or hurd'
links { 'dl', 'rt' }
filter 'system:macosx'
defines { 'LUA_USE_MACOSX' }
links { 'CoreServices.framework', 'Foundation.framework', 'Security.framework', 'readline' }
filter { 'system:macosx', 'action:gmake' }
toolset 'clang'
filter { 'system:solaris' }
links { 'm', 'socket', 'nsl' }
filter 'system:aix'
defines { 'LUA_USE_POSIX', 'LUA_USE_DLOPEN' }
links { 'm' }
filter 'action:vs*'
defines { '_CRT_SECURE_NO_DEPRECATE', '_CRT_SECURE_NO_WARNINGS', '_CRT_NONSTDC_NO_WARNINGS' }
filter 'toolset:clang'
disablewarnings 'string-plus-int'