| 1 |
|
| 2 |
# Playground |
| 3 |
|
| 4 |
In this folder you can find some ready to use bootstrap scripts. |
| 5 |
You must download dependencies first by running the following command: |
| 6 |
|
| 7 |
git submodule update --init |
| 8 |
|
| 9 |
Then pick the appropriate script for your platform: |
| 10 |
|
| 11 |
- linux x86_64: `bootstrap-linux.sh` |
| 12 |
- macos x86_64: `bootstrap-macos.sh` |
| 13 |
- Windows x64: `bootstrap-win.cmd` |
| 14 |
|
| 15 |
Run it from the command line and then either: |
| 16 |
|
| 17 |
- Run the compilation with `cmake --build build-<arch>-<config>`, for example `cmake --build build-linux-release`; |
| 18 |
- *(Unix)* Run the compilation by entering the build directory and launch the compilation with `make`, for example `cd build-linux-debug && make`; |
| 19 |
- (Windows) Open the visual studio solution, for example `build-win-Debug\podofo.sln`. |
| 20 |
|
| 21 |
## Testing |
| 22 |
|
| 23 |
You can run the tests in the library by entering the |
| 24 |
build directory and using [`ctest`](https://cmake.org/cmake/help/latest/manual/ctest.1.html), |
| 25 |
for example `cd build-linux-debug && ctest`. |
| 26 |
|
| 27 |
# Disclaimer |
| 28 |
|
| 29 |
> **Warning**: Read the following carefully |
| 30 |
|
| 31 |
Playground dependencies are supplied only for PoDoFo development purposes and come |
| 32 |
with no warranty. They are not frequently updated, may contain security |
| 33 |
flaws and be unsafe to use. The dependencies directory layout is also |
| 34 |
optimized to be used by the `CMakeLists.txt` in this folder and it's |
| 35 |
not recommended to use them in a different way. |