aboutsummaryrefslogtreecommitdiffstats
path: root/premake.lua
diff options
context:
space:
mode:
authorThomas Harning Jr <harningt@gmail.com>2007-08-31 09:34:09 -0400
committerThomas Harning Jr <harningt@gmail.com>2007-08-31 09:34:09 -0400
commit4c2a04eded5c66c6696d4b53aee339f0f3ab8155 (patch)
treee5ad5a8ea9377f7b1c18732f094c11bcb610ae81 /premake.lua
parentae3262e075eadefbae445e64576f6a10f0d3e236 (diff)
downloadluaevent-prosody-4c2a04eded5c66c6696d4b53aee339f0f3ab8155.tar.gz
luaevent-prosody-4c2a04eded5c66c6696d4b53aee339f0f3ab8155.zip
Reformed project layout from 'luaevent/*' -> '*'
Diffstat (limited to 'premake.lua')
-rw-r--r--premake.lua32
1 files changed, 32 insertions, 0 deletions
diff --git a/premake.lua b/premake.lua
new file mode 100644
index 0000000..654ffb0
--- /dev/null
+++ b/premake.lua
@@ -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"
+ )
+}