premake.lua

Sat, 01 Sep 2007 00:24:11 -0400

author
Thomas Harning Jr <harningt@gmail.com>
date
Sat, 01 Sep 2007 00:24:11 -0400
changeset 17
1a093a31059d
parent 15
9b91d1bdbb40
permissions
-rw-r--r--

Refactored luaevent.lua (unlearned borked fairness, collapsing useless code).

luaevent.lua:
* Unlearned fairness since it was likely to be broken...
fairness will need to be implemented at app-level where it should be.
* Collapsed duplicate code into a local function
testClient.lua:
* Added a completion message (since the test was so quick I thought it was broken)

project.name = "luaevent.core"
project.libdir = "lib"
project.bindir = "bin"

package = newpackage()
package.kind = "dll"
package.language = "c++"
package.targetprefix = ""
package.target = "core"

package.links = {
	"event"
}

package.includepaths = {
	"include",
}
if linux then
	package.buildoptions = { "-Wall" }
	package.config["Debug"].buildoptions = { "-O0" }
	package.linkoptions =  { "-Wall -L/usr/local/lib" }
	package.postbuildcommands = { "mkdir -p test/luaevent", "cp bin/* test/luaevent", "cp lua/* test" }
else
	print([[Other environements currently untested, may need tweaking]])
end

package.files = {
	matchrecursive(
		"src/*.c",
		"include/*.h"
	)
}

mercurial