-
Notifications
You must be signed in to change notification settings - Fork 0
/
premake5.lua
53 lines (45 loc) · 1.4 KB
/
premake5.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
solution ( "huffman-test" )
configurations { "Release", "Debug" }
platforms { "x64" }
if _ACTION == "clean" then
os.rmdir(".vs")
os.rmdir("test")
os.remove("huffman-test.VC.db")
os.remove("huffman-test.sln")
os.remove("huffman-test.vcxproj")
os.remove("huffman-test.vcxproj.filters")
os.remove("huffman-test.vcxproj.user")
os.remove("huffman-test.make")
os.remove("Makefile")
return
end
-- A project defines one build target
project ( "huffman-test" )
kind ( "ConsoleApp" )
language ( "C" )
targetname ("huffman-test")
files { "./*.h", "./*.c" }
defines { "_UNICODE" }
staticruntime "On"
configuration ( "Release" )
optimize "On"
objdir ( "./test/tmp" )
targetdir ( "./test" )
defines { "NDEBUG", "_NDEBUG" }
configuration ( "Debug" )
symbols "On"
objdir ( "./test/tmp" )
targetdir ( "./test" )
defines { "DEBUG", "_DEBUG" }
configuration ( "vs*" )
defines { "WIN32", "_WIN32", "_WINDOWS",
"_CRT_SECURE_NO_WARNINGS", "_CRT_SECURE_NO_DEPRECATE",
"_CRT_NONSTDC_NO_DEPRECATE", "_WINSOCK_DEPRECATED_NO_WARNINGS" }
configuration ( "gmake" )
warnings "Default" --"Extra"
defines { "LINUX_OR_MACOSX" }
links { "iconv" }
configuration { "gmake", "macosx" }
defines { "__APPLE__", "__MACH__", "__MRC__", "macintosh" }
configuration { "gmake", "linux" }
defines { "__linux__" }