-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'add_libraqm' of https://github.com/tobbi/vcpkg into ope…
…nssl-version-bump
- Loading branch information
Showing
10 changed files
with
133 additions
and
15 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
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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Source: libmysql | ||
Version: 8.0.4-3 | ||
Version: 8.0.4-4 | ||
Build-Depends: boost-algorithm, boost-geometry, boost-optional, boost-functional, boost-graph, openssl, icu, libevent, liblzma, lz4, zlib | ||
Description: A MySQL client library for C development. |
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,18 @@ | ||
diff --git a/configure.cmake b/configure.cmake | ||
index 1f3d8e2..9e45f48 100644 | ||
--- a/configure.cmake | ||
+++ b/configure.cmake | ||
@@ -456,7 +456,11 @@ IF(NOT HAVE_FCNTL_NONBLOCK) | ||
ENDIF() | ||
|
||
IF(NOT CMAKE_CROSSCOMPILING AND NOT MSVC) | ||
- STRING(TOLOWER ${CMAKE_SYSTEM_PROCESSOR} processor) | ||
+ IF(${CMAKE_SYSTEM_PROCESSOR}) | ||
+ STRING(TOLOWER ${CMAKE_SYSTEM_PROCESSOR} processor) | ||
+ ELSE() | ||
+ STRING(TOLOWER ${CMAKE_HOST_SYSTEM_PROCESSOR} processor) | ||
+ ENDIF() | ||
IF(processor MATCHES "86" OR processor MATCHES "amd64" OR processor MATCHES "x64") | ||
IF(NOT CMAKE_SYSTEM_NAME MATCHES "SunOS") | ||
# The loader in some Solaris versions has a bug due to which it refuses to | ||
|
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
cmake_minimum_required(VERSION 3.11) | ||
|
||
project(raqm) | ||
|
||
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR};${CMAKE_MODULE_PATH}") | ||
|
||
find_package(Freetype REQUIRED) | ||
find_package(Fribidi REQUIRED) | ||
find_package(harfbuzz CONFIG REQUIRED) | ||
|
||
find_path(HARFBUZZ_INCLUDE_DIRS | ||
NAMES hb.h | ||
PATH_SUFFIXES harfbuzz) | ||
find_path(FREETYPE_ADDITIONAL_INCLUDE_DIRS NAMES ft2build.h) | ||
add_library(raqm ${CMAKE_CURRENT_SOURCE_DIR}/src/raqm.c ${CMAKE_CURRENT_SOURCE_DIR}/src/raqm.h) | ||
|
||
target_include_directories(raqm SYSTEM PUBLIC ${FREETYPE_ADDITIONAL_INCLUDE_DIRS}) | ||
target_include_directories(raqm SYSTEM PUBLIC ${FREETYPE_INCLUDE_DIRS}) | ||
target_include_directories(raqm SYSTEM PUBLIC ${HARFBUZZ_INCLUDE_DIRS}) | ||
target_include_directories(raqm SYSTEM PUBLIC ${FRIBIDI_INCLUDE_DIR}) | ||
|
||
target_link_libraries(raqm PRIVATE Freetype::Freetype) | ||
target_link_libraries(raqm PRIVATE harfbuzz::harfbuzz ${FRIBIDI_LIBRARY}) | ||
|
||
install(TARGETS raqm | ||
RUNTIME DESTINATION bin | ||
ARCHIVE DESTINATION lib | ||
LIBRARY DESTINATION lib | ||
) | ||
|
||
set(RAQM_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/src") | ||
set(RAQM_LIBRARY raqm) | ||
set(RAQM_LIBRARIES ${HARFBUZZ_LIBRARY} ${FRIBIDI_LIBRARY} ${RAQM_LIBRARY}) | ||
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/src/raqm.h DESTINATION ${CURRENT_PACKAGES_DIR}/include) |
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: libraqm | ||
Version: 0.6.0 | ||
Description: A library for complex text layout | ||
Build-Depends: freetype, harfbuzz, fribidi |
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,12 @@ | ||
find_path(FRIBIDI_INCLUDE_DIR | ||
NAMES fribidi/fribidi.h) | ||
|
||
set(FRIBIDI_INCLUDE_DIR "${FRIBIDI_INCLUDE_DIR}/fribidi") | ||
find_library(FRIBIDI_LIBRARY NAMES fribidi) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(FriBidi | ||
FOUND_VAR FRIBIDI_FOUND | ||
REQUIRED_VARS FRIBIDI_LIBRARY FRIBIDI_INCLUDE_DIR | ||
VERSION_VAR FRIBIDI_VERSION_STRING | ||
) |
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,31 @@ | ||
include(vcpkg_common_functions) | ||
|
||
vcpkg_check_linkage(ONLY_STATIC_LIBRARY) | ||
|
||
vcpkg_from_github( | ||
OUT_SOURCE_PATH SOURCE_PATH | ||
REPO HOST-Oman/libraqm | ||
REF v0.6.0 | ||
SHA512 cd223d97b80e9d2cf26a5b68fbb84a87e53df819f12ffd06f84f1786a2207b34828d0888058a40c1d89a1466bb68b75dd326e25415afab029d51e1ed98f6a924 | ||
HEAD_REF master | ||
) | ||
|
||
file(COPY ${CURRENT_PORT_DIR}/FindFribidi.cmake DESTINATION ${SOURCE_PATH}) | ||
file(COPY ${CURRENT_PORT_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH}) | ||
|
||
vcpkg_configure_cmake( | ||
SOURCE_PATH ${SOURCE_PATH} | ||
PREFER_NINJA | ||
OPTIONS | ||
-DCURRENT_PACKAGES_DIR=${CURRENT_PACKAGES_DIR} | ||
) | ||
|
||
vcpkg_install_cmake() | ||
|
||
vcpkg_copy_pdbs() | ||
|
||
# Handle copyright | ||
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/libraqm RENAME copyright) | ||
|
||
# Post-build test for cmake libraries | ||
vcpkg_test_cmake(PACKAGE_NAME raqm) |