2020-09-24 04:21:33 +08:00
|
|
|
# sapi-libtiff
|
|
|
|
Copyright 2020 Google LLC.
|
|
|
|
|
|
|
|
## Start use
|
|
|
|
You should make sure the libtiff submodule is cloned.
|
|
|
|
|
|
|
|
`git clone --recursive https://github.com/alexelex/sapi-libtiff`
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
#### build:
|
|
|
|
`mkdir -p build && cd build && cmake .. -DSAPI_ROOT=$HOME/sapi_root -DBUILD_SHARED_LIBS=OFF`
|
|
|
|
|
|
|
|
`make -j 8`
|
|
|
|
|
|
|
|
#### to run the sandboxed example:
|
|
|
|
`./example/sandboxed absolute/path/to/project/dir`
|
|
|
|
|
|
|
|
#### to run tests:
|
|
|
|
`./test/tests`
|
|
|
|
|
2020-09-26 05:21:07 +08:00
|
|
|
You also can use sandbox flags `sandbox2_danger_danger_permit_all` and `sandbox2_danger_danger_permit_all_and_log`.
|