-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpremake4.lua
More file actions
40 lines (34 loc) · 1.01 KB
/
premake4.lua
File metadata and controls
40 lines (34 loc) · 1.01 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
#!lua
solution "stlsplit"
location ( "." )
targetdir("build")
configurations { "Debug", "Release" }
platforms {"native", "x64", "x32"}
configuration "Debug"
defines { "DEBUG" }
flags { "Symbols", "ExtraWarnings"}
configuration "Release"
defines { "NDEBUG" }
flags { "Optimize", "ExtraWarnings"}
project "lib"
language "C++"
kind "SharedLib"
files { "stlsplit.cpp", "*.h" }
targetname ("stlsplit")
links { "admesh" }
configuration { "linux" }
targetextension (".so.1")
linkoptions { "-Wl,-soname,libstlsplit.so.1" }
postbuildcommands { "ln -sf libstlsplit.so.1 build/libstlsplit.so" }
--cleancommands { "rm build/libstlsplit.so || :" }
configuration { "macosx" }
targetextension (".1.dylib")
postbuildcommands { "ln -sf libstlsplit.1.dylib build/libstlsplit.dylib" }
--cleancommands { "rm build/libstlsplit.dylib || :" }
project "cli"
kind "ConsoleApp"
language "C++"
linkoptions { "-Lbuild" }
files { "cli.cpp" }
targetname ("stlsplit")
links { "lib", "admesh" }