mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-30 20:29:02 +08:00
552f1ee5f8
* first batch of xwindow PR ports - up to dbus * first batch of xwindow PR ports - up to dbus * format manifest * version stuff * remove if block * version stuff * fix xcb hash * fix xproto dependency on meson blocking cross builds * adjust message * use X11_xcb_LIB * version stuff * put xlib arm64-windows on baseline * fix dbus on osx and linux * version stuff * forget to set the value * fix --export-dynamic on osx * version dbus * ci-retrigger * add license (needs tool update) * version adjustments * version update * remove unnecessary comments * v db * Apply suggestions from code review Co-authored-by: Billy O'Neal <bion@microsoft.com> * nitpicks * rename xau to libxau * use vcpkg_install_copyright and silence usage * xtrans silence usage * format-manifest * v db * make license null for ports without exact match * xdmcp rename to libxdmcp * merge x11 wrapper into xlib rename xlib to libx11 to avoid a metaport * v db * missed dbus depending on x11. * v db * Update scripts/ci.baseline.txt Co-authored-by: LilyWangLL <94091114+LilyWangLL@users.noreply.github.com> Co-authored-by: Alexander Neumann <you@example.com> Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com> Co-authored-by: Billy O'Neal <bion@microsoft.com>
65 lines
2.5 KiB
CMake
65 lines
2.5 KiB
CMake
vcpkg_from_gitlab(
|
|
GITLAB_URL https://gitlab.freedesktop.org/
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO dbus/dbus
|
|
REF c91ca6edad658274607323a438eea7c7c6c5e392 #1.13.18
|
|
SHA512 4dd4d369152591040ebe9f474a0ba8911d8a91546d64b1d6f7335b7fd8026bd99a8a4fe1c78b80eb2e31e9e58324d432857e2a7af1d1cb950d22b4430cc0f7ac
|
|
HEAD_REF master
|
|
PATCHES
|
|
cmake.dep.patch
|
|
rt_pc_link.patch
|
|
pkgconfig.patch
|
|
getpeereid.patch # missing check from configure.ac
|
|
rdynamic.patch # OSX doesn't like '-Wl,--export-dynamic'
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
-DDBUS_BUILD_TESTS=OFF
|
|
-DDBUS_ENABLE_XML_DOCS=OFF
|
|
-DDBUS_INSTALL_SYSTEM_LIBS=OFF
|
|
-DDBUS_ENABLE_PKGCONFIG=ON
|
|
#-DDBUS_SERVICE=ON
|
|
-DDBUS_WITH_GLIB=ON
|
|
-DXSLTPROC_EXECUTABLE=FALSE
|
|
-DENABLE_SYSTEMD=ON
|
|
-DDBUS_ENABLE_PKGCONFIG=ON
|
|
-DPKG_CONFIG_FOUND=TRUE
|
|
"-DCMAKE_INSTALL_SYSCONFDIR=${CURRENT_PACKAGES_DIR}/etc/${PORT}"
|
|
"-DWITH_SYSTEMD_SYSTEMUNITDIR=lib/systemd/system"
|
|
"-DWITH_SYSTEMD_USERUNITDIR=lib/systemd/user"
|
|
)
|
|
vcpkg_cmake_install()
|
|
vcpkg_copy_pdbs()
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME "DBus1" CONFIG_PATH "lib/cmake/DBus1")
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
# Handle copyright
|
|
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/var/"
|
|
"${CURRENT_PACKAGES_DIR}/var"
|
|
"${CURRENT_PACKAGES_DIR}/share/dbus-1/services"
|
|
"${CURRENT_PACKAGES_DIR}/share/dbus-1/session.d"
|
|
"${CURRENT_PACKAGES_DIR}/share/dbus-1/system-services"
|
|
"${CURRENT_PACKAGES_DIR}/share/dbus-1/system.d")
|
|
|
|
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/tools/${PORT}")
|
|
set(TOOLS daemon launch monitor run-session send test-tool update-activation-environment)
|
|
if(VCPKG_TARGET_IS_WINDOWS)
|
|
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/bin/dbus-env.bat" "${CURRENT_PACKAGES_DIR}" "%~dp0/..")
|
|
else()
|
|
list(APPEND TOOLS cleanup-sockets uuidgen)
|
|
endif()
|
|
list(TRANSFORM TOOLS PREPEND "dbus-" )
|
|
vcpkg_copy_tools(TOOL_NAMES ${TOOLS} AUTO_CLEAN)
|
|
|
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
|
endif()
|