This repository was archived by the owner on Sep 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpremake4.lua
More file actions
74 lines (68 loc) · 1.35 KB
/
Copy pathpremake4.lua
File metadata and controls
74 lines (68 loc) · 1.35 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
74
solution "CWUtil"
language "C++"
location ("build/".._ACTION)
flags {"Symbols", "NoEditAndContinue", "NoPCH", "StaticRuntime", "EnableSSE"}
targetdir "release"
if os.is("linux") or os.is("macosx") then
buildoptions {"-m32 -fPIC -L/usr/lib -ldl -static-libgcc -static-libstdc++ -std=c++0x"}
linkoptions {"-m32 -fPIC -ldl -lpthread -static-libgcc -static-libstdc++ -std=c++0x"}
end
configurations
{
"Debug",
"Release"
}
defines {"NDEBUG"}
flags{"OptimizeSpeed", "FloatFast"}
project "gmsv_cwutil"
kind "SharedLib"
defines {"GMMODULE"}
flags {"Symbols", "NoEditAndContinue", "NoPCH", "StaticRuntime", "EnableSSE"}
files {
"source/*.h",
"source/*.cpp",
"source/*.c"
}
if os.is("linux") or os.is("macosx") then
targetsuffix "_linux"
links {
"Bootil"
}
includedirs {
"source/includes",
"bootil/include"
}
libdirs {
"release/bootil"
}
linkoptions {"-z defs"}
else
targetsuffix "_win32"
links {
"Bootil",
"ws2_32",
"winmm",
"wldap32"
}
includedirs {
"source/includes",
"bootil/include"
}
libdirs {
"release/bootil"
}
end
project "Bootil"
kind "StaticLib"
buildoptions {"-static"}
defines {"BOOTIL_COMPILE_STATIC"}
targetdir "release/bootil"
targetname("bootil_static")
files {
"bootil/src/**.*",
"bootil/include/**.*"
}
includedirs {
"bootil/include/",
"bootil/src/3rdParty/"
}