forked from xavi/libweb
README.md: Provide more details about features
This commit is contained in:
parent
8c3ba33ced
commit
7517312290
22
README.md
22
README.md
|
@ -22,6 +22,7 @@ the operation (see example below).
|
|||
- Supports [`multiform/form-data`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/POST)
|
||||
, which makes it useful to transfer large amounts of data, such as
|
||||
binary files.
|
||||
- [A library](include/slweb/html.h) to write HTML programmatically.
|
||||
|
||||
### TLS
|
||||
|
||||
|
@ -72,6 +73,16 @@ them:
|
|||
$ make
|
||||
```
|
||||
|
||||
This would generate a static library, namely `libslweb.a`, on the project
|
||||
top-level directory. Applications can then call the top-level `Makefile` by
|
||||
the use of recursive `make`. For example, assuming `slweb` is contained on a
|
||||
subdirectory:
|
||||
|
||||
```make
|
||||
slweb/libslweb.a:
|
||||
+cd slweb && $(MAKE)
|
||||
```
|
||||
|
||||
#### CMake
|
||||
|
||||
```sh
|
||||
|
@ -80,6 +91,17 @@ $ cmake ..
|
|||
$ cmake --build .
|
||||
```
|
||||
|
||||
A CMake target, also called `slweb`, is created. This makes it possible
|
||||
to integrate `slweb` into CMake projects via `add_subdirectory` and
|
||||
`target_link_libraries`. For example:
|
||||
|
||||
```cmake
|
||||
project(example)
|
||||
add_executable(${PROJECT_NAME} main.c)
|
||||
add_subdirectory(slweb)
|
||||
target_link_libraries(${PROJECT_NAME} PRIVATE slweb)
|
||||
```
|
||||
|
||||
## Why this project?
|
||||
|
||||
Originally, `slweb` was part of the
|
||||
|
|
Loading…
Reference in New Issue