sandboxed-api/oss-internship-2020/libtiff
Christian Blichmann 839914d6dd cmake: Rename build options to follow Abseil naming
`BUILD_TESTING` is a CMake provided option and we should use similar naming,
just like how Abseil does it.

- `SAPI_ENABLE_TESTS` -> `SAPI_BUILD_TESTING`
- `SAPI_ENABLE_CONTRIB_TESTS` -> `SAPI_CONTRIB_BUILD_TESTING`
- `SAPI_ENABLE_EXAMPLES` -> `SAPI_BUILD_EXAMPLES`

Drive-by:
- Fix option name in GitHub action
PiperOrigin-RevId: 443305932
Change-Id: Ice2b42be1229a0f9ae7c2ceda9ce87187baf22c4
2022-04-21 01:17:39 -07:00
..
example Change license link to HTTPS URL 2022-01-28 01:39:09 -08:00
test Change license link to HTTPS URL 2022-01-28 01:39:09 -08:00
wrapper Change license link to HTTPS URL 2022-01-28 01:39:09 -08:00
.gitignore from local repo to fork 2020-09-23 20:21:33 +00:00
CMakeLists.txt cmake: Rename build options to follow Abseil naming 2022-04-21 01:17:39 -07:00
README.md Merge pull request #56 from alexelex:master 2020-12-08 03:15:35 -08:00
sandboxed.h Change license link to HTTPS URL 2022-01-28 01:39:09 -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

you also can use sandbox flags sandbox2_danger_danger_permit_all and sandbox2_danger_danger_permit_all_and_log