-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0fc6e01
commit d7ec854
Showing
5 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,6 +36,7 @@ def build_config(triplet): | |
'libwebp', | ||
'openjpeg', | ||
'sqlite3', | ||
'woff2', | ||
'pixman', | ||
'cairo', | ||
'libpsl', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ | |
"libwebp", | ||
"openjpeg", | ||
"sqlite3", | ||
"woff2", | ||
"pixman", | ||
"cairo", | ||
"libpsl" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Source: woff2 | ||
Version: 1.0.2 | ||
Build-Depends: brotli | ||
Description: WOFF2 font compression reference code |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
include(vcpkg_common_functions) | ||
|
||
set(VERSION 1.0.2) | ||
|
||
# The woff2 library does not support shared libraries | ||
vcpkg_check_linkage(ONLY_STATIC_LIBRARY) | ||
|
||
# Get archive | ||
vcpkg_download_distfile(ARCHIVE | ||
URLS "https://github.com/google/woff2/archive/v${VERSION}.zip" | ||
FILENAME "woff2-${VERSION}.zip" | ||
SHA512 4cb38d1daabe40cbede843c9338338590f1eed6843ba97f646a5abf8d64e814c5854561a8197157eeb267e252e316f67bef230afe4a2846cc734e0fdbd77de7e | ||
) | ||
|
||
# Extract archive | ||
vcpkg_extract_source_archive_ex( | ||
OUT_SOURCE_PATH SOURCE_PATH | ||
ARCHIVE ${ARCHIVE} | ||
REF ${VERSION} | ||
PATCHES ${PATCHES} | ||
) | ||
|
||
# Run CMake build | ||
vcpkg_configure_cmake( | ||
SOURCE_PATH ${SOURCE_PATH} | ||
PREFER_NINJA | ||
) | ||
|
||
vcpkg_install_cmake() | ||
vcpkg_copy_pdbs() | ||
|
||
# Copy tools | ||
file(COPY ${CURRENT_PACKAGES_DIR}/bin/ DESTINATION ${CURRENT_PACKAGES_DIR}/tools/woff2) | ||
vcpkg_copy_tool_dependencies(${CURRENT_PACKAGES_DIR}/tools/woff2) | ||
|
||
# Prepare distribution | ||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin) | ||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/bin) | ||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) | ||
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/woff2 RENAME copyright) | ||
file(WRITE ${CURRENT_PACKAGES_DIR}/share/woff2/version ${VERSION}) |