summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Cord-Landwehr <cordlandwehr@kde.org>2024-01-17 20:21:32 +0100
committerKhem Raj <raj.khem@gmail.com>2024-01-19 09:51:06 -0800
commit9035d014148ea5683eb64c091e83a928ba9ff360 (patch)
tree9ef9fa32ff968038d1598c0988eee203dda7c3d3
parent982b0f17ce045177c5b1fcdadf3a2f90bf213760 (diff)
downloadmeta-openembedded-9035d014148ea5683eb64c091e83a928ba9ff360.tar.gz
freerdp: provide cmake integration
Do not delete the cmake config and target files to allow easy integration with cmake based libraries/applications. Signed-off-by: Andreas Cord-Landwehr <cordlandwehr@kde.org> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-support/freerdp/freerdp/0002-Do-not-install-tools-a-CMake-targets.patch45
-rw-r--r--meta-oe/recipes-support/freerdp/freerdp_2.11.2.bb2
2 files changed, 46 insertions, 1 deletions
diff --git a/meta-oe/recipes-support/freerdp/freerdp/0002-Do-not-install-tools-a-CMake-targets.patch b/meta-oe/recipes-support/freerdp/freerdp/0002-Do-not-install-tools-a-CMake-targets.patch
new file mode 100644
index 0000000000..2e5e6a4240
--- /dev/null
+++ b/meta-oe/recipes-support/freerdp/freerdp/0002-Do-not-install-tools-a-CMake-targets.patch
@@ -0,0 +1,45 @@
1From 0ddaeae351295e48365657482f165652051bbca2 Mon Sep 17 00:00:00 2001
2From: Andreas Cord-Landwehr <cordlandwehr@kde.org>
3Date: Wed, 17 Jan 2024 20:00:58 +0100
4Subject: [PATCH] Do not install tools a CMake targets
5
6The cli tools are installed manually and thus are missing in the sysroot
7folder. Do not export their targets because they do not exist and make
8CMake fail when searching for the library.
9
10Upstream-Status: Inappropriate
11Signed-off-by: Andreas Cord-Landwehr <cordlandwehr@kde.org>
12---
13 winpr/tools/hash-cli/CMakeLists.txt | 2 +-
14 winpr/tools/makecert-cli/CMakeLists.txt | 2 +-
15 2 files changed, 2 insertions(+), 2 deletions(-)
16
17diff --git a/winpr/tools/hash-cli/CMakeLists.txt b/winpr/tools/hash-cli/CMakeLists.txt
18index 9f8c7a8a0..b6d048fec 100644
19--- a/winpr/tools/hash-cli/CMakeLists.txt
20+++ b/winpr/tools/hash-cli/CMakeLists.txt
21@@ -43,7 +43,7 @@ set(${MODULE_PREFIX}_LIBS winpr)
22
23 target_link_libraries(${MODULE_NAME} ${${MODULE_PREFIX}_LIBS})
24
25-install(TARGETS ${MODULE_NAME} DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT tools EXPORT WinPRTargets)
26+install(TARGETS ${MODULE_NAME} DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT tools)
27
28 if (WITH_DEBUG_SYMBOLS AND MSVC)
29 install(FILES ${CMAKE_BINARY_DIR}/${MODULE_NAME}.pdb DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT symbols)
30diff --git a/winpr/tools/makecert-cli/CMakeLists.txt b/winpr/tools/makecert-cli/CMakeLists.txt
31index 48fda5b5e..c7cf4bfaf 100644
32--- a/winpr/tools/makecert-cli/CMakeLists.txt
33+++ b/winpr/tools/makecert-cli/CMakeLists.txt
34@@ -46,7 +46,7 @@ target_link_libraries(${MODULE_NAME} ${${MODULE_PREFIX}_LIBS} winpr)
35
36 set_property(TARGET ${MODULE_NAME} PROPERTY FOLDER "WinPR/Tools")
37
38-install(TARGETS ${MODULE_NAME} DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT tools EXPORT WinPRTargets)
39+install(TARGETS ${MODULE_NAME} DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT tools)
40 if (WITH_DEBUG_SYMBOLS AND MSVC)
41 install(FILES ${CMAKE_PDB_BINARY_DIR}/${MODULE_NAME}.pdb DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT symbols)
42 endif()
43--
442.40.1
45
diff --git a/meta-oe/recipes-support/freerdp/freerdp_2.11.2.bb b/meta-oe/recipes-support/freerdp/freerdp_2.11.2.bb
index c8d996d416..8de0e39ad7 100644
--- a/meta-oe/recipes-support/freerdp/freerdp_2.11.2.bb
+++ b/meta-oe/recipes-support/freerdp/freerdp_2.11.2.bb
@@ -17,6 +17,7 @@ SRCREV = "a38c1be9eee39a9bc22b511fffe96e63fdf8ebe7"
17SRC_URI = "git://github.com/FreeRDP/FreeRDP.git;branch=stable-2.0;protocol=https \ 17SRC_URI = "git://github.com/FreeRDP/FreeRDP.git;branch=stable-2.0;protocol=https \
18 file://winpr-makecert-Build-with-install-RPATH.patch \ 18 file://winpr-makecert-Build-with-install-RPATH.patch \
19 file://0001-Fix-const-qualifier-error.patch \ 19 file://0001-Fix-const-qualifier-error.patch \
20 file://0002-Do-not-install-tools-a-CMake-targets.patch \
20 " 21 "
21 22
22S = "${WORKDIR}/git" 23S = "${WORKDIR}/git"
@@ -63,7 +64,6 @@ do_configure:append() {
63do_install:append () { 64do_install:append () {
64 install -d ${D}${bindir} 65 install -d ${D}${bindir}
65 install -m755 winpr/tools/makecert-cli/winpr-makecert ${D}${bindir} 66 install -m755 winpr/tools/makecert-cli/winpr-makecert ${D}${bindir}
66 rm -rf ${D}${libdir}/cmake
67 rm -rf ${D}${libdir}/freerdp 67 rm -rf ${D}${libdir}/freerdp
68} 68}
69 69