David PHAM-VAN

Update Linux and Windows pdfium libraries

1 # Changelog 1 # Changelog
2 2
  3 +## 5.6.2
  4 +
  5 +- Update Linux and Windows pdfium libraries to 4706
  6 +
3 ## 5.6.1 7 ## 5.6.1
4 8
5 - Allow host app to override pdfium version [Jon Salmon] 9 - Allow host app to override pdfium version [Jon Salmon]
@@ -16,17 +16,18 @@ cmake_minimum_required(VERSION 3.10) @@ -16,17 +16,18 @@ 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 "4627" CACHE STRING "Version of pdfium used") 19 +set(PDFIUM_VERSION "4706" CACHE STRING "Version of pdfium used")
  20 +set(PDFIUM_ARCH "x64" CACHE STRING "Architecture of pdfium used")
20 21
21 if(${PDFIUM_VERSION} STREQUAL "latest") 22 if(${PDFIUM_VERSION} STREQUAL "latest")
22 set( 23 set(
23 PDFIUM_URL 24 PDFIUM_URL
24 - "https://github.com/bblanchon/pdfium-binaries/releases/latest/download/pdfium-linux.tgz" 25 + "https://github.com/bblanchon/pdfium-binaries/releases/latest/download/pdfium-linux-${PDFIUM_ARCH}.tgz"
25 ) 26 )
26 else() 27 else()
27 set( 28 set(
28 PDFIUM_URL 29 PDFIUM_URL
29 - "https://github.com/bblanchon/pdfium-binaries/releases/download/chromium/${PDFIUM_VERSION}/pdfium-linux.tgz" 30 + "https://github.com/bblanchon/pdfium-binaries/releases/download/chromium/${PDFIUM_VERSION}/pdfium-linux-${PDFIUM_ARCH}.tgz"
30 ) 31 )
31 endif() 32 endif()
32 33
@@ -6,7 +6,7 @@ description: > @@ -6,7 +6,7 @@ description: >
6 homepage: https://github.com/DavBfr/dart_pdf/tree/master/printing 6 homepage: https://github.com/DavBfr/dart_pdf/tree/master/printing
7 repository: https://github.com/DavBfr/dart_pdf 7 repository: https://github.com/DavBfr/dart_pdf
8 issue_tracker: https://github.com/DavBfr/dart_pdf/issues 8 issue_tracker: https://github.com/DavBfr/dart_pdf/issues
9 -version: 5.6.1 9 +version: 5.6.2
10 10
11 environment: 11 environment:
12 sdk: ">=2.12.0 <3.0.0" 12 sdk: ">=2.12.0 <3.0.0"
@@ -16,18 +16,18 @@ cmake_minimum_required(VERSION 3.15) @@ -16,18 +16,18 @@ cmake_minimum_required(VERSION 3.15)
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(ARCH "x64")  
20 -set(PDFIUM_VERSION "4627" CACHE STRING "Version of pdfium used") 19 +set(PDFIUM_VERSION "4706" CACHE STRING "Version of pdfium used")
  20 +set(PDFIUM_ARCH "x64" CACHE STRING "Architecture of pdfium used")
21 21
22 if(${PDFIUM_VERSION} STREQUAL "latest") 22 if(${PDFIUM_VERSION} STREQUAL "latest")
23 set( 23 set(
24 PDFIUM_URL 24 PDFIUM_URL
25 - "https://github.com/bblanchon/pdfium-binaries/releases/latest/download/pdfium-windows-${ARCH}.zip" 25 + "https://github.com/bblanchon/pdfium-binaries/releases/latest/download/pdfium-win-${PDFIUM_ARCH}.tgz"
26 ) 26 )
27 else() 27 else()
28 set( 28 set(
29 PDFIUM_URL 29 PDFIUM_URL
30 - "https://github.com/bblanchon/pdfium-binaries/releases/download/chromium/${PDFIUM_VERSION}/pdfium-windows-${ARCH}.zip" 30 + "https://github.com/bblanchon/pdfium-binaries/releases/download/chromium/${PDFIUM_VERSION}/pdfium-win-${PDFIUM_ARCH}.tgz"
31 ) 31 )
32 endif() 32 endif()
33 33