[pkg-config] add private optional link libraries
This commit is contained in:
parent
9a00f1ed4d
commit
c591c2cd26
@ -92,6 +92,11 @@ if(WITH_CLIENT)
|
|||||||
endforeach()
|
endforeach()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if (WITH_FUSE)
|
||||||
|
list(APPEND FREERDP_CLIENT_PC_PRIVATE_LIBS "-lfuse3")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
list(JOIN FREERDP_CLIENT_PC_PRIVATE_LIBS " " FREERDP_CLIENT_PC_PRIVATE_LIBS)
|
||||||
include(pkg-config-install-prefix)
|
include(pkg-config-install-prefix)
|
||||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/freerdp-client.pc.in ${CMAKE_CURRENT_BINARY_DIR}/freerdp-client${FREERDP_VERSION_MAJOR}.pc @ONLY)
|
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/freerdp-client.pc.in ${CMAKE_CURRENT_BINARY_DIR}/freerdp-client${FREERDP_VERSION_MAJOR}.pc @ONLY)
|
||||||
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/freerdp-client${FREERDP_VERSION_MAJOR}.pc DESTINATION ${PKG_CONFIG_PC_INSTALL_DIR})
|
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/freerdp-client${FREERDP_VERSION_MAJOR}.pc DESTINATION ${PKG_CONFIG_PC_INSTALL_DIR})
|
||||||
|
@ -11,5 +11,5 @@ Version: @FREERDP_VERSION@
|
|||||||
Requires:
|
Requires:
|
||||||
Requires.private: @WINPR_PKG_CONFIG_FILENAME@ freerdp@FREERDP_VERSION_MAJOR@
|
Requires.private: @WINPR_PKG_CONFIG_FILENAME@ freerdp@FREERDP_VERSION_MAJOR@
|
||||||
Libs: -L${libdir} ${libs}
|
Libs: -L${libdir} ${libs}
|
||||||
Libs.private: -ldl -lpthread
|
Libs.private: -ldl -lpthread @FREERDP_CLIENT_PC_PRIVATE_LIBS@
|
||||||
Cflags: -I${includedir}
|
Cflags: -I${includedir}
|
||||||
|
@ -480,10 +480,13 @@ include(pkg-config-install-prefix)
|
|||||||
set(FREERDP_REQUIRES_PRIVATE "")
|
set(FREERDP_REQUIRES_PRIVATE "")
|
||||||
if(cJSON_FOUND)
|
if(cJSON_FOUND)
|
||||||
string(APPEND FREERDP_REQUIRES_PRIVATE " libcjson")
|
string(APPEND FREERDP_REQUIRES_PRIVATE " libcjson")
|
||||||
|
list(APPEND FREERDP_PC_PRIVATE_LIBS "-lcjson")
|
||||||
endif()
|
endif()
|
||||||
if(WITH_SMARTCARD_EMULATE)
|
if(WITH_SMARTCARD_EMULATE)
|
||||||
string(APPEND FREERDP_REQUIRES_PRIVATE " zlib")
|
string(APPEND FREERDP_REQUIRES_PRIVATE " zlib")
|
||||||
|
list(APPEND FREERDP_PC_PRIVATE_LIBS "-lz")
|
||||||
endif()
|
endif()
|
||||||
|
list(JOIN FREERDP_PC_PRIVATE_LIBS " " FREERDP_PC_PRIVATE_LIBS)
|
||||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/freerdp.pc.in ${CMAKE_CURRENT_BINARY_DIR}/freerdp${FREERDP_VERSION_MAJOR}.pc @ONLY)
|
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/freerdp.pc.in ${CMAKE_CURRENT_BINARY_DIR}/freerdp${FREERDP_VERSION_MAJOR}.pc @ONLY)
|
||||||
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/freerdp${FREERDP_VERSION_MAJOR}.pc DESTINATION ${PKG_CONFIG_PC_INSTALL_DIR})
|
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/freerdp${FREERDP_VERSION_MAJOR}.pc DESTINATION ${PKG_CONFIG_PC_INSTALL_DIR})
|
||||||
|
|
||||||
|
@ -16,5 +16,5 @@ Version: @FREERDP_VERSION@
|
|||||||
Requires:
|
Requires:
|
||||||
Requires.private: winpr@FREERDP_API_VERSION@ @FREERDP_REQUIRES_PRIVATE@
|
Requires.private: winpr@FREERDP_API_VERSION@ @FREERDP_REQUIRES_PRIVATE@
|
||||||
Libs: -L${libdir} ${libs}
|
Libs: -L${libdir} ${libs}
|
||||||
Libs.private: -ldl -lpthread
|
Libs.private: -ldl -lpthread @FREERDP_PC_PRIVATE_LIBS@
|
||||||
Cflags: -I${includedir}
|
Cflags: -I${includedir}
|
||||||
|
Loading…
Reference in New Issue
Block a user