-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpremake5.lua
60 lines (50 loc) · 1.03 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
workspace 'stx'
language 'C++'
cppdialect 'C++17'
configurations {
'dev',
'debug',
'release',
}
filter 'configurations:release or dev'
optimize 'Speed'
filter 'configurations:dev or debug'
symbols 'On'
filter 'configurations:debug'
optimize 'Debug'
filter 'configurations:release'
flags 'LinkTimeOptimization'
filter {}
filter { 'configurations:dev or debug', 'toolset:gcc or clang' }
buildoptions { '-Wall', '-Wextra', '-Wno-unused-parameter' }
filter {}
platforms {
'x64',
'x86',
'ARM',
}
defaultplatform 'x64'
filter 'platforms:x64'
architecture 'x86_64'
filter 'platforms:x86'
architecture 'x86'
filter 'platforms:ARM'
architecture 'ARM'
filter {}
flags { 'MultiProcessorCompile', 'NoIncrementalLink' }
vectorextensions 'SSE2'
floatingpoint 'Fast'
includedirs 'src/'
project 'stx'
kind 'SharedLib'
files 'src/**'
filter 'system:not windows'
links {'dl', 'pthread', 'stdc++fs'}
filter {}
project 'test'
kind 'ConsoleApp'
files 'test/unit/**'
links 'stx'
filter 'system:not windows'
links {'pthread'}
filter {}