forked from madler/pigz
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathpremake4.lua
63 lines (51 loc) · 1.73 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
solution "pigz"
configurations { "Debug", "Release" }
location "build"
flags { "Symbols", "StaticRuntime" }
configuration "Debug"
targetdir "dbg"
configuration "Release"
targetdir "rel"
flags { "Optimize" }
defines { "NDEBUG" }
configuration {"vs*"}
defines { "_WIN32", "WIN32", "WINDOWS", "_CRT_SECURE_NO_WARNINGS" }
project "pigz"
kind "ConsoleApp"
language "C"
files { "*.h", "*.c", "zopfli/src/zopfli/*.h", "zopfli/src/zopfli/*.c", "win32/*"}
excludes { "zopfli/zopfli_bin.c" }
includedirs { "win32", "zlib", "pthread-win32" }
links { "zlib", "pthread-win32" }
configuration {"vs*"}
buildoptions {"/wd4996", "/wd4244", "/wd4305" }
linkoptions {"/NODEFAULTLIB:\"msvcrt.lib\""}
configuration "Debug"
defines { "_DEBUG" }
-- yes, this is the same as pigz, just with a different name
project "unpigz"
kind "ConsoleApp"
language "C"
files { "*.h", "*.c", "zopfli/src/zopfli/*.h", "zopfli/src/zopfli/*.c", "win32/*"}
excludes { "zopfli/zopfli_bin.c" }
includedirs { "win32", "zlib", "pthread-win32" }
links { "zlib", "pthread-win32" }
configuration {"vs*"}
buildoptions {"/wd4996", "/wd4244", "/wd4305" }
linkoptions {"/NODEFAULTLIB:\"msvcrt.lib\""}
configuration "Debug"
defines { "_DEBUG" }
project "zlib"
kind "StaticLib"
language "C"
files { "zlib/*.c", "zlib/*.h" }
excludes { "zlib/gzclose.c", "zlib/gzread.c", "zlib/gzwrite.c", "zlib/gzlib.c"}
includedirs { "zlib" }
project "pthread-win32"
kind "StaticLib"
language "C"
files {
"pthread-win32/*.h",
"pthread-win32/pthread.c"
}
includedirs { "pthread-win32" }