mirror of
https://github.com/google/sandboxed-api.git
synced 2024-03-22 13:11:30 +08:00
add flags to readme
This commit is contained in:
parent
7750b43c56
commit
77c44f9c87
|
@ -8,15 +8,17 @@ You should make sure the libtiff submodule is cloned.
|
|||
|
||||
## Usage
|
||||
|
||||
#### build:
|
||||
#### Build:
|
||||
```
|
||||
mkdir -p build && cd build && \
|
||||
cmake .. -DSAPI_ROOT=/path/to/sapi_root -DBUILD_SHARED_LIBS=OFF
|
||||
make -j8
|
||||
```
|
||||
|
||||
#### to run the sandboxed example:
|
||||
`./example/sandboxed /absolute/path/to/project/dir`
|
||||
#### Example:
|
||||
You should add `-DTIFF_SAPI_ENABLE_EXAMPLES=ON` to use the example.\
|
||||
run: `./example/sandboxed /absolute/path/to/project/dir`
|
||||
|
||||
#### to run tests:
|
||||
`./test/tests`
|
||||
#### Tests:
|
||||
You should add `-DTIFF_SAPI_ENABLE_TESTS=ON` to use tests.\
|
||||
run: `./test/tests`
|
||||
|
|
Loading…
Reference in New Issue
Block a user