2021-10-06 07:23:37 +08:00
|
|
|
vcpkg_from_gitlab(
|
|
|
|
GITLAB_URL https://gitlab.freedesktop.org
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2022-11-29 04:09:25 +08:00
|
|
|
REPO gstreamer/gstreamer
|
2022-12-27 16:57:38 +08:00
|
|
|
REF 1.20.5
|
|
|
|
SHA512 2a996d8ac0f70c34dbbc02c875026df6e89346f0844fbaa25475075bcb6e57c81ceb7d71e729c3259eace851e3d7222cb3fe395e375d93eb45b1262a6ede1fdb
|
2021-10-06 07:23:37 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2022-11-29 04:09:25 +08:00
|
|
|
set(SOURCE_PATH "${SOURCE_PATH}/subprojects/gst-rtsp-server")
|
|
|
|
|
2021-10-06 07:23:37 +08:00
|
|
|
vcpkg_configure_meson(
|
2022-11-29 04:09:25 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2021-10-06 07:23:37 +08:00
|
|
|
OPTIONS
|
2022-11-29 04:09:25 +08:00
|
|
|
-Dexamples=disabled
|
|
|
|
-Dtests=disabled
|
|
|
|
-Dintrospection=disabled
|
2021-10-06 07:23:37 +08:00
|
|
|
-Dpackage-origin="vcpkg"
|
2022-11-29 04:09:25 +08:00
|
|
|
OPTIONS_RELEASE
|
|
|
|
-Dgobject-cast-checks=disabled
|
|
|
|
-Dglib-asserts=disabled
|
|
|
|
-Dglib-checks=disabled
|
2021-10-06 07:23:37 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_meson()
|
|
|
|
|
2023-04-15 05:50:53 +08:00
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
|
|
|
if(NOT VCPKG_BUILD_TYPE)
|
|
|
|
file(GLOB DBG_BINS "${CURRENT_PACKAGES_DIR}/debug/lib/gstreamer-1.0/${CMAKE_SHARED_LIBRARY_PREFIX}*${CMAKE_SHARED_LIBRARY_SUFFIX}"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/debug/lib/gstreamer-1.0/*.pdb"
|
|
|
|
)
|
|
|
|
file(COPY ${DBG_BINS} DESTINATION "${CURRENT_PACKAGES_DIR}/debug/plugins/gstreamer")
|
|
|
|
endif()
|
|
|
|
file(GLOB REL_BINS "${CURRENT_PACKAGES_DIR}/lib/gstreamer-1.0/${CMAKE_SHARED_LIBRARY_PREFIX}*${CMAKE_SHARED_LIBRARY_SUFFIX}"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/lib/gstreamer-1.0/*.pdb"
|
2021-10-06 07:23:37 +08:00
|
|
|
)
|
2023-04-15 05:50:53 +08:00
|
|
|
file(COPY ${REL_BINS} DESTINATION "${CURRENT_PACKAGES_DIR}/plugins/gstreamer")
|
2021-10-06 07:23:37 +08:00
|
|
|
file(REMOVE ${DBG_BINS} ${REL_BINS})
|
2023-04-15 05:50:53 +08:00
|
|
|
if(NOT VCPKG_TARGET_IS_WINDOWS)
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/lib/gstreamer-1.0" "${CURRENT_PACKAGES_DIR}/lib/gstreamer-1.0")
|
|
|
|
endif()
|
2021-10-06 07:23:37 +08:00
|
|
|
endif()
|
|
|
|
|
2022-10-04 05:07:49 +08:00
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
|
|
|
# Move plugin pkg-config files
|
|
|
|
file(GLOB pc_files "${CURRENT_PACKAGES_DIR}/lib/gstreamer-1.0/pkgconfig/*")
|
|
|
|
file(COPY ${pc_files} DESTINATION "${CURRENT_PACKAGES_DIR}/lib/pkgconfig")
|
|
|
|
file(GLOB pc_files_dbg "${CURRENT_PACKAGES_DIR}/debug/lib/gstreamer-1.0/pkgconfig/*")
|
|
|
|
file(COPY ${pc_files_dbg} DESTINATION "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/lib/gstreamer-1.0/pkgconfig/"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/lib/gstreamer-1.0/pkgconfig/")
|
|
|
|
endif()
|
2022-11-29 04:09:25 +08:00
|
|
|
|
2021-10-06 07:23:37 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
|
2022-11-29 04:09:25 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
|