1
0
mirror of https://github.com/lammertb/libhttp.git synced 2026-01-03 16:02:30 +03:00

Upgraded LUA to 5.2.2, added library build targets

This commit is contained in:
Thomas Davis
2013-08-23 09:43:41 -04:00
parent b8cccd3989
commit 2f880bb317
81 changed files with 754 additions and 534 deletions

View File

@@ -36,6 +36,14 @@ make install
```
Install on the system, Linux only.
```
make lib WITH_CPP=1 WITH_IPV6=1
make slib WITH_CPP=1 WITH_LUA=1 WITH_WEBSOCKET=1
```
Build the static and shared libraries.
The *WITH_CPP* make option is to include the CivetServer class.
The additional make options configure the library just as it would the application.
```
make clean
```
@@ -55,6 +63,7 @@ make build WITH_LUA=1
| WITH_DEBUG=1 | build with GDB debug support |
| WITH_IPV6=1 | with IPV6 support |
| WITH_WEBSOCKET=1 | build with web socket support |
| WITH_CPP=1 | build libraries with c++ classes |
| CONFIG_FILE=file | use 'file' as the config file |
| CONFIG_FILE2=file | use 'file' as the backup config file |
| SSL_LIB=libssl.so.0 | use versioned SSL library |

View File

@@ -6,7 +6,8 @@ Civetweb is primarily designed so applications can easily add HTTP server functi
Files
------
There is no library, it is just a small set of files to compile in to the application.
There is just a small set of files to compile in to the application,
but if a library is desired, see [Building.md](https://github.com/sunsetbrew/civetweb/blob/master/docs/Building.md)
#### Regarding the INL file extension
The *INL* file extension represents code that is statically included inline in a source file. Slightly different from C++ where it means "inline" code which is technically not the same as static code. Civetweb overloads this extension for the sake of clearity as opossed to having .c extensions on files that should not be directly compiled.
@@ -61,7 +62,7 @@ LUA is a server side include functionality. Files ending in .la will be process
##### Add the following sources
- mod_lua.inl
- lua-5.2.1/src
- lua-5.2.2/src
+ lapi.c
+ lauxlib.c
+ lbaselib.c

View File

@@ -310,7 +310,7 @@ must be for a file name only, not including directory name. Example:
Pre-built Windows and Mac civetweb binaries have built-in Lua Server Pages
support. That means it is possible to write PHP-like scripts with civetweb,
using Lua programming language instead of PHP. Lua is known
for it's speed and small size. Civetweb uses Lua version 5.2.1, the
for it's speed and small size. Civetweb uses Lua version 5.2.2, the
documentation for it can be found at
[Lua 5.2 reference manual](http://www.lua.org/manual/5.2/).