Showing
4 changed files
with
15 additions
and
3 deletions
| @@ -16,13 +16,21 @@ cmake_minimum_required(VERSION 3.10) | @@ -16,13 +16,21 @@ cmake_minimum_required(VERSION 3.10) | ||
| 16 | set(PROJECT_NAME "printing") | 16 | set(PROJECT_NAME "printing") |
| 17 | project(${PROJECT_NAME} LANGUAGES CXX) | 17 | project(${PROJECT_NAME} LANGUAGES CXX) |
| 18 | 18 | ||
| 19 | +set(PDFIUM_VERSION "latest") | ||
| 20 | + | ||
| 21 | +if(${PDFIUM_VERSION} STREQUAL "latest") | ||
| 22 | + set(PDFIUM_URL "https://github.com/bblanchon/pdfium-binaries/releases/latest/download/pdfium-linux.tgz") | ||
| 23 | +else() | ||
| 24 | + set(PDFIUM_URL "https://github.com/bblanchon/pdfium-binaries/releases/download/chromium%2F${PDFIUM_VERSION}/pdfium-linux.tgz") | ||
| 25 | +endif() | ||
| 26 | + | ||
| 19 | # Download pdfium | 27 | # Download pdfium |
| 20 | include(../windows/DownloadProject.cmake) | 28 | include(../windows/DownloadProject.cmake) |
| 21 | download_project( | 29 | download_project( |
| 22 | PROJ | 30 | PROJ |
| 23 | pdfium | 31 | pdfium |
| 24 | URL | 32 | URL |
| 25 | - https://github.com/bblanchon/pdfium-binaries/releases/latest/download/pdfium-linux.tgz | 33 | + ${PDFIUM_URL} |
| 26 | ) | 34 | ) |
| 27 | 35 | ||
| 28 | # This value is used when generating builds using this plugin, so it must not be | 36 | # This value is used when generating builds using this plugin, so it must not be |
| @@ -7,7 +7,7 @@ description: > | @@ -7,7 +7,7 @@ description: > | ||
| 7 | homepage: https://github.com/DavBfr/dart_pdf/tree/master/printing | 7 | homepage: https://github.com/DavBfr/dart_pdf/tree/master/printing |
| 8 | repository: https://github.com/DavBfr/dart_pdf | 8 | repository: https://github.com/DavBfr/dart_pdf |
| 9 | issue_tracker: https://github.com/DavBfr/dart_pdf/issues | 9 | issue_tracker: https://github.com/DavBfr/dart_pdf/issues |
| 10 | -version: 5.2.0 | 10 | +version: 5.2.1 |
| 11 | 11 | ||
| 12 | environment: | 12 | environment: |
| 13 | sdk: ">=2.12.0-0 <3.0.0" | 13 | sdk: ">=2.12.0-0 <3.0.0" |
| 1 | # Distributed under the OSI-approved MIT License. See accompanying | 1 | # Distributed under the OSI-approved MIT License. See accompanying |
| 2 | # file LICENSE or https://github.com/Crascit/DownloadProject for details. | 2 | # file LICENSE or https://github.com/Crascit/DownloadProject for details. |
| 3 | 3 | ||
| 4 | -cmake_minimum_required(VERSION 3.15) | 4 | +cmake_minimum_required(VERSION 3.10) |
| 5 | 5 | ||
| 6 | project(${DL_ARGS_PROJ}-download NONE) | 6 | project(${DL_ARGS_PROJ}-download NONE) |
| 7 | 7 |
-
Please register or login to post a comment