Skip to content

Truly independent web browser

Meta: Install the license texts of pdf.js with its vcpkg port

Jelle Raaijmakers96898aca7db1
diff --git a/Meta/CMake/vcpkg/overlay-ports/pdfjs/portfile.cmake b/Meta/CMake/vcpkg/overlay-ports/pdfjs/portfile.cmake
index 2687d6b7710..0950b5d82ff 100644
--- a/Meta/CMake/vcpkg/overlay-ports/pdfjs/portfile.cmake
+++ b/Meta/CMake/vcpkg/overlay-ports/pdfjs/portfile.cmake
@@ -47,6 +47,5 @@ file(WRITE "${CURRENT_PACKAGES_DIR}/share/pdfjs/web/locale/locale.json"
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
-file(WRITE "${CURRENT_PACKAGES_DIR}/share/pdfjs/copyright"
- "pdf.js is licensed under the Apache 2.0 License.\n"
- "See https://github.com/mozilla/pdf.js/blob/master/LICENSE\n")
+file(GLOB WASM_LICENSES "${SOURCE_PATH}/web/wasm/LICENSE_*")
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE" ${WASM_LICENSES})