Welcome to mirror list, hosted at ThFree Co, Russian Federation.

premake.lua « src - github.com/windirstat/premake-4.x-stable.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 34b46476b73e595d2e0c804076b88aaa48da3441 (plain)
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
package.name = "Premake"
package.target = "premake4"
package.language = "c"
package.kind = "exe"

-- Build settings

	package.buildflags = 
	{
		"no-64bit-checks",
		"extra-warnings"
	}

	package.config["Debug"].defines =
	{
		"_DEBUG"
	}
	
	package.config["Release"].buildflags = 
	{
		"no-symbols",
		"optimize-size",
		"no-frame-pointers"
	}
	
	package.config["Release"].defines =
	{
		"NDEBUG"
	}

	package.defines =
	{
		"_CRT_SECURE_NO_WARNINGS"
	}

	package.includepaths = 
	{
		"host/lua-5.1.4/src"
	}
	
	package.files =
	{
		matchrecursive("host/*.h", "host/*.c"),
		matchrecursive("*.lua", "*.tmpl"),
		matchrecursive("../tests/*.lua")
	}

	package.excludes =
	{
		"premake.lua", "premake4.lua",
		"host/lua-5.1.4/src/lua.c",
		"host/lua-5.1.4/src/luac.c",
		"host/lua-5.1.4/src/print.c",
		matchrecursive("host/lua-5.1.4/*.lua"),
		matchfiles("host/lua-5.1.4/etc/*.c")
	}

	if (linux) then
		table.insert(package.links, "m")
	end