-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpremake5.lua
More file actions
73 lines (61 loc) · 2.16 KB
/
premake5.lua
File metadata and controls
73 lines (61 loc) · 2.16 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
workspace "gmsv_binarytable"
configurations { "Release" }
location ("projects/" .. os.target())
-- 32-bit
project "gmsv_binarytable_32"
kind "SharedLib"
language "C++"
architecture "x86" -- 32-bit
includedirs { "gmod-module-base/include/" }
targetdir "build" -- separate output folder
symbols "On"
targetname "gmsv_binarytable"
targetextension ".dll"
targetprefix ""
filter "system:windows"
targetsuffix "_win32"
targetextension ".dll"
staticruntime "On"
filter { "configurations:Release", "system:windows" }
optimize "Speed"
linktimeoptimization "On"
defines { "BUILDAVX512" }
filter "system:linux"
optimize "Speed"
targetsuffix "_linux" -- gmod wants _linux not _linux32
targetextension ".dll"
-- Linux can work with BUILDAVX512 but it causes illegal instructions because the flags are compiling it weirdly. No idea how to fix it. If you do please make a pull request.
filter { "configurations:Release", "system:not windows" }
optimize "Speed"
linktimeoptimization "On"
filter {}
files { "source/**.*" }
-- 64-bit
project "gmsv_binarytable_64"
kind "SharedLib"
language "C++"
architecture "x86_64" -- 64-bit
includedirs { "gmod-module-base/include/" }
targetdir "build" -- separate output folder
symbols "On"
targetname "gmsv_binarytable"
targetextension ".dll"
targetprefix ""
filter "system:windows"
targetsuffix "_win64"
targetextension ".dll"
staticruntime "On"
filter { "configurations:Release", "system:windows" }
optimize "Speed"
linktimeoptimization "On"
defines { "BUILDAVX512" }
filter "system:linux"
optimize "Speed"
targetsuffix "_linux64"
targetextension ".dll"
-- Linux can work with BUILDAVX512 but it causes illegal instructions because the flags are compiling it weirdly. No idea how to fix it. If you do please make a pull request.
filter { "configurations:Release", "system:not windows" }
optimize "Speed"
linktimeoptimization "On"
filter {}
files { "source/**.*" }