2021-04-27 01:28:21 +08:00
|
|
|
if(VCPKG_TARGET_IS_UWP)
|
|
|
|
list(APPEND OPTIONS
|
|
|
|
-Dmmx=disabled
|
|
|
|
-Dsse2=disabled
|
|
|
|
-Dssse3=disabled)
|
|
|
|
elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL "x86")
|
2024-06-04 13:17:32 +08:00
|
|
|
if(CMAKE_C_COMPILER_ID STREQUAL "MSVC")
|
|
|
|
set(VCPKG_C_FLAGS "/arch:SSE2 ${VCPKG_C_FLAGS}")
|
|
|
|
endif()
|
|
|
|
if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
|
|
|
|
set(VCPKG_CXX_FLAGS "/arch:SSE2 ${VCPKG_CXX_FLAGS}")
|
|
|
|
endif()
|
2021-04-27 01:28:21 +08:00
|
|
|
list(APPEND OPTIONS
|
|
|
|
-Dmmx=enabled
|
|
|
|
-Dsse2=enabled
|
|
|
|
-Dssse3=enabled)
|
|
|
|
elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
|
|
|
|
#x64 in general has all those intrinsics. (except for UWP for some reason)
|
|
|
|
list(APPEND OPTIONS
|
|
|
|
-Dmmx=enabled
|
|
|
|
-Dsse2=enabled
|
|
|
|
-Dssse3=enabled)
|
|
|
|
elseif(VCPKG_TARGET_ARCHITECTURE MATCHES "arm")
|
2022-08-12 09:34:25 +08:00
|
|
|
list(APPEND OPTIONS
|
|
|
|
#-Darm-simd=enabled does not work with arm64-windows
|
|
|
|
-Dmmx=disabled
|
|
|
|
-Dsse2=disabled
|
|
|
|
-Dssse3=disabled)
|
|
|
|
elseif(VCPKG_TARGET_ARCHITECTURE MATCHES "mips")
|
|
|
|
list(APPEND OPTIONS
|
|
|
|
-Dmmx=disabled
|
|
|
|
-Dsse2=disabled
|
|
|
|
-Dssse3=disabled)
|
2021-04-27 01:28:21 +08:00
|
|
|
endif()
|
|
|
|
|
2022-12-29 06:04:41 +08:00
|
|
|
if(VCPKG_TARGET_IS_WINDOWS AND VCPKG_TARGET_ARCHITECTURE MATCHES "arm")
|
2023-01-17 04:05:54 +08:00
|
|
|
list(APPEND OPTIONS
|
|
|
|
-Da64-neon=disabled
|
|
|
|
-Darm-simd=disabled
|
|
|
|
-Dneon=disabled
|
|
|
|
)
|
2022-12-29 06:04:41 +08:00
|
|
|
endif()
|
|
|
|
|
2023-01-26 04:20:43 +08:00
|
|
|
if(VCPKG_TARGET_IS_OSX)
|
|
|
|
# https://github.com/microsoft/vcpkg/issues/29168
|
|
|
|
list(APPEND OPTIONS -Da64-neon=disabled)
|
|
|
|
endif()
|
|
|
|
|
2023-01-24 07:48:01 +08:00
|
|
|
vcpkg_from_gitlab(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
GITLAB_URL https://gitlab.freedesktop.org
|
|
|
|
REPO pixman/pixman
|
2024-03-26 06:51:48 +08:00
|
|
|
REF "pixman-${VERSION}"
|
|
|
|
SHA512 daeb25d91e9cb8d450a6f050cbec1d91e239a03188e993ceb6286605c5ed33d97e08d6f57efaf1d5c6a8a1eedb1ebe6c113849a80d9028d5ea189c54601be424
|
2022-02-02 03:57:44 +08:00
|
|
|
PATCHES
|
|
|
|
no-host-cpu-checks.patch
|
2022-08-18 03:36:12 +08:00
|
|
|
fix_clang-cl.patch
|
|
|
|
missing_intrin_include.patch
|
2018-09-12 04:11:51 +08:00
|
|
|
)
|
2023-01-24 07:48:01 +08:00
|
|
|
|
2021-04-27 01:28:21 +08:00
|
|
|
# Meson install wrongly pkgconfig file!
|
|
|
|
vcpkg_configure_meson(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS ${OPTIONS}
|
2024-02-13 06:21:04 +08:00
|
|
|
-Ddemos=disabled
|
|
|
|
-Dgtk=disabled
|
2021-04-27 01:28:21 +08:00
|
|
|
-Dlibpng=enabled
|
2023-01-17 04:05:54 +08:00
|
|
|
-Dtests=disabled
|
2016-11-26 07:48:19 +08:00
|
|
|
)
|
2021-04-27 01:28:21 +08:00
|
|
|
vcpkg_install_meson()
|
|
|
|
vcpkg_fixup_pkgconfig()
|
2016-11-26 07:48:19 +08:00
|
|
|
|
2021-04-27 01:28:21 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
2016-11-26 07:48:19 +08:00
|
|
|
|
2021-04-27 01:28:21 +08:00
|
|
|
# # Handle copyright
|
|
|
|
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
2024-02-13 06:21:04 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/README" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME readme.txt)
|