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
|
## Usage
|
||||||
|
|
||||||
#### build:
|
#### Build:
|
||||||
```
|
```
|
||||||
mkdir -p build && cd build && \
|
mkdir -p build && cd build && \
|
||||||
cmake .. -DSAPI_ROOT=/path/to/sapi_root -DBUILD_SHARED_LIBS=OFF
|
cmake .. -DSAPI_ROOT=/path/to/sapi_root -DBUILD_SHARED_LIBS=OFF
|
||||||
make -j8
|
make -j8
|
||||||
```
|
```
|
||||||
|
|
||||||
#### to run the sandboxed example:
|
#### Example:
|
||||||
`./example/sandboxed /absolute/path/to/project/dir`
|
You should add `-DTIFF_SAPI_ENABLE_EXAMPLES=ON` to use the example.\
|
||||||
|
run: `./example/sandboxed /absolute/path/to/project/dir`
|
||||||
|
|
||||||
#### to run tests:
|
#### Tests:
|
||||||
`./test/tests`
|
You should add `-DTIFF_SAPI_ENABLE_TESTS=ON` to use tests.\
|
||||||
|
run: `./test/tests`
|
||||||
|
|
Loading…
Reference in New Issue
Block a user