-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommon-proj.lua
More file actions
55 lines (45 loc) · 1.44 KB
/
common-proj.lua
File metadata and controls
55 lines (45 loc) · 1.44 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
47
48
49
50
51
52
53
54
55
-- clear global state
filter {}
-- common stuff that we want to be common among all projects
warnings "Extra"
targetname "%{prj.name}"
flags { "NoPCH" }
exceptionhandling "Off"
rtti "Off"
objdir "%{wks.location}/Output/intermediate/%{prj.name}/%{cfg.buildcfg}_%{cfg.platform}"
filter { "kind:SharedLib or StaticLib" }
targetdir "%{wks.location}/Output/lib/%{cfg.buildcfg}_%{cfg.platform}"
filter { "kind:ConsoleApp or WindowedApp" }
targetdir "%{wks.location}/Output/bin/%{cfg.buildcfg}_%{cfg.platform}"
-- configurations
filter { "configurations:Debug*" }
defines { "_DEBUG" }
optimize "Off"
symbols "On"
filter { "configurations:DebugOpt*" }
defines { "_DEBUG" }
optimize "Debug"
symbols "On"
filter { "configurations:Release*" }
defines { "NDEBUG" }
optimize "Full"
symbols "Off"
omitframepointer "On"
flags { "NoBufferSecurityCheck" }
-- platform config
filter { "system:windows" }
flags { "NoIncrementalLink" }
editandcontinue "Off" -- Required so __LINE__ is a constant
-- Android settings
filter { "system:android" }
toolset "clang"
toolchainversion "5.0"
stl "libc++"
defines { "_LARGEFILE_SOURCE" }
filter { "system:windows", "kind:*App" }
defines { "WIN32", "_WINDOWS" }
links { "kernel32.lib", "user32.lib", "gdi32.lib", "winspool.lib", "comdlg32.lib", "advapi32.lib", "shell32.lib", "ole32.lib", "oleaut32.lib", "uuid.lib", "odbc32.lib", "odbccp32.lib" }
filter { "system:linux" }
links { "pthread" }
links { "rt" }
filter {}