-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpremake5.lua
More file actions
44 lines (34 loc) · 993 Bytes
/
premake5.lua
File metadata and controls
44 lines (34 loc) · 993 Bytes
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
workspace "ml_pgsql"
configurations { "Debug", "Release" }
location "build"
project "ml_pgsql"
kind "SharedLib"
language "C++"
cppdialect "C++17"
files { "src/**.cpp", "src/**.hpp" }
includedirs {
"src/",
"vendor/lua/include",
"vendor/lua/include/lua",
"vendor/libpq/include"
}
filter { "architecture:x86", "system:windows" }
defines { "WINDOWS", "WIN32" }
libdirs { "vendor/lua/lib/x86", "vendor/libpq/lib/x86" }
links { "lua5.1", "libpq" }
filter { "architecture:x64", "system:windows" }
defines { "WINDOWS", "WIN32" }
libdirs { "vendor/lua/lib/x64", "vendor/libpq/lib/x64" }
links { "lua5.1", "libpq" }
filter { "architecture:x86", "system:linux" }
defines { "LINUX" }
links { "pq" }
filter { "architecture:x64", "system:linux" }
defines { "LINUX" }
links { "pq" }
filter { "configurations:Debug" }
defines { "DEBUG" }
symbols "On"
filter { "configurations:Release" }
defines { "NDEBUG" }
optimize "On"