Uh oh!
There was an error while loading. Please reload this page.
forked from FredyH/MySQLOO
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBuildProjects.lua
More file actions
Latest commit
75 lines (67 loc) · 2.08 KB
/
Copy pathBuildProjects.lua
File metadata and controls
75 lines (67 loc) · 2.08 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
75
functionos.winSdkVersion()
localreg_arch=iif( os.is64bit(), "\\Wow6432Node\\", "\\" )
localsdk_version=os.getWindowsRegistry( "HKLM:SOFTWARE" ..reg_arch.."Microsoft\\Microsoft SDKs\\Windows\\v10.0\\ProductVersion" )
ifsdk_version~=nilthenreturnsdk_versionend
end
solution"MySQLOO"
language"C++"
location ( "solutions/" ..os.target() .."-" .._ACTION )
flags { "NoPCH", "NoImportLib"}
targetdir ( "out/" ..os.target() .."/" )
includedirs { "MySQLOO/include/",
"GmodLUA/include/",
"Boost/",
"MySQL/include/" }
ifos.target() =="macosx" oros.target() =="linux" then
buildoptions{ "-std=c++11 -fPIC" }
linkoptions{ "-fPIC -static-libstdc++" }
end
configurations { "Release" }
platforms { "x86", "x86_64" }
ifos.target() =="windows" then
defines{ "WIN32" }
elseifos.target() =="linux" then
defines{ "LINUX" }
end
localplatform
ifos.target() =="windows" then
platform="win"
elseifos.target() =="macosx" then
platform="osx"
elseifos.target() =="linux" then
platform="linux"
else
error"Unsupported platform."
end
filter"platforms:x86"
architecture"x86"
libdirs { "MySQL/lib/" ..os.target() }
ifos.target() =="windows" then
targetname( "gmsv_mysqloo_" ..platform.."32")
else
targetname( "gmsv_mysqloo_" ..platform)
end
filter"platforms:x86_64"
architecture"x86_64"
libdirs { "MySQL/lib64/" ..os.target() }
targetname( "gmsv_mysqloo_" ..platform.."64")
filter {"system:windows", "action:vs*"}
systemversion((os.winSdkVersion() or"10.0.16299") ..".0")
toolset"v141"
project"MySQLOO"
symbols"On"
editandcontinue"Off"
vectorextensions"SSE"
floatingpoint"Fast"
optimize"On"
defines{ "GMMODULE", "NDEBUG" }
files{ "MySQLOO/source/**.*", "MySQLOO/include/**.*" }
kind"SharedLib"
targetprefix ("")
targetextension (".dll")
targetdir("out/" ..os.target())
ifos.target() =="windows" then
links { "mysqlclient", "ws2_32.lib", "shlwapi.lib" }
elseifos.target() =="macosx" oros.target() =="linux" then
links { "mysqlclient", "pthread", "dl" }
end