David PHAM-VAN

Fix Linux build

# Changelog
## 5.2.1
- Fix Linux build
## 5.2.0
- Improve Android page format detection [Deepak]
... ...
... ... @@ -16,13 +16,21 @@ cmake_minimum_required(VERSION 3.10)
set(PROJECT_NAME "printing")
project(${PROJECT_NAME} LANGUAGES CXX)
set(PDFIUM_VERSION "latest")
if(${PDFIUM_VERSION} STREQUAL "latest")
set(PDFIUM_URL "https://github.com/bblanchon/pdfium-binaries/releases/latest/download/pdfium-linux.tgz")
else()
set(PDFIUM_URL "https://github.com/bblanchon/pdfium-binaries/releases/download/chromium%2F${PDFIUM_VERSION}/pdfium-linux.tgz")
endif()
# Download pdfium
include(../windows/DownloadProject.cmake)
download_project(
PROJ
pdfium
URL
https://github.com/bblanchon/pdfium-binaries/releases/latest/download/pdfium-linux.tgz
${PDFIUM_URL}
)
# This value is used when generating builds using this plugin, so it must not be
... ...
... ... @@ -7,7 +7,7 @@ description: >
homepage: https://github.com/DavBfr/dart_pdf/tree/master/printing
repository: https://github.com/DavBfr/dart_pdf
issue_tracker: https://github.com/DavBfr/dart_pdf/issues
version: 5.2.0
version: 5.2.1
environment:
sdk: ">=2.12.0-0 <3.0.0"
... ...
# Distributed under the OSI-approved MIT License. See accompanying
# file LICENSE or https://github.com/Crascit/DownloadProject for details.
cmake_minimum_required(VERSION 3.15)
cmake_minimum_required(VERSION 3.10)
project(${DL_ARGS_PROJ}-download NONE)
... ...