-
Notifications
You must be signed in to change notification settings - Fork 1
/
premake5.lua
41 lines (34 loc) · 1010 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
32
33
34
35
36
37
38
39
40
41
solution "psinc"
language "C++"
targetdir "lib"
includedirs "include"
libdirs { "lib" }
excludes { "**.bak", "**~" }
filter "system:linux"
toolset "clang"
filter "action:not vs*"
configurations { "default" }
platforms "native"
filter "action:vs*"
configurations { "debug", "release" }
platforms { "x32", "x64" }
project "libpsinc"
kind "SharedLib"
targetname "psinc"
links { "usb-1.0", "freeimage" }
files { "include/psinc/**h", "src/psinc/**.cpp", "src/psinc-c/**.cpp" }
filter "system:linux"
symbols "On"
filter "system:windows"
kind "StaticLib"
filter "action:not vs*"
buildoptions { "-Wall", "-Wextra", "-Wpedantic", "-std=c++17", "-O3", "-D_FORTIFY_SOURCE=2" }
linkoptions { "-Wl,-soname,libpsinc.so.0" }
filter "action:vs*"
kind "StaticLib"
defines "NOMINMAX"
targetname "psinc_%{cfg.buildcfg}_%{cfg.platform}"
filter "configurations:debug"
symbols "On"
filter "configurations:release"
optimize "Full"