-
Notifications
You must be signed in to change notification settings - Fork 140
/
premake4.lua
55 lines (45 loc) · 1.13 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
newoption {
trigger = "with-zfp",
description = "Build with ZFP support."
}
sources = {
"tinyexr.h",
"test_tinyexr.cc",
}
zfp_sources = {
"./deps/ZFP/src/*.c"
}
miniz_sources = {
"./deps/miniz/miniz.c"
}
-- premake4.lua
solution "TinyEXRSolution"
configurations { "Release", "Debug" }
if (os.is("windows")) then
platforms { "x32", "x64" }
else
platforms { "native", "x32", "x64" }
end
if _OPTIONS["with-zfp"] then
includedirs { "./deps/ZFP/inc" }
defines { "TINYEXR_USE_ZFP=1" }
files { zfp_sources }
end
if _OPTIONS["with-miniz"] then
includedirs { "./deps/miniz" }
defines { "TINYEXR_USE_MINIZ=1" }
files { miniz_sources }
end
-- A project defines one build target
project "tinyexrtest"
kind "ConsoleApp"
language "C++"
files { sources }
configuration "Debug"
defines { "DEBUG" } -- -DDEBUG
flags { "Symbols" }
targetname "test_tinyexr_debug"
configuration "Release"
-- defines { "NDEBUG" } -- -NDEBUG
flags { "Symbols", "Optimize" }
targetname "test_tinyexr"