diff options
author | Oscar Lim <olim@ucla.edu> | 2016-10-02 23:43:39 -0700 |
---|---|---|
committer | Oscar Lim <olim@ucla.edu> | 2016-10-02 23:43:39 -0700 |
commit | 16a5314335cfefb803478239b52bde6fe42e13af (patch) | |
tree | 96510dc330cf70a15c3e1bc3c855239d4476fa68 /luasystem-0.2.1-0.rockspec | |
parent | 04b8076512ef71fac5a26cbe85f8d820bd3ccfea (diff) | |
download | luasystem-0.2.1.tar.gz luasystem-0.2.1.tar.bz2 luasystem-0.2.1.zip |
Release v0.2.1v0.2.1
Diffstat (limited to 'luasystem-0.2.1-0.rockspec')
-rw-r--r-- | luasystem-0.2.1-0.rockspec | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/luasystem-0.2.1-0.rockspec b/luasystem-0.2.1-0.rockspec new file mode 100644 index 0000000..ea39175 --- /dev/null +++ b/luasystem-0.2.1-0.rockspec | |||
@@ -0,0 +1,57 @@ | |||
1 | package = 'luasystem' | ||
2 | version = '0.2.1-0' | ||
3 | source = { | ||
4 | url = "https://github.com/o-lim/luasystem/archive/v0.2.1.tar.gz", | ||
5 | dir = "luasystem-0.2.1" | ||
6 | } | ||
7 | description = { | ||
8 | summary = 'Platform independent system calls for Lua.', | ||
9 | detailed = [[ | ||
10 | Adds a Lua API for making platform independent system calls. | ||
11 | ]], | ||
12 | homepage = 'http://olivinelabs.com/luasystem/', | ||
13 | license = 'MIT <http://opensource.org/licenses/MIT>' | ||
14 | } | ||
15 | dependencies = { | ||
16 | 'lua >= 5.1', | ||
17 | } | ||
18 | |||
19 | local function make_platform(plat) | ||
20 | local defines = { | ||
21 | linux = { }, | ||
22 | unix = { }, | ||
23 | macosx = { }, | ||
24 | win32 = { "WINVER=0x0600", "_WIN32_WINNT=0x0600" }, | ||
25 | mingw32 = { "WINVER=0x0600", "_WIN32_WINNT=0x0600" }, | ||
26 | } | ||
27 | local libraries = { | ||
28 | linux = { "rt" }, | ||
29 | unix = { }, | ||
30 | macosx = { }, | ||
31 | win32 = { }, | ||
32 | mingw32 = { }, | ||
33 | } | ||
34 | return { | ||
35 | modules = { | ||
36 | ['system.core'] = { | ||
37 | sources = { 'src/core.c', 'src/compat.c', 'src/time.c', }, | ||
38 | defines = defines[plat], | ||
39 | libraries = libraries[plat], | ||
40 | }, | ||
41 | }, | ||
42 | } | ||
43 | end | ||
44 | |||
45 | build = { | ||
46 | type = 'builtin', | ||
47 | platforms = { | ||
48 | linux = make_platform('linux'), | ||
49 | unix = make_platform('unix'), | ||
50 | macosx = make_platform('macosx'), | ||
51 | win32 = make_platform('win32'), | ||
52 | mingw32 = make_platform('mingw32'), | ||
53 | }, | ||
54 | modules = { | ||
55 | ['system.init'] = 'system/init.lua', | ||
56 | }, | ||
57 | } | ||