-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproject.lua
More file actions
104 lines (79 loc) · 2.94 KB
/
project.lua
File metadata and controls
104 lines (79 loc) · 2.94 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
project ("lorcore" .. (projectsuffix or ""))
dofile "common-proj.lua"
-- Settings
kind "StaticLib"
language "C++"
-- This Project
files { "src/**.cpp", "src/**.h", "src/**rc" }
files { "project.lua", "common-proj.lua" }
includedirs { "external/src" }
includedirs { "src" }
includedirs { "src/comms" }
includedirs { "src/profile" }
includedirs { "src/gl" }
includedirs { "src/ui" }
-- Common settings
defines "RENDERER_SDL"
links { "SDL2" }
-- Configurations
filter { "configurations:Release" }
defines { "NDEBUG" }
flags { "NoFramePointer" }
optimize "On"
symbols "On"
--flags { "NoBufferSecurityCheck" }
filter { "configurations:Debug", "system:not android" }
defines { "_DEBUG" }
symbols "On"
filter { "system:windows*", "system:not windows" }
disablewarnings { "4127", "4530" } -- Ignore conditional expression is constant and exception handler warnings
consumewinrtextension "false"
generatewinmd "false"
defaultlanguage "en-AU"
defines { "ASSETDIR=\"Assets/\"", "lorLogToFile" } -- Is ASSETDIR required here?
filter { "architecture:x64", "system:windows" }
defines { "WIN64" }
libdirs { "external/libs/win64" }
--links { "libcurl" } -- Add this back when the lib is in the repo
filter { "architecture:x64", "system:windowsstore8.1" }
defines { "WIN64" }
libdirs { "external/libs/winRT81win64" }
filter { "architecture:arm" }
defines { "WINARM" }
filter { "architecture:arm", "system:windowsphone8.0" }
libdirs { "external/libs/wp80arm" }
filter { "architecture:arm", "system:windowsphone8.1" }
libdirs { "external/libs/wp81arm" }
filter { "architecture:arm", "system:windowsstore8.1" }
libdirs { "external/libs/winRT81arm" }
filter { "architecture:x86", "system:windowsphone8.0" }
libdirs { "external/libs/wp80win32" }
filter { "architecture:x86", "system:windowsphone8.1" }
libdirs { "external/libs/wp81win32" }
filter { "architecture:x86", "system:windowsstore8.1" }
libdirs { "external/libs/winRT81win32" }
filter { "system:linux" }
libdirs { "external/libs/linux" }
filter { "system:linux", "action:vs*" }
location "."
warnings "Off"
files { "external/src/**.h" }
filter { "system:android" }
toolset "clang"
toolchainversion "3.8"
stl "gnu stl static"
defines { "ASSETDIR=\"\"" } -- Is ASSETDIR required here?
filter { "system:android", "architecture:x86" }
libdirs { "external/libs/androidx86" }
filter { "system:android", "architecture:ARM" }
libdirs { "external/libs/androidarm" }
filter { "system:ios" }
libdirs { "external/libs/iOSx86" }
filter { "system:windows", "configurations:Release", "action:vs2013" }
buildoptions { "/Zo" }
filter { "options:coverage", "system:linux", "configurations:debug", "toolset:gcc" }
symbols "On"
optimize "Off"
buildoptions { "-fprofile-arcs", "-ftest-coverage" }
linkoptions { "--coverage" }
filter { }