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")
|
2023-01-17 04:05:54 +08:00
|
|
|
set(VCPKG_CXX_FLAGS "/arch:SSE2 ${VCPKG_CXX_FLAGS}") # TODO: /arch: flag requires compiler check. needs to be MSVC
|
2021-04-27 01:28:21 +08:00
|
|
|
set(VCPKG_C_FLAGS "/arch:SSE2 ${VCPKG_C_FLAGS}")
|
|
|
|
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
|
|
|
|
REF 37216a32839f59e8dcaa4c3951b3fcfc3f07852c # 0.42.2
|
|
|
|
SHA512 b010b2c698ebc95f8a8566c915ccfb81a82c08f0ccda8b11ddff4818eae4b51b103021d5bae9f3d3bd20bf494433f5fcc6b76188226fe336919b0b347cdcb828
|
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}
|
|
|
|
-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)
|