2019-05-03 13:57:43 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
2020-09-01 00:34:35 +08:00
|
|
|
vcpkg_from_github(
|
2019-10-08 01:35:13 +08:00
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2020-09-01 00:34:35 +08:00
|
|
|
REPO webmproject/libvpx
|
2023-11-16 11:13:58 +08:00
|
|
|
REF "v${VERSION}"
|
|
|
|
SHA512 49706838563c92fab7334376848d0f374efcbc1729ef511e967c908fd2ecd40e8d197f1d85da6553b3a7026bdbc17e5a76595319858af26ce58cb9a4c3854897
|
2020-09-01 00:34:35 +08:00
|
|
|
HEAD_REF master
|
2020-12-30 07:43:54 +08:00
|
|
|
PATCHES
|
|
|
|
0002-Fix-nasm-debug-format-flag.patch
|
[libvpx,lmdb,aubio,freetype-gl,intelrdfpmathlib,libbson,libtcod,metis,pqp,smpeg2] Build fixes 2022-04-28 (#24470)
* [libvpx,lmdb,aubio,freetype-gl,intelrdfpmathlib,libbson,libtcod,metis,pqp,smpeg2] Build fixes 2022-04-28
These results are from the most recent CI run: https://dev.azure.com/vcpkg/public/_build/results?buildId=71465
PASSING, REMOVE FROM FAIL LIST: aubio:x64-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
I also did some investigation as to why aubio:arm-uwp didn't pass. Turns out, it's because aubio depends on ffmpeg, which failed to build because it depends on libvpx, which we never fixed for UWP following the VS2022 update. See also https://developercommunity.visualstudio.com/t/MicrosoftVisualStudioComponentVCTool/10002207?space=62&scope=follow&sort=newest
PASSING, REMOVE FROM FAIL LIST: freetype-gl:x64-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
I also checked freetype-gl:arm-uwp, but it's blocked by glew which is blocked by opengl which appears to not be a thing on arm.
PASSING, REMOVE FROM FAIL LIST: intelrdfpmathlib:x64-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
The arm-uwp version of this emits errors that look like source issues; I blocked arm&windows with a supports expression:
D:\buildtrees\intelrdfpmathlib\src\athLib20U2-d2a8954428.clean\LIBRARY\src\bid_functions.h(3113): error C2719: 'x': formal parameter with requested alignment of 16 won't be aligned
PASSING, REMOVE FROM FAIL LIST: libbson:arm-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
PASSING, REMOVE FROM FAIL LIST: libbson:x64-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
PASSING, REMOVE FROM FAIL LIST: libtcod:arm-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
PASSING, REMOVE FROM FAIL LIST: libtcod:x64-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
PASSING, REMOVE FROM FAIL LIST: lmdb:x64-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
arm-uwp failed with again what looks like a source issue:
mdb.c.obj : error LNK2001: unresolved external symbol __tls_used
mdb.c.obj : error LNK2001: unresolved external symbol _mdb_tls_cbp
PASSING, REMOVE FROM FAIL LIST: metis:arm-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
PASSING, REMOVE FROM FAIL LIST: metis:x64-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
PASSING, REMOVE FROM FAIL LIST: pqp:arm-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
PASSING, REMOVE FROM FAIL LIST: pqp:x64-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
PASSING, REMOVE FROM FAIL LIST: smpeg2:arm-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
PASSING, REMOVE FROM FAIL LIST: smpeg2:x64-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
I also checked Linux and it says
Could NOT find ibverbs (missing: IBVERBS_INCLUDE_DIRS IBVERBS_LIBRARIES)
which may be vcpkg's fault so I left that ci.baseline.txt skip alone.
REGRESSION: jansson:arm-uwp failed with POST_BUILD_CHECKS_FAILED. If expected, add jansson:arm-uwp=fail to C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt.
REGRESSION: jansson:x64-uwp failed with POST_BUILD_CHECKS_FAILED. If expected, add jansson:x64-uwp=fail to C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt.
Already fixed by https://github.com/microsoft/vcpkg/pull/24466
* dos2unix the patch
* :dos2unix the other patches too
2022-04-30 12:27:24 +08:00
|
|
|
0003-add-uwp-v142-and-v143-support.patch
|
2021-04-20 05:26:08 +08:00
|
|
|
0004-remove-library-suffixes.patch
|
2023-11-16 11:13:58 +08:00
|
|
|
0005-fix-arm64-build.patch # Upstream commit: https://github.com/webmproject/libvpx/commit/858a8c611f4c965078485860a6820e2135e6611b
|
2019-10-08 01:35:13 +08:00
|
|
|
)
|
2017-03-16 03:07:16 +08:00
|
|
|
|
2020-07-16 06:09:33 +08:00
|
|
|
if(CMAKE_HOST_WIN32)
|
2023-12-20 16:30:40 +08:00
|
|
|
vcpkg_acquire_msys(MSYS_ROOT PACKAGES make perl)
|
|
|
|
set(ENV{PATH} "${MSYS_ROOT}/usr/bin;$ENV{PATH}")
|
2020-07-16 06:09:33 +08:00
|
|
|
else()
|
2023-12-20 16:30:40 +08:00
|
|
|
vcpkg_find_acquire_program(PERL)
|
|
|
|
get_filename_component(PERL_EXE_PATH ${PERL} DIRECTORY)
|
[libvpx,lmdb,aubio,freetype-gl,intelrdfpmathlib,libbson,libtcod,metis,pqp,smpeg2] Build fixes 2022-04-28 (#24470)
* [libvpx,lmdb,aubio,freetype-gl,intelrdfpmathlib,libbson,libtcod,metis,pqp,smpeg2] Build fixes 2022-04-28
These results are from the most recent CI run: https://dev.azure.com/vcpkg/public/_build/results?buildId=71465
PASSING, REMOVE FROM FAIL LIST: aubio:x64-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
I also did some investigation as to why aubio:arm-uwp didn't pass. Turns out, it's because aubio depends on ffmpeg, which failed to build because it depends on libvpx, which we never fixed for UWP following the VS2022 update. See also https://developercommunity.visualstudio.com/t/MicrosoftVisualStudioComponentVCTool/10002207?space=62&scope=follow&sort=newest
PASSING, REMOVE FROM FAIL LIST: freetype-gl:x64-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
I also checked freetype-gl:arm-uwp, but it's blocked by glew which is blocked by opengl which appears to not be a thing on arm.
PASSING, REMOVE FROM FAIL LIST: intelrdfpmathlib:x64-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
The arm-uwp version of this emits errors that look like source issues; I blocked arm&windows with a supports expression:
D:\buildtrees\intelrdfpmathlib\src\athLib20U2-d2a8954428.clean\LIBRARY\src\bid_functions.h(3113): error C2719: 'x': formal parameter with requested alignment of 16 won't be aligned
PASSING, REMOVE FROM FAIL LIST: libbson:arm-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
PASSING, REMOVE FROM FAIL LIST: libbson:x64-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
PASSING, REMOVE FROM FAIL LIST: libtcod:arm-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
PASSING, REMOVE FROM FAIL LIST: libtcod:x64-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
PASSING, REMOVE FROM FAIL LIST: lmdb:x64-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
arm-uwp failed with again what looks like a source issue:
mdb.c.obj : error LNK2001: unresolved external symbol __tls_used
mdb.c.obj : error LNK2001: unresolved external symbol _mdb_tls_cbp
PASSING, REMOVE FROM FAIL LIST: metis:arm-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
PASSING, REMOVE FROM FAIL LIST: metis:x64-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
PASSING, REMOVE FROM FAIL LIST: pqp:arm-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
PASSING, REMOVE FROM FAIL LIST: pqp:x64-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
PASSING, REMOVE FROM FAIL LIST: smpeg2:arm-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
PASSING, REMOVE FROM FAIL LIST: smpeg2:x64-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
I also checked Linux and it says
Could NOT find ibverbs (missing: IBVERBS_INCLUDE_DIRS IBVERBS_LIBRARIES)
which may be vcpkg's fault so I left that ci.baseline.txt skip alone.
REGRESSION: jansson:arm-uwp failed with POST_BUILD_CHECKS_FAILED. If expected, add jansson:arm-uwp=fail to C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt.
REGRESSION: jansson:x64-uwp failed with POST_BUILD_CHECKS_FAILED. If expected, add jansson:x64-uwp=fail to C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt.
Already fixed by https://github.com/microsoft/vcpkg/pull/24466
* dos2unix the patch
* :dos2unix the other patches too
2022-04-30 12:27:24 +08:00
|
|
|
set(ENV{PATH} "${MSYS_ROOT}/usr/bin:$ENV{PATH}:${PERL_EXE_PATH}")
|
2020-07-16 06:09:33 +08:00
|
|
|
endif()
|
2023-12-20 06:58:28 +08:00
|
|
|
|
2023-12-20 16:30:40 +08:00
|
|
|
find_program(BASH NAME bash HINTS ${MSYS_ROOT}/usr/bin REQUIRED NO_CACHE)
|
2017-03-16 03:07:16 +08:00
|
|
|
|
2020-12-30 07:43:54 +08:00
|
|
|
vcpkg_find_acquire_program(NASM)
|
|
|
|
get_filename_component(NASM_EXE_PATH ${NASM} DIRECTORY)
|
|
|
|
vcpkg_add_to_path(${NASM_EXE_PATH})
|
2020-10-29 05:26:41 +08:00
|
|
|
|
2020-07-16 06:09:33 +08:00
|
|
|
if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
|
2017-03-16 03:07:16 +08:00
|
|
|
|
2023-08-18 05:31:58 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-tmp")
|
2017-03-16 03:07:16 +08:00
|
|
|
|
2020-05-07 01:45:40 +08:00
|
|
|
if(VCPKG_CRT_LINKAGE STREQUAL static)
|
|
|
|
set(LIBVPX_CRT_LINKAGE --enable-static-msvcrt)
|
|
|
|
set(LIBVPX_CRT_SUFFIX mt)
|
2019-09-10 00:00:10 +08:00
|
|
|
else()
|
2020-05-07 01:45:40 +08:00
|
|
|
set(LIBVPX_CRT_SUFFIX md)
|
|
|
|
endif()
|
|
|
|
|
[libvpx,lmdb,aubio,freetype-gl,intelrdfpmathlib,libbson,libtcod,metis,pqp,smpeg2] Build fixes 2022-04-28 (#24470)
* [libvpx,lmdb,aubio,freetype-gl,intelrdfpmathlib,libbson,libtcod,metis,pqp,smpeg2] Build fixes 2022-04-28
These results are from the most recent CI run: https://dev.azure.com/vcpkg/public/_build/results?buildId=71465
PASSING, REMOVE FROM FAIL LIST: aubio:x64-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
I also did some investigation as to why aubio:arm-uwp didn't pass. Turns out, it's because aubio depends on ffmpeg, which failed to build because it depends on libvpx, which we never fixed for UWP following the VS2022 update. See also https://developercommunity.visualstudio.com/t/MicrosoftVisualStudioComponentVCTool/10002207?space=62&scope=follow&sort=newest
PASSING, REMOVE FROM FAIL LIST: freetype-gl:x64-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
I also checked freetype-gl:arm-uwp, but it's blocked by glew which is blocked by opengl which appears to not be a thing on arm.
PASSING, REMOVE FROM FAIL LIST: intelrdfpmathlib:x64-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
The arm-uwp version of this emits errors that look like source issues; I blocked arm&windows with a supports expression:
D:\buildtrees\intelrdfpmathlib\src\athLib20U2-d2a8954428.clean\LIBRARY\src\bid_functions.h(3113): error C2719: 'x': formal parameter with requested alignment of 16 won't be aligned
PASSING, REMOVE FROM FAIL LIST: libbson:arm-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
PASSING, REMOVE FROM FAIL LIST: libbson:x64-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
PASSING, REMOVE FROM FAIL LIST: libtcod:arm-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
PASSING, REMOVE FROM FAIL LIST: libtcod:x64-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
PASSING, REMOVE FROM FAIL LIST: lmdb:x64-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
arm-uwp failed with again what looks like a source issue:
mdb.c.obj : error LNK2001: unresolved external symbol __tls_used
mdb.c.obj : error LNK2001: unresolved external symbol _mdb_tls_cbp
PASSING, REMOVE FROM FAIL LIST: metis:arm-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
PASSING, REMOVE FROM FAIL LIST: metis:x64-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
PASSING, REMOVE FROM FAIL LIST: pqp:arm-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
PASSING, REMOVE FROM FAIL LIST: pqp:x64-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
PASSING, REMOVE FROM FAIL LIST: smpeg2:arm-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
PASSING, REMOVE FROM FAIL LIST: smpeg2:x64-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
I also checked Linux and it says
Could NOT find ibverbs (missing: IBVERBS_INCLUDE_DIRS IBVERBS_LIBRARIES)
which may be vcpkg's fault so I left that ci.baseline.txt skip alone.
REGRESSION: jansson:arm-uwp failed with POST_BUILD_CHECKS_FAILED. If expected, add jansson:arm-uwp=fail to C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt.
REGRESSION: jansson:x64-uwp failed with POST_BUILD_CHECKS_FAILED. If expected, add jansson:x64-uwp=fail to C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt.
Already fixed by https://github.com/microsoft/vcpkg/pull/24466
* dos2unix the patch
* :dos2unix the other patches too
2022-04-30 12:27:24 +08:00
|
|
|
if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL WindowsStore AND (VCPKG_PLATFORM_TOOLSET STREQUAL v142 OR VCPKG_PLATFORM_TOOLSET STREQUAL v143))
|
2021-02-11 16:33:20 +08:00
|
|
|
set(LIBVPX_TARGET_OS "uwp")
|
|
|
|
elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL x86 OR VCPKG_TARGET_ARCHITECTURE STREQUAL arm)
|
|
|
|
set(LIBVPX_TARGET_OS "win32")
|
|
|
|
elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL x64 OR VCPKG_TARGET_ARCHITECTURE STREQUAL arm64)
|
|
|
|
set(LIBVPX_TARGET_OS "win64")
|
|
|
|
endif()
|
|
|
|
|
2020-05-07 01:45:40 +08:00
|
|
|
if(VCPKG_TARGET_ARCHITECTURE STREQUAL x86)
|
2021-02-11 16:33:20 +08:00
|
|
|
set(LIBVPX_TARGET_ARCH "x86-${LIBVPX_TARGET_OS}")
|
2020-05-07 01:45:40 +08:00
|
|
|
set(LIBVPX_ARCH_DIR "Win32")
|
|
|
|
elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL x64)
|
2021-02-11 16:33:20 +08:00
|
|
|
set(LIBVPX_TARGET_ARCH "x86_64-${LIBVPX_TARGET_OS}")
|
2020-05-07 01:45:40 +08:00
|
|
|
set(LIBVPX_ARCH_DIR "x64")
|
2020-06-18 04:43:44 +08:00
|
|
|
elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL arm64)
|
2021-02-11 16:33:20 +08:00
|
|
|
set(LIBVPX_TARGET_ARCH "arm64-${LIBVPX_TARGET_OS}")
|
2020-06-18 04:43:44 +08:00
|
|
|
set(LIBVPX_ARCH_DIR "ARM64")
|
2020-05-07 01:45:40 +08:00
|
|
|
elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL arm)
|
2021-02-11 16:33:20 +08:00
|
|
|
set(LIBVPX_TARGET_ARCH "armv7-${LIBVPX_TARGET_OS}")
|
2020-05-07 01:45:40 +08:00
|
|
|
set(LIBVPX_ARCH_DIR "ARM")
|
|
|
|
endif()
|
|
|
|
|
[libvpx,lmdb,aubio,freetype-gl,intelrdfpmathlib,libbson,libtcod,metis,pqp,smpeg2] Build fixes 2022-04-28 (#24470)
* [libvpx,lmdb,aubio,freetype-gl,intelrdfpmathlib,libbson,libtcod,metis,pqp,smpeg2] Build fixes 2022-04-28
These results are from the most recent CI run: https://dev.azure.com/vcpkg/public/_build/results?buildId=71465
PASSING, REMOVE FROM FAIL LIST: aubio:x64-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
I also did some investigation as to why aubio:arm-uwp didn't pass. Turns out, it's because aubio depends on ffmpeg, which failed to build because it depends on libvpx, which we never fixed for UWP following the VS2022 update. See also https://developercommunity.visualstudio.com/t/MicrosoftVisualStudioComponentVCTool/10002207?space=62&scope=follow&sort=newest
PASSING, REMOVE FROM FAIL LIST: freetype-gl:x64-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
I also checked freetype-gl:arm-uwp, but it's blocked by glew which is blocked by opengl which appears to not be a thing on arm.
PASSING, REMOVE FROM FAIL LIST: intelrdfpmathlib:x64-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
The arm-uwp version of this emits errors that look like source issues; I blocked arm&windows with a supports expression:
D:\buildtrees\intelrdfpmathlib\src\athLib20U2-d2a8954428.clean\LIBRARY\src\bid_functions.h(3113): error C2719: 'x': formal parameter with requested alignment of 16 won't be aligned
PASSING, REMOVE FROM FAIL LIST: libbson:arm-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
PASSING, REMOVE FROM FAIL LIST: libbson:x64-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
PASSING, REMOVE FROM FAIL LIST: libtcod:arm-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
PASSING, REMOVE FROM FAIL LIST: libtcod:x64-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
PASSING, REMOVE FROM FAIL LIST: lmdb:x64-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
arm-uwp failed with again what looks like a source issue:
mdb.c.obj : error LNK2001: unresolved external symbol __tls_used
mdb.c.obj : error LNK2001: unresolved external symbol _mdb_tls_cbp
PASSING, REMOVE FROM FAIL LIST: metis:arm-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
PASSING, REMOVE FROM FAIL LIST: metis:x64-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
PASSING, REMOVE FROM FAIL LIST: pqp:arm-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
PASSING, REMOVE FROM FAIL LIST: pqp:x64-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
PASSING, REMOVE FROM FAIL LIST: smpeg2:arm-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
PASSING, REMOVE FROM FAIL LIST: smpeg2:x64-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
I also checked Linux and it says
Could NOT find ibverbs (missing: IBVERBS_INCLUDE_DIRS IBVERBS_LIBRARIES)
which may be vcpkg's fault so I left that ci.baseline.txt skip alone.
REGRESSION: jansson:arm-uwp failed with POST_BUILD_CHECKS_FAILED. If expected, add jansson:arm-uwp=fail to C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt.
REGRESSION: jansson:x64-uwp failed with POST_BUILD_CHECKS_FAILED. If expected, add jansson:x64-uwp=fail to C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt.
Already fixed by https://github.com/microsoft/vcpkg/pull/24466
* dos2unix the patch
* :dos2unix the other patches too
2022-04-30 12:27:24 +08:00
|
|
|
if(VCPKG_PLATFORM_TOOLSET STREQUAL v143)
|
|
|
|
set(LIBVPX_TARGET_VS "vs17")
|
|
|
|
elseif(VCPKG_PLATFORM_TOOLSET STREQUAL v142)
|
2021-02-11 16:33:20 +08:00
|
|
|
set(LIBVPX_TARGET_VS "vs16")
|
|
|
|
else()
|
|
|
|
set(LIBVPX_TARGET_VS "vs15")
|
|
|
|
endif()
|
2020-05-07 01:45:40 +08:00
|
|
|
|
2021-09-03 04:11:17 +08:00
|
|
|
set(OPTIONS "--disable-examples --disable-tools --disable-docs --enable-pic")
|
|
|
|
|
|
|
|
if("realtime" IN_LIST FEATURES)
|
|
|
|
set(OPTIONS "${OPTIONS} --enable-realtime-only")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if("highbitdepth" IN_LIST FEATURES)
|
|
|
|
set(OPTIONS "${OPTIONS} --enable-vp9-highbitdepth")
|
|
|
|
endif()
|
|
|
|
|
2020-05-07 01:45:40 +08:00
|
|
|
message(STATUS "Generating makefile")
|
2023-08-18 05:31:58 +08:00
|
|
|
file(MAKE_DIRECTORY "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-tmp")
|
2020-05-07 01:45:40 +08:00
|
|
|
vcpkg_execute_required_process(
|
|
|
|
COMMAND
|
|
|
|
${BASH} --noprofile --norc
|
|
|
|
"${SOURCE_PATH}/configure"
|
|
|
|
--target=${LIBVPX_TARGET_ARCH}-${LIBVPX_TARGET_VS}
|
|
|
|
${LIBVPX_CRT_LINKAGE}
|
2021-09-03 04:11:17 +08:00
|
|
|
${OPTIONS}
|
2020-12-30 07:43:54 +08:00
|
|
|
--as=nasm
|
2023-08-18 05:31:58 +08:00
|
|
|
WORKING_DIRECTORY "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-tmp"
|
2020-05-07 01:45:40 +08:00
|
|
|
LOGNAME configure-${TARGET_TRIPLET})
|
|
|
|
|
|
|
|
message(STATUS "Generating MSBuild projects")
|
|
|
|
vcpkg_execute_required_process(
|
|
|
|
COMMAND
|
|
|
|
${BASH} --noprofile --norc -c "make dist"
|
2023-08-18 05:31:58 +08:00
|
|
|
WORKING_DIRECTORY "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-tmp"
|
2020-05-07 01:45:40 +08:00
|
|
|
LOGNAME generate-${TARGET_TRIPLET})
|
|
|
|
|
2023-08-18 05:31:58 +08:00
|
|
|
vcpkg_msbuild_install(
|
|
|
|
SOURCE_PATH "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-tmp"
|
|
|
|
PROJECT_SUBPATH vpx.vcxproj
|
2020-05-07 01:45:40 +08:00
|
|
|
)
|
|
|
|
|
2020-06-18 04:43:44 +08:00
|
|
|
if (VCPKG_TARGET_ARCHITECTURE STREQUAL arm64)
|
2023-11-16 11:13:58 +08:00
|
|
|
set(LIBVPX_INCLUDE_DIR "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/vpx-vp8-vp9-nopost-nodocs-${LIBVPX_TARGET_ARCH}${LIBVPX_CRT_SUFFIX}-${LIBVPX_TARGET_VS}-v${VERSION}/include/vpx")
|
2020-06-18 04:43:44 +08:00
|
|
|
elseif (VCPKG_TARGET_ARCHITECTURE STREQUAL arm)
|
2023-11-16 11:13:58 +08:00
|
|
|
set(LIBVPX_INCLUDE_DIR "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/vpx-vp8-vp9-nopost-nomt-nodocs-${LIBVPX_TARGET_ARCH}${LIBVPX_CRT_SUFFIX}-${LIBVPX_TARGET_VS}-v${VERSION}/include/vpx")
|
2019-09-10 00:00:10 +08:00
|
|
|
else()
|
2023-11-16 11:13:58 +08:00
|
|
|
set(LIBVPX_INCLUDE_DIR "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/vpx-vp8-vp9-nodocs-${LIBVPX_TARGET_ARCH}${LIBVPX_CRT_SUFFIX}-${LIBVPX_TARGET_VS}-v${VERSION}/include/vpx")
|
2019-09-10 00:00:10 +08:00
|
|
|
endif()
|
2020-05-07 01:45:40 +08:00
|
|
|
file(
|
|
|
|
INSTALL
|
2021-09-02 05:27:04 +08:00
|
|
|
"${LIBVPX_INCLUDE_DIR}"
|
2020-05-07 01:45:40 +08:00
|
|
|
DESTINATION
|
|
|
|
"${CURRENT_PACKAGES_DIR}/include"
|
|
|
|
RENAME
|
|
|
|
"vpx")
|
2021-09-02 05:27:04 +08:00
|
|
|
if (NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
|
|
|
|
set(LIBVPX_PREFIX "${CURRENT_INSTALLED_DIR}")
|
|
|
|
configure_file("${CMAKE_CURRENT_LIST_DIR}/vpx.pc.in" "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/vpx.pc" @ONLY)
|
|
|
|
endif()
|
[libvpx,lmdb,aubio,freetype-gl,intelrdfpmathlib,libbson,libtcod,metis,pqp,smpeg2] Build fixes 2022-04-28 (#24470)
* [libvpx,lmdb,aubio,freetype-gl,intelrdfpmathlib,libbson,libtcod,metis,pqp,smpeg2] Build fixes 2022-04-28
These results are from the most recent CI run: https://dev.azure.com/vcpkg/public/_build/results?buildId=71465
PASSING, REMOVE FROM FAIL LIST: aubio:x64-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
I also did some investigation as to why aubio:arm-uwp didn't pass. Turns out, it's because aubio depends on ffmpeg, which failed to build because it depends on libvpx, which we never fixed for UWP following the VS2022 update. See also https://developercommunity.visualstudio.com/t/MicrosoftVisualStudioComponentVCTool/10002207?space=62&scope=follow&sort=newest
PASSING, REMOVE FROM FAIL LIST: freetype-gl:x64-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
I also checked freetype-gl:arm-uwp, but it's blocked by glew which is blocked by opengl which appears to not be a thing on arm.
PASSING, REMOVE FROM FAIL LIST: intelrdfpmathlib:x64-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
The arm-uwp version of this emits errors that look like source issues; I blocked arm&windows with a supports expression:
D:\buildtrees\intelrdfpmathlib\src\athLib20U2-d2a8954428.clean\LIBRARY\src\bid_functions.h(3113): error C2719: 'x': formal parameter with requested alignment of 16 won't be aligned
PASSING, REMOVE FROM FAIL LIST: libbson:arm-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
PASSING, REMOVE FROM FAIL LIST: libbson:x64-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
PASSING, REMOVE FROM FAIL LIST: libtcod:arm-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
PASSING, REMOVE FROM FAIL LIST: libtcod:x64-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
PASSING, REMOVE FROM FAIL LIST: lmdb:x64-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
arm-uwp failed with again what looks like a source issue:
mdb.c.obj : error LNK2001: unresolved external symbol __tls_used
mdb.c.obj : error LNK2001: unresolved external symbol _mdb_tls_cbp
PASSING, REMOVE FROM FAIL LIST: metis:arm-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
PASSING, REMOVE FROM FAIL LIST: metis:x64-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
PASSING, REMOVE FROM FAIL LIST: pqp:arm-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
PASSING, REMOVE FROM FAIL LIST: pqp:x64-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
PASSING, REMOVE FROM FAIL LIST: smpeg2:arm-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
PASSING, REMOVE FROM FAIL LIST: smpeg2:x64-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
I also checked Linux and it says
Could NOT find ibverbs (missing: IBVERBS_INCLUDE_DIRS IBVERBS_LIBRARIES)
which may be vcpkg's fault so I left that ci.baseline.txt skip alone.
REGRESSION: jansson:arm-uwp failed with POST_BUILD_CHECKS_FAILED. If expected, add jansson:arm-uwp=fail to C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt.
REGRESSION: jansson:x64-uwp failed with POST_BUILD_CHECKS_FAILED. If expected, add jansson:x64-uwp=fail to C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt.
Already fixed by https://github.com/microsoft/vcpkg/pull/24466
* dos2unix the patch
* :dos2unix the other patches too
2022-04-30 12:27:24 +08:00
|
|
|
|
2021-09-02 05:27:04 +08:00
|
|
|
if (NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
|
|
|
set(LIBVPX_PREFIX "${CURRENT_INSTALLED_DIR}/debug")
|
[libvpx,lmdb,aubio,freetype-gl,intelrdfpmathlib,libbson,libtcod,metis,pqp,smpeg2] Build fixes 2022-04-28 (#24470)
* [libvpx,lmdb,aubio,freetype-gl,intelrdfpmathlib,libbson,libtcod,metis,pqp,smpeg2] Build fixes 2022-04-28
These results are from the most recent CI run: https://dev.azure.com/vcpkg/public/_build/results?buildId=71465
PASSING, REMOVE FROM FAIL LIST: aubio:x64-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
I also did some investigation as to why aubio:arm-uwp didn't pass. Turns out, it's because aubio depends on ffmpeg, which failed to build because it depends on libvpx, which we never fixed for UWP following the VS2022 update. See also https://developercommunity.visualstudio.com/t/MicrosoftVisualStudioComponentVCTool/10002207?space=62&scope=follow&sort=newest
PASSING, REMOVE FROM FAIL LIST: freetype-gl:x64-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
I also checked freetype-gl:arm-uwp, but it's blocked by glew which is blocked by opengl which appears to not be a thing on arm.
PASSING, REMOVE FROM FAIL LIST: intelrdfpmathlib:x64-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
The arm-uwp version of this emits errors that look like source issues; I blocked arm&windows with a supports expression:
D:\buildtrees\intelrdfpmathlib\src\athLib20U2-d2a8954428.clean\LIBRARY\src\bid_functions.h(3113): error C2719: 'x': formal parameter with requested alignment of 16 won't be aligned
PASSING, REMOVE FROM FAIL LIST: libbson:arm-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
PASSING, REMOVE FROM FAIL LIST: libbson:x64-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
PASSING, REMOVE FROM FAIL LIST: libtcod:arm-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
PASSING, REMOVE FROM FAIL LIST: libtcod:x64-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
PASSING, REMOVE FROM FAIL LIST: lmdb:x64-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
arm-uwp failed with again what looks like a source issue:
mdb.c.obj : error LNK2001: unresolved external symbol __tls_used
mdb.c.obj : error LNK2001: unresolved external symbol _mdb_tls_cbp
PASSING, REMOVE FROM FAIL LIST: metis:arm-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
PASSING, REMOVE FROM FAIL LIST: metis:x64-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
PASSING, REMOVE FROM FAIL LIST: pqp:arm-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
PASSING, REMOVE FROM FAIL LIST: pqp:x64-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
PASSING, REMOVE FROM FAIL LIST: smpeg2:arm-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
PASSING, REMOVE FROM FAIL LIST: smpeg2:x64-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
I also checked Linux and it says
Could NOT find ibverbs (missing: IBVERBS_INCLUDE_DIRS IBVERBS_LIBRARIES)
which may be vcpkg's fault so I left that ci.baseline.txt skip alone.
REGRESSION: jansson:arm-uwp failed with POST_BUILD_CHECKS_FAILED. If expected, add jansson:arm-uwp=fail to C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt.
REGRESSION: jansson:x64-uwp failed with POST_BUILD_CHECKS_FAILED. If expected, add jansson:x64-uwp=fail to C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt.
Already fixed by https://github.com/microsoft/vcpkg/pull/24466
* dos2unix the patch
* :dos2unix the other patches too
2022-04-30 12:27:24 +08:00
|
|
|
configure_file("${CMAKE_CURRENT_LIST_DIR}/vpx.pc.in" "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/vpx.pc" @ONLY)
|
2021-09-02 05:27:04 +08:00
|
|
|
endif()
|
2017-03-16 03:07:16 +08:00
|
|
|
|
|
|
|
else()
|
2020-05-07 01:45:40 +08:00
|
|
|
|
2021-09-03 04:11:17 +08:00
|
|
|
set(OPTIONS "--disable-examples --disable-tools --disable-docs --disable-unit-tests --enable-pic")
|
2020-05-07 01:45:40 +08:00
|
|
|
|
|
|
|
set(OPTIONS_DEBUG "--enable-debug-libs --enable-debug --prefix=${CURRENT_PACKAGES_DIR}/debug")
|
|
|
|
set(OPTIONS_RELEASE "--prefix=${CURRENT_PACKAGES_DIR}")
|
2023-11-16 11:13:58 +08:00
|
|
|
set(AS_NASM "--as=nasm")
|
2021-04-27 01:27:45 +08:00
|
|
|
|
2020-05-07 01:45:40 +08:00
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
|
|
|
set(OPTIONS "${OPTIONS} --disable-static --enable-shared")
|
|
|
|
else()
|
|
|
|
set(OPTIONS "${OPTIONS} --enable-static --disable-shared")
|
|
|
|
endif()
|
2021-04-27 01:27:45 +08:00
|
|
|
|
2021-09-03 04:11:17 +08:00
|
|
|
if("realtime" IN_LIST FEATURES)
|
|
|
|
set(OPTIONS "${OPTIONS} --enable-realtime-only")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if("highbitdepth" IN_LIST FEATURES)
|
|
|
|
set(OPTIONS "${OPTIONS} --enable-vp9-highbitdepth")
|
|
|
|
endif()
|
|
|
|
|
2020-05-27 05:05:44 +08:00
|
|
|
if(VCPKG_TARGET_ARCHITECTURE STREQUAL x86)
|
|
|
|
set(LIBVPX_TARGET_ARCH "x86")
|
|
|
|
elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL x64)
|
|
|
|
set(LIBVPX_TARGET_ARCH "x86_64")
|
2023-11-16 11:13:58 +08:00
|
|
|
elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL arm)
|
|
|
|
set(LIBVPX_TARGET_ARCH "armv7")
|
2020-09-25 03:12:50 +08:00
|
|
|
elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL arm64)
|
|
|
|
set(LIBVPX_TARGET_ARCH "arm64")
|
2020-05-27 05:05:44 +08:00
|
|
|
else()
|
|
|
|
message(FATAL_ERROR "libvpx does not support architecture ${VCPKG_TARGET_ARCHITECTURE}")
|
|
|
|
endif()
|
|
|
|
|
2023-11-16 11:13:58 +08:00
|
|
|
vcpkg_cmake_get_vars(cmake_vars_file)
|
|
|
|
include("${cmake_vars_file}")
|
|
|
|
|
|
|
|
# Set environment variables for configure
|
|
|
|
if(VCPKG_DETECTED_CMAKE_C_COMPILER MATCHES "([^\/]*-)gcc$")
|
|
|
|
message(STATUS "Cross-building for ${TARGET_TRIPLET} with ${CMAKE_MATCH_1}")
|
|
|
|
set(ENV{CROSS} ${CMAKE_MATCH_1})
|
|
|
|
unset(AS_NASM)
|
|
|
|
else()
|
|
|
|
set(ENV{CC} ${VCPKG_DETECTED_CMAKE_C_COMPILER})
|
|
|
|
set(ENV{CXX} ${VCPKG_DETECTED_CMAKE_CXX_COMPILER})
|
|
|
|
set(ENV{AR} ${VCPKG_DETECTED_CMAKE_AR})
|
|
|
|
set(ENV{LD} ${VCPKG_DETECTED_CMAKE_LINKER})
|
|
|
|
set(ENV{RANLIB} ${VCPKG_DETECTED_CMAKE_RANLIB})
|
|
|
|
set(ENV{STRIP} ${VCPKG_DETECTED_CMAKE_STRIP})
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(VCPKG_TARGET_IS_MINGW)
|
|
|
|
if(LIBVPX_TARGET_ARCH STREQUAL "x86")
|
|
|
|
set(LIBVPX_TARGET "x86-win32-gcc")
|
|
|
|
else()
|
|
|
|
set(LIBVPX_TARGET "x86_64-win64-gcc")
|
|
|
|
endif()
|
|
|
|
elseif(VCPKG_TARGET_IS_LINUX)
|
2020-05-27 05:05:44 +08:00
|
|
|
set(LIBVPX_TARGET "${LIBVPX_TARGET_ARCH}-linux-gcc")
|
2023-11-16 11:13:58 +08:00
|
|
|
elseif(VCPKG_TARGET_IS_ANDROID)
|
|
|
|
set(LIBVPX_TARGET "generic-gnu")
|
|
|
|
# Settings
|
|
|
|
if(VCPKG_TARGET_ARCHITECTURE STREQUAL x86)
|
|
|
|
set(OPTIONS "${OPTIONS} --disable-sse4_1 --disable-avx --disable-avx2 --disable-avx512")
|
|
|
|
elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL x64)
|
|
|
|
set(OPTIONS "${OPTIONS} --disable-avx --disable-avx2 --disable-avx512")
|
|
|
|
elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL arm)
|
|
|
|
set(OPTIONS "${OPTIONS} --enable-thumb --disable-neon")
|
|
|
|
elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL arm64)
|
|
|
|
set(OPTIONS "${OPTIONS} --enable-thumb")
|
|
|
|
endif()
|
|
|
|
# Set environment variables for configure
|
|
|
|
set(ENV{AS} ${VCPKG_DETECTED_CMAKE_C_COMPILER})
|
|
|
|
set(ENV{LDFLAGS} "${LDFLAGS} --target=${VCPKG_DETECTED_CMAKE_C_COMPILER_TARGET}")
|
|
|
|
# Set clang target
|
|
|
|
set(OPTIONS "${OPTIONS} --extra-cflags=--target=${VCPKG_DETECTED_CMAKE_C_COMPILER_TARGET} --extra-cxxflags=--target=${VCPKG_DETECTED_CMAKE_CXX_COMPILER_TARGET}")
|
|
|
|
# Unset nasm and let AS do its job
|
|
|
|
unset(AS_NASM)
|
2020-05-27 05:05:44 +08:00
|
|
|
elseif(VCPKG_TARGET_IS_OSX)
|
2021-06-11 02:44:46 +08:00
|
|
|
if(VCPKG_TARGET_ARCHITECTURE STREQUAL "arm64")
|
|
|
|
set(LIBVPX_TARGET "arm64-darwin20-gcc")
|
2023-04-13 02:28:39 +08:00
|
|
|
if(DEFINED VCPKG_OSX_DEPLOYMENT_TARGET)
|
|
|
|
set(MAC_OSX_MIN_VERSION_CFLAGS --extra-cflags=-mmacosx-version-min=${VCPKG_OSX_DEPLOYMENT_TARGET} --extra-cxxflags=-mmacosx-version-min=${VCPKG_OSX_DEPLOYMENT_TARGET})
|
|
|
|
endif()
|
2021-06-11 02:44:46 +08:00
|
|
|
else()
|
|
|
|
set(LIBVPX_TARGET "${LIBVPX_TARGET_ARCH}-darwin17-gcc") # enable latest CPU instructions for best performance and less CPU usage on MacOS
|
|
|
|
endif()
|
2023-11-16 11:13:58 +08:00
|
|
|
elseif(VCPKG_TARGET_IS_IOS)
|
|
|
|
if(VCPKG_TARGET_ARCHITECTURE STREQUAL arm)
|
|
|
|
set(LIBVPX_TARGET "armv7-darwin-gcc")
|
|
|
|
elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL arm64)
|
|
|
|
set(LIBVPX_TARGET "arm64-darwin-gcc")
|
|
|
|
else()
|
|
|
|
message(FATAL_ERROR "libvpx does not support architecture ${VCPKG_TARGET_ARCHITECTURE} on iOS")
|
|
|
|
endif()
|
2020-05-27 05:05:44 +08:00
|
|
|
else()
|
|
|
|
set(LIBVPX_TARGET "generic-gnu") # use default target
|
|
|
|
endif()
|
2020-05-07 01:45:40 +08:00
|
|
|
|
2020-05-27 05:05:44 +08:00
|
|
|
message(STATUS "Build info. Target: ${LIBVPX_TARGET}; Options: ${OPTIONS}")
|
2020-05-07 01:45:40 +08:00
|
|
|
|
|
|
|
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
|
|
|
|
message(STATUS "Configuring libvpx for Release")
|
2021-09-02 05:27:04 +08:00
|
|
|
file(MAKE_DIRECTORY "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel")
|
2020-05-07 01:45:40 +08:00
|
|
|
vcpkg_execute_required_process(
|
|
|
|
COMMAND
|
|
|
|
${BASH} --noprofile --norc
|
|
|
|
"${SOURCE_PATH}/configure"
|
2020-05-27 05:05:44 +08:00
|
|
|
--target=${LIBVPX_TARGET}
|
2020-05-07 01:45:40 +08:00
|
|
|
${OPTIONS}
|
|
|
|
${OPTIONS_RELEASE}
|
2023-04-13 02:28:39 +08:00
|
|
|
${MAC_OSX_MIN_VERSION_CFLAGS}
|
2023-11-16 11:13:58 +08:00
|
|
|
${AS_NASM}
|
2020-05-07 01:45:40 +08:00
|
|
|
WORKING_DIRECTORY "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel"
|
|
|
|
LOGNAME configure-${TARGET_TRIPLET}-rel)
|
|
|
|
|
|
|
|
message(STATUS "Building libvpx for Release")
|
|
|
|
vcpkg_execute_required_process(
|
|
|
|
COMMAND
|
2023-11-16 11:13:58 +08:00
|
|
|
${BASH} --noprofile --norc -c "make -j${VCPKG_CONCURRENCY}"
|
2020-05-07 01:45:40 +08:00
|
|
|
WORKING_DIRECTORY "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel"
|
|
|
|
LOGNAME build-${TARGET_TRIPLET}-rel
|
|
|
|
)
|
|
|
|
|
|
|
|
message(STATUS "Installing libvpx for Release")
|
|
|
|
vcpkg_execute_required_process(
|
|
|
|
COMMAND
|
|
|
|
${BASH} --noprofile --norc -c "make install"
|
|
|
|
WORKING_DIRECTORY "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel"
|
|
|
|
LOGNAME install-${TARGET_TRIPLET}-rel
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
# --- --- ---
|
|
|
|
|
|
|
|
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
|
|
|
message(STATUS "Configuring libvpx for Debug")
|
2021-09-02 05:27:04 +08:00
|
|
|
file(MAKE_DIRECTORY "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg")
|
2020-05-07 01:45:40 +08:00
|
|
|
vcpkg_execute_required_process(
|
|
|
|
COMMAND
|
|
|
|
${BASH} --noprofile --norc
|
|
|
|
"${SOURCE_PATH}/configure"
|
2020-05-27 05:05:44 +08:00
|
|
|
--target=${LIBVPX_TARGET}
|
2020-05-07 01:45:40 +08:00
|
|
|
${OPTIONS}
|
|
|
|
${OPTIONS_DEBUG}
|
2023-04-13 02:28:39 +08:00
|
|
|
${MAC_OSX_MIN_VERSION_CFLAGS}
|
2023-11-16 11:13:58 +08:00
|
|
|
${AS_NASM}
|
2020-05-07 01:45:40 +08:00
|
|
|
WORKING_DIRECTORY "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg"
|
|
|
|
LOGNAME configure-${TARGET_TRIPLET}-dbg)
|
|
|
|
|
|
|
|
message(STATUS "Building libvpx for Debug")
|
|
|
|
vcpkg_execute_required_process(
|
|
|
|
COMMAND
|
2023-11-16 11:13:58 +08:00
|
|
|
${BASH} --noprofile --norc -c "make -j${VCPKG_CONCURRENCY}"
|
2020-05-07 01:45:40 +08:00
|
|
|
WORKING_DIRECTORY "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg"
|
|
|
|
LOGNAME build-${TARGET_TRIPLET}-dbg
|
|
|
|
)
|
|
|
|
|
|
|
|
message(STATUS "Installing libvpx for Debug")
|
|
|
|
vcpkg_execute_required_process(
|
|
|
|
COMMAND
|
|
|
|
${BASH} --noprofile --norc -c "make install"
|
|
|
|
WORKING_DIRECTORY "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg"
|
|
|
|
LOGNAME install-${TARGET_TRIPLET}-dbg
|
|
|
|
)
|
|
|
|
|
2021-09-02 05:27:04 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(REMOVE "${CURRENT_PACKAGES_DIR}/debug/lib/libvpx_g.a")
|
2020-05-07 01:45:40 +08:00
|
|
|
endif()
|
2017-03-16 03:07:16 +08:00
|
|
|
endif()
|
|
|
|
|
2021-09-02 05:27:04 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
|
2020-06-11 17:38:22 +08:00
|
|
|
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
|
|
|
set(LIBVPX_CONFIG_DEBUG ON)
|
|
|
|
else()
|
|
|
|
set(LIBVPX_CONFIG_DEBUG OFF)
|
|
|
|
endif()
|
2020-06-18 04:43:44 +08:00
|
|
|
|
2021-09-02 05:27:04 +08:00
|
|
|
configure_file("${CMAKE_CURRENT_LIST_DIR}/unofficial-libvpx-config.cmake.in" "${CURRENT_PACKAGES_DIR}/share/unofficial-libvpx/unofficial-libvpx-config.cmake" @ONLY)
|
2020-06-11 17:38:22 +08:00
|
|
|
|
2023-11-16 11:13:58 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|