diff --git a/client/X11/xf_interface.c b/client/X11/xf_interface.c index fb1dd9699..13ac4d9ac 100644 --- a/client/X11/xf_interface.c +++ b/client/X11/xf_interface.c @@ -92,6 +92,7 @@ static const size_t password_size = 512; void xf_draw_screen_scaled(xfInfo* xfi) { +#ifdef WITH_XRENDER XTransform transform; Picture windowPicture; Picture primaryPicture; @@ -117,6 +118,7 @@ void xf_draw_screen_scaled(xfInfo* xfi) XRenderSetPictureTransform(xfi->display, primaryPicture, &transform); XRenderComposite(xfi->display, PictOpSrc, primaryPicture, 0, windowPicture, 0, 0, 0, 0, 0, 0, xfi->currentWidth, xfi->currentHeight); +#endif } void xf_context_new(freerdp* instance, rdpContext* context) diff --git a/cmake/FindXrender.cmake b/cmake/FindXrender.cmake index 3fe4a0172..5264604df 100644 --- a/cmake/FindXrender.cmake +++ b/cmake/FindXrender.cmake @@ -36,9 +36,9 @@ include(FindPackageHandleStandardArgs) FIND_PACKAGE_HANDLE_STANDARD_ARGS(Xrender DEFAULT_MSG Xrender_LIBRARY Xrender_INCLUDE_DIR) if(Xrender_FOUND) -set(XRENDER_LIBRARIES ${Xrender_LIBRARY}) -set(XRENDER_INCLUDE_DIRS ${Xrender_INCLUDE_DIR}) + set(XRENDER_LIBRARIES ${Xrender_LIBRARY}) + set(XRENDER_INCLUDE_DIRS ${Xrender_INCLUDE_DIR}) endif() -mark_as_advanced(Xrender_INCLUDE_DIR Xrender_LIBRARY) +mark_as_advanced(XRENDER_INCLUDE_DIRS XRENDER_LIBRARIES) diff --git a/libfreerdp/CMakeLists.txt b/libfreerdp/CMakeLists.txt index 42c06dd60..6dccb0771 100644 --- a/libfreerdp/CMakeLists.txt +++ b/libfreerdp/CMakeLists.txt @@ -52,7 +52,7 @@ if(MONOLITHIC_BUILD) set(${MODULE_PREFIX}_OBJECTS ${${MODULE_PREFIX}_OBJECTS} "$") endforeach() - add_library(${MODULE_NAME} ${${MODULE_PREFIX}_OBJECTS}) + add_library(${MODULE_NAME} dummy.c ${${MODULE_PREFIX}_OBJECTS}) set_target_properties(${MODULE_NAME} PROPERTIES LINKER_LANGUAGE C) set_target_properties(${MODULE_NAME} PROPERTIES VERSION ${FREERDP_VERSION} SOVERSION ${FREERDP_API_VERSION} PREFIX "lib") diff --git a/libfreerdp/dummy.c b/libfreerdp/dummy.c new file mode 100644 index 000000000..b959f9be3 --- /dev/null +++ b/libfreerdp/dummy.c @@ -0,0 +1,5 @@ + +int dummy() +{ + return 0; +} diff --git a/winpr/libwinpr/CMakeLists.txt b/winpr/libwinpr/CMakeLists.txt index 0a56165ad..fdb2bdac5 100644 --- a/winpr/libwinpr/CMakeLists.txt +++ b/winpr/libwinpr/CMakeLists.txt @@ -48,7 +48,7 @@ if(MONOLITHIC_BUILD) set(${MODULE_PREFIX}_OBJECTS ${${MODULE_PREFIX}_OBJECTS} "$") endforeach() - add_library(${MODULE_NAME} ${${MODULE_PREFIX}_OBJECTS}) + add_library(${MODULE_NAME} dummy.c ${${MODULE_PREFIX}_OBJECTS}) set_target_properties(${MODULE_NAME} PROPERTIES LINKER_LANGUAGE C) set_target_properties(${MODULE_NAME} PROPERTIES VERSION ${WINPR_VERSION_FULL} SOVERSION ${WINPR_VERSION} PREFIX "lib") diff --git a/winpr/libwinpr/dummy.c b/winpr/libwinpr/dummy.c new file mode 100644 index 000000000..b959f9be3 --- /dev/null +++ b/winpr/libwinpr/dummy.c @@ -0,0 +1,5 @@ + +int dummy() +{ + return 0; +}