aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Pulford <mark@kyne.com.au>2011-05-29 20:46:28 +0930
committerMark Pulford <mark@kyne.com.au>2011-05-29 20:46:28 +0930
commit3547b12d5e881c0c6ad5d3788fa64924e1ff2a5c (patch)
tree3e767301f18f90cca4c2bf679555f3d743be6d03
parent9d7bd06ad57832cfe6bba22acc7d7b8c74cdf8b8 (diff)
downloadlua-cjson-3547b12d5e881c0c6ad5d3788fa64924e1ff2a5c.tar.gz
lua-cjson-3547b12d5e881c0c6ad5d3788fa64924e1ff2a5c.tar.bz2
lua-cjson-3547b12d5e881c0c6ad5d3788fa64924e1ff2a5c.zip
Document building via LuaRocks
-rw-r--r--README30
1 files changed, 26 insertions, 4 deletions
diff --git a/README b/README
index 0d912a8..f118f32 100644
--- a/README
+++ b/README
@@ -15,7 +15,8 @@ Features:
15Caveats: 15Caveats:
16- UTF-16 and UTF-32 are not supported. 16- UTF-16 and UTF-32 are not supported.
17- Multiple OS threads within a single Lua state are not currently 17- Multiple OS threads within a single Lua state are not currently
18 supported. 18 supported. However, this is an extremely uncommon configuration due
19 to performance limitations.
19 20
20To obtain the latest version of Lua CJSON visit: 21To obtain the latest version of Lua CJSON visit:
21 22
@@ -34,17 +35,38 @@ Build requirements:
34Or: 35Or:
35- LuaJIT (http://www.luajit.org/) 36- LuaJIT (http://www.luajit.org/)
36 37
38There are 3 build methods available:
39- Gmake: POSIX, OSX
40- RPM: Some Linux distributions
41- LuaRocks (http://www.luarocks.org/): POSIX, OSX, Windows
42
43
44Gmake
45-----
46
37Review and update the included Makefile to suit your platform. Then: 47Review and update the included Makefile to suit your platform. Then:
38 48
39 # make 49 # gmake
40 # make install 50 # gmake install
41 OR 51 OR
42 # cp cjson.so [your_module_directory] 52 # cp cjson.so [your_module_directory]
43 53
54
55RPM
56---
57
44Linux distributions using RPM should be able to build a package with 58Linux distributions using RPM should be able to build a package with
45the following command: 59the following command:
46 60
47 # rpmbuild -tb lua-cjson-1.0.2.zip 61 # rpmbuild -tb lua-cjson-1.0.2.tar.gz
62
63
64LuaRocks
65--------
66
67Extract the source package into a directory and run:
68
69 # cd lua-cjson-1.0.2; luarocks make
48 70
49 71
50Lua CJSON API 72Lua CJSON API