forked from Nathaniell1/STL_CUT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpremake4.lua
48 lines (41 loc) · 1.19 KB
/
premake4.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
#!lua
solution "stlcut"
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 { "stlcut.cpp", "*.h" }
targetname ("stlcut")
links { "admesh", "poly2tri" }
configuration { "linux" }
targetextension (".so.1")
linkoptions { "-Wl,-soname,libstlcut.so.1" }
postbuildcommands { "ln -sf libstlcut.so.1 build/libstlcut.so" }
--cleancommands { "rm build/libstlcut.so || :" }
configuration { "macosx" }
targetextension (".1.dylib")
postbuildcommands { "ln -sf libstlcut.1.dylib build/libstlcut.dylib" }
--cleancommands { "rm build/libstlcut.dylib || :" }
project "cut"
kind "ConsoleApp"
language "C++"
linkoptions { "-Lbuild" }
files { "prgstlcut.cpp" }
targetname ("stlcut")
links { "lib", "admesh", "poly2tri" }
project "cuttests"
kind "ConsoleApp"
language "C++"
linkoptions { "-Lbuild" }
files { "tests.cpp" }
targetname ("cuttests")
links { "lib", "admesh", "poly2tri" }