summaryrefslogtreecommitdiff
path: root/luasystem-scm-0.rockspec
diff options
context:
space:
mode:
authorOscar Lim <olim@ucla.edu>2016-01-24 22:53:37 -0800
committerOscar Lim <olim@ucla.edu>2016-02-10 23:45:49 -0800
commit7499b422e3f07bf25704cbf7989e845f89697fa8 (patch)
tree524d8a262a9d61486b858e70c64f8aedbda43095 /luasystem-scm-0.rockspec
downloadluasystem-7499b422e3f07bf25704cbf7989e845f89697fa8.zip
Support for gettime and sleep functions
Provide `gettime` and `sleep` functions with at least 1 millisecond resolution.
Diffstat (limited to 'luasystem-scm-0.rockspec')
-rw-r--r--luasystem-scm-0.rockspec47
1 files changed, 47 insertions, 0 deletions
diff --git a/luasystem-scm-0.rockspec b/luasystem-scm-0.rockspec
new file mode 100644
index 0000000..83f4172
--- /dev/null
+++ b/luasystem-scm-0.rockspec
@@ -0,0 +1,47 @@
+package = 'luasystem'
+version = 'scm-0'
+source = {
+ url = "git://github.com/o-lim/luasystem",
+ branch = "master"
+}
+description = {
+ summary = 'Platform independent system calls for Lua.',
+ detailed = [[
+ Adds a Lua API for making platform independent system calls.
+ ]],
+ homepage = 'http://olivinelabs.com/luasystem/',
+ license = 'MIT <http://opensource.org/licenses/MIT>'
+}
+dependencies = {
+ 'lua >= 5.1',
+}
+
+local function make_platform(plat)
+ local defines = {
+ unix = { },
+ macosx = { },
+ win32 = { },
+ mingw32 = { "WINVER=0x0501" },
+ }
+ return {
+ modules = {
+ ['system.core'] = {
+ sources = { 'src/core.c', 'src/compat.c', 'src/time.c', },
+ defines = defines[plat],
+ },
+ },
+ }
+end
+
+build = {
+ type = 'builtin',
+ platforms = {
+ unix = make_platform('unix'),
+ macosx = make_platform('macosx'),
+ win32 = make_platform('win32'),
+ mingw32 = make_platform('mingw32'),
+ },
+ modules = {
+ ['system.init'] = 'system/init.lua',
+ },
+}