-
Notifications
You must be signed in to change notification settings - Fork 0
/
premake4.lua
98 lines (68 loc) · 1.92 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
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
newoption
{
trigger = "ios",
description = "generates ios project without native target"
}
solution "ShaderShaker"
configurations { "Release", "Debug" }
targetname "shader_shaker"
language "C++"
flags { "ExtraWarnings" }
includedirs { "include", "contrib/catch", "contrib/antlr", "src" }
files
{
"src/**.h", "src/**.cpp"
}
if _OPTIONS[ "ios" ] then
platforms { "ios" }
if deploymenttarget then
deploymenttarget "5.1"
end
end
configuration "Debug"
defines { "_DEBUG" }
flags { "Symbols" }
configuration "Release"
defines { "NDEBUG" }
flags { "OptimizeSize" }
configuration "vs*"
defines { "_CRT_SECURE_NO_WARNINGS", "_SCL_SECURE_NO_WARNINGS" }
buildoptions "/wd4481"
configuration "gmake or xcode4"
buildoptions "-std=c++11"
project "ShaderShaker"
kind "ConsoleApp"
includedirs "contrib/tclap/include"
configuration "Debug"
targetdir "bin/debug"
configuration "Release"
targetdir "bin/release"
project "ShaderShakerDll"
defines{ "SHADERSHAKER_IN_DLL" }
kind "SharedLib"
excludes{ "src/main.cpp" }
configuration "Debug"
targetdir "bin/debug_dll"
configuration "Release"
targetdir "bin/release_dll"
project "ShaderShakerLib"
defines{ "SHADERSHAKER_IN_LIB" }
kind "StaticLib"
excludes{ "src/main.cpp"}
configuration "Debug"
targetdir "bin/debug_lib"
configuration "Release"
targetdir "bin/release_lib"
project "Test"
kind "ConsoleApp"
targetname "test"
files{ "test/src/**.cpp" }
excludes{ "src/main.cpp" }
configuration "Debug"
targetdir "bin/debug"
configuration "Release"
targetdir "bin/release"
if _ACTION == "clean" then
os.rmdir("bin")
os.rmdir("build")
end