aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorTobias Kortkamp <tobik@FreeBSD.org>2018-04-13 18:35:47 +0200
committerTobias Kortkamp <tobik@FreeBSD.org>2018-04-25 22:49:44 +0200
commit0df8e0268124a98f8870a9a36839fdc376f5ae71 (patch)
tree40d9639b47567247c139f657c333fbf3915291c3 /cmake
parent09dd66543433bbb3fae689232fd166fc0db2d1a1 (diff)
Fix build of Wayland platform on FreeBSD
cmake/scripts/freebsd/ExtraTargets.cmake is just a clone of Linux' ExtraTargets.cmake, so just include it instead. This way things cannot go out of sync in the future.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/scripts/freebsd/ExtraTargets.cmake30
1 files changed, 1 insertions, 29 deletions
diff --git a/cmake/scripts/freebsd/ExtraTargets.cmake b/cmake/scripts/freebsd/ExtraTargets.cmake
index 66383ab727..9d5d2146de 100644
--- a/cmake/scripts/freebsd/ExtraTargets.cmake
+++ b/cmake/scripts/freebsd/ExtraTargets.cmake
@@ -1,29 +1 @@
-# xrandr
-if(X_FOUND AND XRANDR_FOUND)
- find_package(X QUIET)
- find_package(XRandR QUIET)
- add_executable(${APP_NAME_LC}-xrandr ${CMAKE_SOURCE_DIR}/xbmc-xrandr.c)
- target_link_libraries(${APP_NAME_LC}-xrandr ${SYSTEM_LDFLAGS} ${X_LIBRARIES} m ${XRANDR_LIBRARIES})
-endif()
-
-# WiiRemote
-if(ENABLE_EVENTCLIENTS AND BLUETOOTH_FOUND)
- find_package(CWiid QUIET)
- if(CWIID_FOUND)
- add_subdirectory(${CMAKE_SOURCE_DIR}/tools/EventClients/Clients/WiiRemote build/WiiRemote)
- endif()
-endif()
-
-if(CORE_PLATFORM_NAME_LC STREQUAL "wayland")
- # This cannot go into wayland.cmake since it requires the Wayland dependencies
- # to already be resolved
- set(PROTOCOL_XMLS "${WAYLAND_PROTOCOLS_DIR}/unstable/xdg-shell/xdg-shell-unstable-v6.xml"
- "${WAYLAND_PROTOCOLS_DIR}/unstable/idle-inhibit/idle-inhibit-unstable-v1.xml")
- add_custom_command(OUTPUT "${WAYLAND_EXTRA_PROTOCOL_GENERATED_DIR}/wayland-extra-protocols.hpp" "${WAYLAND_EXTRA_PROTOCOL_GENERATED_DIR}/wayland-extra-protocols.cpp"
- COMMAND "${WAYLANDPP_SCANNER}" ${PROTOCOL_XMLS} "${WAYLAND_EXTRA_PROTOCOL_GENERATED_DIR}/wayland-extra-protocols.hpp" "${WAYLAND_EXTRA_PROTOCOL_GENERATED_DIR}/wayland-extra-protocols.cpp"
- DEPENDS "${WAYLANDPP_SCANNER}" ${PROTOCOL_XMLS}
- COMMENT "Generating wayland-protocols C++ wrappers")
-
- # Dummy target for dependencies
- add_custom_target(generate-wayland-extra-protocols DEPENDS wayland-extra-protocols.hpp)
-endif()
+include(cmake/scripts/linux/ExtraTargets.cmake)