wfreerdp: split client into library and executable
This commit is contained in:
parent
ac4cb24a68
commit
acf9429b52
@ -15,8 +15,8 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
set(MODULE_NAME "wfreerdp")
|
||||
set(MODULE_PREFIX "FREERDP_CLIENT_WINDOWS")
|
||||
set(MODULE_NAME "wfreerdp-client")
|
||||
set(MODULE_PREFIX "FREERDP_CLIENT_WINDOWS_CONTROL")
|
||||
|
||||
set(${MODULE_PREFIX}_SRCS
|
||||
wf_gdi.c
|
||||
@ -32,11 +32,16 @@ set(${MODULE_PREFIX}_SRCS
|
||||
wf_rail.c
|
||||
wf_rail.h
|
||||
wf_interface.c
|
||||
wf_interface.h
|
||||
wfreerdp.c
|
||||
wfreerdp.h)
|
||||
wf_interface.h)
|
||||
|
||||
if(WITH_CLIENT_INTERFACE)
|
||||
add_library(${MODULE_NAME} ${${MODULE_PREFIX}_SRCS})
|
||||
set_target_properties(${MODULE_NAME} PROPERTIES VERSION ${FREERDP_VERSION} SOVERSION ${FREERDP_API_VERSION} PREFIX "lib")
|
||||
else()
|
||||
set(${MODULE_PREFIX}_SRCS ${${MODULE_PREFIX}_SRCS} cli/wfreerdp.c cli/wfreerdp.h)
|
||||
add_executable(${MODULE_NAME} WIN32 ${${MODULE_PREFIX}_SRCS})
|
||||
endif()
|
||||
|
||||
add_executable(${MODULE_NAME} WIN32 ${${MODULE_PREFIX}_SRCS})
|
||||
|
||||
set(${MODULE_PREFIX}_LIBS ${${MODULE_PREFIX}_LIBS} freerdp-client)
|
||||
|
||||
@ -52,6 +57,11 @@ set_complex_link_libraries(VARIABLE ${MODULE_PREFIX}_LIBS
|
||||
|
||||
target_link_libraries(${MODULE_NAME} ${${MODULE_PREFIX}_LIBS})
|
||||
|
||||
install(TARGETS ${MODULE_NAME} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT client)
|
||||
if(WITH_CLIENT_INTERFACE)
|
||||
install(TARGETS ${MODULE_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT libraries)
|
||||
add_subdirectory(cli)
|
||||
else()
|
||||
install(TARGETS ${MODULE_NAME} DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT client)
|
||||
endif()
|
||||
|
||||
set_property(TARGET ${MODULE_NAME} PROPERTY FOLDER "Client/Windows")
|
||||
|
35
client/Windows/cli/CMakeLists.txt
Normal file
35
client/Windows/cli/CMakeLists.txt
Normal file
@ -0,0 +1,35 @@
|
||||
# FreeRDP: A Remote Desktop Protocol Implementation
|
||||
# FreeRDP Windows cmake build script
|
||||
#
|
||||
# Copyright 2012 Marc-Andre Moreau <marcandre.moreau@gmail.com>
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
set(MODULE_NAME "wfreerdp")
|
||||
set(MODULE_PREFIX "FREERDP_CLIENT_WINDOWS")
|
||||
|
||||
include_directories(..)
|
||||
|
||||
set(${MODULE_PREFIX}_SRCS
|
||||
wfreerdp.c
|
||||
wfreerdp.h)
|
||||
|
||||
add_executable(${MODULE_NAME} WIN32 ${${MODULE_PREFIX}_SRCS})
|
||||
|
||||
set(${MODULE_PREFIX}_LIBS ${${MODULE_PREFIX}_LIBS} wfreerdp-client)
|
||||
|
||||
target_link_libraries(${MODULE_NAME} ${${MODULE_PREFIX}_LIBS})
|
||||
|
||||
install(TARGETS ${MODULE_NAME} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT client)
|
||||
|
||||
set_property(TARGET ${MODULE_NAME} PROPERTY FOLDER "Client/Windows")
|
@ -19,7 +19,7 @@
|
||||
#ifndef __WF_CLIPRDR_H
|
||||
#define __WF_CLIPRDR_H
|
||||
|
||||
#include "wfreerdp.h"
|
||||
#include "wf_interface.h"
|
||||
|
||||
void wf_cliprdr_init(wfInfo* wfi, rdpChannels* chanman);
|
||||
void wf_cliprdr_uninit(wfInfo* wfi);
|
||||
|
@ -27,7 +27,7 @@
|
||||
|
||||
#include <freerdp/freerdp.h>
|
||||
|
||||
#include "wfreerdp.h"
|
||||
#include "wf_interface.h"
|
||||
|
||||
#include "wf_gdi.h"
|
||||
#include "wf_event.h"
|
||||
|
@ -22,7 +22,7 @@
|
||||
#ifndef __WF_EVENT_H
|
||||
#define __WF_EVENT_H
|
||||
|
||||
#include "wfreerdp.h"
|
||||
#include "wf_interface.h"
|
||||
|
||||
LRESULT CALLBACK wf_ll_kbd_proc(int nCode, WPARAM wParam, LPARAM lParam);
|
||||
LRESULT CALLBACK wf_event_proc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam);
|
||||
|
@ -35,7 +35,7 @@
|
||||
#include <freerdp/codec/rfx.h>
|
||||
#include <freerdp/codec/nsc.h>
|
||||
|
||||
#include "wfreerdp.h"
|
||||
#include "wf_interface.h"
|
||||
#include "wf_graphics.h"
|
||||
|
||||
const BYTE wf_rop2_table[] =
|
||||
|
@ -22,7 +22,7 @@
|
||||
#ifndef __WF_GDI_H
|
||||
#define __WF_GDI_H
|
||||
|
||||
#include "wfreerdp.h"
|
||||
#include "wf_interface.h"
|
||||
|
||||
void wf_invalidate_region(wfInfo* wfi, int x, int y, int width, int height);
|
||||
wfBitmap* wf_image_new(wfInfo* wfi, int width, int height, int bpp, BYTE* data);
|
||||
|
@ -20,7 +20,7 @@
|
||||
#ifndef __WF_GRAPHICS_H
|
||||
#define __WF_GRAPHICS_H
|
||||
|
||||
#include "wfreerdp.h"
|
||||
#include "wf_interface.h"
|
||||
|
||||
HBITMAP wf_create_dib(wfInfo* wfi, int width, int height, int bpp, BYTE* data, BYTE** pdata);
|
||||
wfBitmap* wf_image_new(wfInfo* wfi, int width, int height, int bpp, BYTE* data);
|
||||
|
@ -53,7 +53,7 @@
|
||||
#include "wf_graphics.h"
|
||||
#include "wf_cliprdr.h"
|
||||
|
||||
#include "wfreerdp.h"
|
||||
#include "wf_interface.h"
|
||||
|
||||
void wf_context_new(freerdp* instance, rdpContext* context)
|
||||
{
|
||||
|
@ -19,7 +19,7 @@
|
||||
#ifndef __WF_RAIL_H
|
||||
#define __WF_RAIL_H
|
||||
|
||||
#include "wfreerdp.h"
|
||||
#include "wf_interface.h"
|
||||
|
||||
void wf_rail_paint(wfInfo* wfi, rdpRail* rail, INT32 uleft, INT32 utop, UINT32 uright, UINT32 ubottom);
|
||||
void wf_rail_register_callbacks(wfInfo* wfi, rdpRail* rail);
|
||||
|
@ -22,6 +22,6 @@
|
||||
|
||||
#include <freerdp/freerdp.h>
|
||||
|
||||
#include "wfreerdp.h"
|
||||
#include "wf_interface.h"
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user