forked from Euclideon/udcore
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproject.lua
More file actions
46 lines (33 loc) · 1.31 KB
/
project.lua
File metadata and controls
46 lines (33 loc) · 1.31 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
41
42
43
44
45
46
project ("udCore" .. (projectSuffix or ""))
kind "StaticLib"
language "C++"
cppdialect "C++14"
staticruntime "On"
flags { "OmitDefaultLibrary", "FatalWarnings" }
files { "Source/**", "Include/**", "Docs/**" }
files { "3rdParty/libdeflate/libdeflate.h", "3rdParty/libdeflate/lib/**" }
includedirs { "3rdParty/libdeflate", "3rdParty/libdeflate/common" }
files { "project.lua" }
includedirs { "3rdParty" }
includedirs { "3rdParty/mbedtls/include" }
includedirs { "Include" }
-- include common stuff
dofile "bin/premake-bin/common-proj.lua"
files { "3rdParty/mbedtls/library/*.c", "3rdParty/mbedtls/include/mbedtls/*.h" }
filter { "files:3rdParty/**" }
warnings "Off"
-- XCode4 can't set per-file configurations, so FatalWarnings needs to be off to build
filter { "action:xcode4" }
removeflags { "FatalWarnings" }
filter { "configurations:Release", "system:Windows" }
symbols "On"
filter { "system:linux", "toolset:gcc" }
buildoptions { "-pedantic" }
enablewarnings { "undef" }
filter { "system:macosx" }
buildoptions { "-fno-stack-check" }
-- for windows, make the output name and location identical to that of udbin
filter { "system:Windows" }
targetdir "Lib/%{cfg.system}_%{cfg.shortname}"
symbolspath "$(TargetDir)/$(ProjectName).pdb"
filter {}