-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpremake5.lua
More file actions
57 lines (45 loc) · 1.62 KB
/
premake5.lua
File metadata and controls
57 lines (45 loc) · 1.62 KB
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
-- ============================================================
-- premake5 build rules for covbr2html
-- ============================================================
buildoptions_vs = '/std:c++17 /MP /W4 /O2 /Ot /wd4100 /wd4103'
-- /wd4244 illegal conversion
buildoptions_gcc = '-std=c++17 -O3 -pedantic-errors -Wall'
somcpp = '../submodules/somcpp/'
somsrc = somcpp .. 'src/'
workspace 'covbr2html'
configurations { 'ci', 'trace_on', 'trace_all', 'glob_linux', 'glob_linux_trace_all' }
language 'C++'
targetdir '../build'
objdir '../build/%{_TARGET_OS}/%{cfg.name}'
defines { 'NDEBUG' }
optimize 'Speed'
kind 'ConsoleApp'
filter { 'action:vs*' }
warnings 'high'
buildoptions { buildoptions_vs }
defines { '_CRT_SECURE_NO_WARNINGS' }
filter { 'action:gmake*' }
buildoptions { buildoptions_gcc }
linkoptions { '-pthread' }
filter { 'configurations:trace_on' }
defines { 'TRACE_ON' }
filter { 'configurations:trace_all' }
defines { 'TRACE_ALL' }
filter { 'configurations:glob_linux' }
defines { 'GLOB_LINUX' }
filter { 'configurations:glob_linux_trace_all' }
defines { 'GLOB_LINUX', 'TRACE_ALL' }
project 'covbr2html'
includedirs { '../code', somcpp .. '/include' }
files {
'../code/*.cpp',
somsrc .. 'Glob.cpp',
somsrc .. 'fio.cpp',
somsrc .. 'docopts.cpp'
}
-- project 'lab'
-- includedirs { '../lab', '../code', somcpp .. '/include' }
-- files {
-- '../lab/*.cpp',
-- somsrc .. '*.cpp'
-- }