premake.lua

changeset 13
3e2ea1e7b2e8
child 15
9b91d1bdbb40
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/premake.lua	Fri Aug 31 09:34:09 2007 -0400
@@ -0,0 +1,32 @@
+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 luaevent.lua test" }
+else
+	print([[Other environements currently untested, may need tweaking]])
+end
+
+package.files = {
+	matchrecursive(
+		"src/*.c",
+		"include/*.h"
+	)
+}

mercurial