-
Notifications
You must be signed in to change notification settings - Fork 2
/
premake5.lua
73 lines (59 loc) · 1.63 KB
/
premake5.lua
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
-- A solution
workspace "lua-snap7"
configurations { "Debug", "Release"}
location "build"
project "snap7"
kind "SharedLib"
language "C++"
location "build/lua-snap7"
targetprefix ""
targetdir "bin/%{cfg.buildcfg}"
dependson { "snap7-static" }
includedirs {
--"/usr/include/lua5.3",
"/home/cch/mycode/skynet/3rd/lua/",
".",
"./snap7/release/Wrappers/c-cpp/",
}
files {
"./src/**.hpp",
"./src/**.cpp",
"./sol/**.hpp",
"./snap7/release/Wrappers/c-cpp/**.h",
"./snap7/release/Wrappers/c-cpp/**.cpp",
}
-- buildoptions { '-Wno-unknown-warning', '-Wno-unknown-warning-option', '-Wall', '-Wextra', '-Wpedantic', '-pedantic', '-pedantic-errors', '-Wno-noexcept-type', '-std=c++14', '-ftemplate-depth=1024' }
buildoptions { '-Wpedantic', '-pedantic', '-pedantic-errors', '-Wno-noexcept-type', '-std=c++14', '-ftemplate-depth=2048' }
--libdirs { "../../bin" }
links { "pthread", "snap7-static" }
--linkoptions { "" }
filter "configurations:Debug"
defines { "DEBUG" }
symbols "On"
filter "configurations:Release"
defines { "NDEBUG" }
optimize "On"
project "snap7-static"
kind "StaticLib"
language "C++"
location "build/snap7"
targetdir "bin/%{cfg.buildcfg}"
includedirs {
"./snap7/src/sys/",
"./snap7/src/core/",
"./snap7/src/lib/",
}
files {
"./snap7/src/**.h",
"./snap7/src/**.cpp",
}
buildoptions { '-Wpedantic', '-pedantic', '-pedantic-errors', '-Wno-noexcept-type', '-std=c++14', "-fPIC" }
--libdirs { "../../bin" }
links { "pthread"}
--linkoptions { "" }
filter "configurations:Debug"
defines { "DEBUG" }
symbols "On"
filter "configurations:Release"
defines { "NDEBUG" }
optimize "On"