sandboxed-api/oss-internship-2020/libtiff/README.md

29 lines
572 B
Markdown
Raw Normal View History

2020-10-30 21:07:40 +08:00
# Sandboxed LibTIFF
2020-09-24 04:21:33 +08:00
Copyright 2020 Google LLC.
## Start use
You should make sure the libtiff submodule is cloned.
2020-10-30 21:07:40 +08:00
`git clone --recursive https://github.com/google/sandboxed-api`
2020-09-24 04:21:33 +08:00
## Usage
2020-10-11 19:02:47 +08:00
#### Build:
2020-10-11 18:24:55 +08:00
```
2020-10-11 18:54:37 +08:00
mkdir -p build && cd build && \
cmake .. -DSAPI_ROOT=/path/to/sapi_root -DBUILD_SHARED_LIBS=OFF
make -j8
2020-10-11 18:24:55 +08:00
```
2020-09-24 04:21:33 +08:00
2020-10-11 19:02:47 +08:00
#### Example:
2020-10-30 21:07:40 +08:00
You should add `-DTIFF_SAPI_ENABLE_EXAMPLES=ON` to use the example and run:
```
./example/sandboxed /absolute/path/to/input/image.tiff
```
2020-09-24 04:21:33 +08:00
2020-10-11 19:02:47 +08:00
#### Tests:
2020-10-30 21:07:40 +08:00
You should add `-DTIFF_SAPI_ENABLE_TESTS=ON` to use tests and run:
```
./test/tests
```