-
Notifications
You must be signed in to change notification settings - Fork 1
/
premake5.lua
31 lines (28 loc) · 860 Bytes
/
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
solution "niven"
language "C++"
targetdir "lib"
configurations "default"
platforms "native"
includedirs "include"
libdirs "lib"
toolset "clang"
buildoptions { "-Wall", "-Wextra", "-Wpedantic", "-std=c++17", "-O3", "-fPIC", "-D_FORTIFY_SOURCE=2" }
excludes { "**.bak", "**~" }
configuration "linux"
symbols "On"
project "libniven"
kind "SharedLib"
targetname "niven"
-- defines "NIVEN_USE_H2O"
-- links { "h2o", "uv", "ssl", "crypto" }
links { "microhttpd", "gcrypt", "stdc++fs" }
linkoptions { "-Wl,-soname,libniven.so.0" }
files { "include/niven/**h", "src/niven/**.cpp" }
-- configuration "linux"
-- postbuildcommands "./strip lib/libniven.so"
project "test"
kind "ConsoleApp"
targetdir "bin"
targetname "test"
files { "src/test/**.cpp" }
postbuildcommands { "./bin/test" }