Added WITH_LIBRARY_VERSIONING, allowing to build shared libraries without
authorArmin Novak <armin.novak@thincast.com>
Tue, 29 Apr 2014 07:42:18 +0000 (09:42 +0200)
committerArmin Novak <armin.novak@thincast.com>
Fri, 11 Jul 2014 09:53:58 +0000 (11:53 +0200)
SOVERSION information. (required by Android)

29 files changed:
CMakeLists.txt
channels/server/CMakeLists.txt
channels/tsmf/client/CMakeLists.txt
client/Windows/CMakeLists.txt
client/X11/CMakeLists.txt
client/common/CMakeLists.txt
libfreerdp/CMakeLists.txt
libfreerdp/cache/CMakeLists.txt
libfreerdp/codec/CMakeLists.txt
libfreerdp/common/CMakeLists.txt
libfreerdp/core/CMakeLists.txt
libfreerdp/crypto/CMakeLists.txt
libfreerdp/gdi/CMakeLists.txt
libfreerdp/locale/CMakeLists.txt
libfreerdp/primitives/CMakeLists.txt
libfreerdp/rail/CMakeLists.txt
libfreerdp/utils/CMakeLists.txt
server/Windows/CMakeLists.txt
server/X11/CMakeLists.txt
server/common/CMakeLists.txt
winpr/libwinpr/CMakeLists.txt
winpr/libwinpr/credentials/CMakeLists.txt
winpr/libwinpr/crypto/CMakeLists.txt
winpr/libwinpr/handle/CMakeLists.txt
winpr/libwinpr/pool/CMakeLists.txt
winpr/libwinpr/smartcard/CMakeLists.txt
winpr/libwinpr/sspi/CMakeLists.txt
winpr/libwinpr/sysinfo/CMakeLists.txt
winpr/libwinpr/utils/CMakeLists.txt

index 9f58e27..a8ffdf7 100755 (executable)
@@ -59,6 +59,7 @@ include(GNUInstallDirsWrapper)
 include(CMakePackageConfigHelpers)
 
 # Soname versioning
+set(WITH_LIBRARY_VERSIONING "1")
 set(FREERDP_VERSION_MAJOR "1")
 set(FREERDP_VERSION_MINOR "2")
 set(FREERDP_VERSION_REVISION "0")
@@ -301,6 +302,8 @@ endif(APPLE)
 
 # Android
 if(ANDROID)
+  set(WITH_LIBRARY_VERSIONING "")
+
        if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
                add_definitions(-DNDK_DEBUG=1)
 
index 67a2c4c..63e0f3d 100644 (file)
@@ -30,7 +30,10 @@ endforeach()
 
 add_library(${MODULE_NAME} STATIC ${${MODULE_PREFIX}_SRCS})
 
-set_target_properties(${MODULE_NAME} PROPERTIES VERSION ${FREERDP_VERSION} SOVERSION ${FREERDP_API_VERSION} PREFIX "lib")
+if (WITH_LIBRARY_VERSIONING)
+  set_target_properties(${MODULE_NAME} PROPERTIES VERSION ${FREERDP_VERSION} SOVERSION ${FREERDP_API_VERSION})
+endif()
+set_target_properties(${MODULE_NAME} PROPERTIES PREFIX "lib")
 
 set_complex_link_libraries(VARIABLE ${MODULE_PREFIX}_LIBS
        MONOLITHIC ${MONOLITHIC_BUILD}
index a92ceda..87e6dea 100644 (file)
@@ -62,7 +62,7 @@ if(WITH_GSTREAMER_0_10 OR WITH_GSTREAMER_1_0)
        find_feature(XRandR ${XRANDR_FEATURE_TYPE} ${XRANDR_FEATURE_PURPOSE} ${XRANDR_FEATURE_DESCRIPTION})
        if (WITH_XRANDR)
                add_channel_client_subsystem(${MODULE_PREFIX} ${CHANNEL_NAME} "gstreamer" "decoder")
-       else()
+  else()
                message(WARNING "Disabling tsmf gstreamer because XRandR wasn't found")
        endif()
 endif()
index e1bc747..f9bd93a 100644 (file)
@@ -50,7 +50,10 @@ if(WITH_CLIENT_INTERFACE)
        else()
                add_library(${MODULE_NAME} ${${MODULE_PREFIX}_SRCS})
        endif()
-       set_target_properties(${MODULE_NAME} PROPERTIES VERSION ${FREERDP_VERSION} SOVERSION ${FREERDP_API_VERSION} PREFIX "lib")
+       if (WITH_LIBRARY_VERSIONING)
+       set_target_properties(${MODULE_NAME} PROPERTIES VERSION ${FREERDP_VERSION} SOVERSION ${FREERDP_API_VERSION})
+  endif()
+  set_target_properties(${MODULE_NAME} PROPERTIES PREFIX "lib")
 else()
        set(${MODULE_PREFIX}_SRCS ${${MODULE_PREFIX}_SRCS} cli/wfreerdp.c cli/wfreerdp.h)
        add_executable(${MODULE_NAME} WIN32 ${${MODULE_PREFIX}_SRCS})
index d33e90c..35e3e93 100644 (file)
@@ -59,7 +59,10 @@ if(WITH_CLIENT_INTERFACE)
        else()
                add_library(${MODULE_NAME} ${${MODULE_PREFIX}_SRCS})
        endif()
-       set_target_properties(${MODULE_NAME} PROPERTIES VERSION ${FREERDP_VERSION} SOVERSION ${FREERDP_API_VERSION} PREFIX "lib")
+  if (WITH_LIBRARY_VERSIONING)
+         set_target_properties(${MODULE_NAME} PROPERTIES VERSION ${FREERDP_VERSION} SOVERSION ${FREERDP_API_VERSION})
+  endif()
+  set_target_properties(${MODULE_NAME} PROPERTIES PREFIX "lib")
 else()
        set(${MODULE_PREFIX}_SRCS ${${MODULE_PREFIX}_SRCS} cli/xfreerdp.c cli/xfreerdp.h)
        add_executable(${MODULE_NAME} ${${MODULE_PREFIX}_SRCS})
index 47bb460..0a96bf5 100644 (file)
@@ -47,7 +47,10 @@ add_library(${MODULE_NAME} ${${MODULE_PREFIX}_SRCS})
 include_directories(${OPENSSL_INCLUDE_DIR})
 include_directories(${ZLIB_INCLUDE_DIRS})
 
-set_target_properties(${MODULE_NAME} PROPERTIES VERSION ${FREERDP_VERSION} SOVERSION ${FREERDP_API_VERSION} PREFIX "lib")
+if (WITH_LIBRARY_VERSIONING)
+  set_target_properties(${MODULE_NAME} PROPERTIES VERSION ${FREERDP_VERSION} SOVERSION ${FREERDP_API_VERSION})
+endif()
+set_target_properties(${MODULE_NAME} PROPERTIES PREFIX "lib")
 
 set(${MODULE_PREFIX}_LIBS ${${MODULE_PREFIX}_LIBS}
        ${FREERDP_CHANNELS_CLIENT_LIBS})
index fa3dbf1..c11458f 100644 (file)
@@ -56,7 +56,10 @@ if(MONOLITHIC_BUILD)
                ${${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")
+  if (WITH_LIBRARY_VERSIONING)
+       set_target_properties(${MODULE_NAME} PROPERTIES VERSION ${FREERDP_VERSION} SOVERSION ${FREERDP_API_VERSION})
+  endif()
+  set_target_properties(${MODULE_NAME} PROPERTIES PREFIX "lib")
 
        list(APPEND FREERDP_LIBS ${PROFILER_LIBRARIES})
        list(REMOVE_DUPLICATES FREERDP_LIBS)
index 82491a2..5a52a04 100644 (file)
@@ -33,7 +33,10 @@ add_complex_library(MODULE ${MODULE_NAME} TYPE "OBJECT"
        SOURCES ${${MODULE_PREFIX}_SRCS}
        EXPORT)
 
-set_target_properties(${MODULE_NAME} PROPERTIES VERSION ${FREERDP_VERSION} SOVERSION ${FREERDP_API_VERSION} PREFIX "lib")
+if (WITH_LIBRARY_VERSIONING)
+  set_target_properties(${MODULE_NAME} PROPERTIES VERSION ${FREERDP_VERSION} SOVERSION ${FREERDP_API_VERSION})
+endif()
+set_target_properties(${MODULE_NAME} PROPERTIES PREFIX "lib")
 
 set_complex_link_libraries(VARIABLE ${MODULE_PREFIX}_LIBS
        MONOLITHIC ${MONOLITHIC_BUILD} INTERNAL
index ee2c7c4..c29d394 100644 (file)
@@ -98,7 +98,10 @@ add_complex_library(MODULE ${MODULE_NAME} TYPE "OBJECT"
        SOURCES ${${MODULE_PREFIX}_SRCS}
        EXPORT)
 
-set_target_properties(${MODULE_NAME} PROPERTIES VERSION ${FREERDP_VERSION} SOVERSION ${FREERDP_API_VERSION} PREFIX "lib")
+if (WITH_LIBRARY_VERSIONING)
+  set_target_properties(${MODULE_NAME} PROPERTIES VERSION ${FREERDP_VERSION} SOVERSION ${FREERDP_API_VERSION})
+endif()
+set_target_properties(${MODULE_NAME} PROPERTIES PREFIX "lib")
 
 set(${MODULE_PREFIX}_LIBS
        ${FREERDP_JPEG_LIBS}
index 2b0c404..2bdca84 100644 (file)
@@ -30,8 +30,11 @@ add_complex_library(MODULE ${MODULE_NAME} TYPE "OBJECT"
 
 include_directories(${OPENSSL_INCLUDE_DIR})
 include_directories(${ZLIB_INCLUDE_DIRS})
-       
-set_target_properties(${MODULE_NAME} PROPERTIES VERSION ${FREERDP_VERSION_FULL} SOVERSION ${FREERDP_VERSION} PREFIX "lib")
+
+if (WITH_LIBRARY_VERSIONING)
+  set_target_properties(${MODULE_NAME} PROPERTIES VERSION ${FREERDP_VERSION_FULL} SOVERSION ${FREERDP_VERSION})
+endif()
+set_target_properties(${MODULE_NAME} PROPERTIES PREFIX "lib")
 
 set(${MODULE_PREFIX}_LIBS ${${MODULE_PREFIX}_LIBS}
        ${OPENSSL_LIBRARIES} ${ZLIB_LIBRARIES})
@@ -40,7 +43,7 @@ set(${MODULE_PREFIX}_LIBS ${${MODULE_PREFIX}_LIBS} winpr)
 
 if(MONOLITHIC_BUILD)
        set(FREERDP_LIBS ${FREERDP_LIBS} ${${MODULE_PREFIX}_LIBS} PARENT_SCOPE)
-else()         
+else()
        target_link_libraries(${MODULE_NAME} ${${MODULE_PREFIX}_LIBS})
        install(TARGETS ${MODULE_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR} EXPORT FreeRDPTargets)
 endif()
index de23cee..6504599 100644 (file)
@@ -130,7 +130,10 @@ add_complex_library(MODULE ${MODULE_NAME} TYPE "OBJECT"
        SOURCES ${${MODULE_PREFIX}_SRCS}
        EXPORT)
 
-set_target_properties(${MODULE_NAME} PROPERTIES VERSION ${FREERDP_VERSION} SOVERSION ${FREERDP_API_VERSION} PREFIX "lib")
+if (WITH_LIBRARY_VERSIONING)
+  set_target_properties(${MODULE_NAME} PROPERTIES VERSION ${FREERDP_VERSION} SOVERSION ${FREERDP_API_VERSION})
+endif()
+set_target_properties(${MODULE_NAME} PROPERTIES PREFIX "lib")
 
 if(WIN32)
        set(${MODULE_PREFIX}_LIBS ${${MODULE_PREFIX}_LIBS} ws2_32)
index a22cc58..b307cb3 100644 (file)
@@ -36,7 +36,10 @@ add_complex_library(MODULE ${MODULE_NAME} TYPE "OBJECT"
 include_directories(${OPENSSL_INCLUDE_DIR})
 include_directories(${ZLIB_INCLUDE_DIRS})
 
-set_target_properties(${MODULE_NAME} PROPERTIES VERSION ${FREERDP_VERSION} SOVERSION ${FREERDP_API_VERSION} PREFIX "lib")
+if (WITH_LIBRARY_VERSIONING)
+  set_target_properties(${MODULE_NAME} PROPERTIES VERSION ${FREERDP_VERSION} SOVERSION ${FREERDP_API_VERSION})
+endif()
+set_target_properties(${MODULE_NAME} PROPERTIES PREFIX "lib")
 
 set(${MODULE_PREFIX}_LIBS
        ${OPENSSL_LIBRARIES})
index 6b182fe..c831bbd 100644 (file)
@@ -44,7 +44,10 @@ add_complex_library(MODULE ${MODULE_NAME} TYPE "OBJECT"
        SOURCES ${${MODULE_PREFIX}_SRCS}
        EXPORT)
 
-set_target_properties(${MODULE_NAME} PROPERTIES VERSION ${FREERDP_VERSION} SOVERSION ${FREERDP_API_VERSION} PREFIX "lib")
+if (WITH_LIBRARY_VERSIONING)
+  set_target_properties(${MODULE_NAME} PROPERTIES VERSION ${FREERDP_VERSION} SOVERSION ${FREERDP_API_VERSION})
+endif()
+set_target_properties(${MODULE_NAME} PROPERTIES PREFIX "lib")
 
 set_complex_link_libraries(VARIABLE ${MODULE_PREFIX}_LIBS
        MONOLITHIC ${MONOLITHIC_BUILD} INTERNAL
index 8cbb33d..67f2145 100644 (file)
@@ -75,7 +75,10 @@ add_complex_library(MODULE ${MODULE_NAME} TYPE "OBJECT"
        SOURCES ${${MODULE_PREFIX}_SRCS}
        EXPORT)
 
-set_target_properties(${MODULE_NAME} PROPERTIES VERSION ${FREERDP_VERSION} SOVERSION ${FREERDP_API_VERSION} PREFIX "lib")
+if (WITH_LIBRARY_VERSIONING)
+  set_target_properties(${MODULE_NAME} PROPERTIES VERSION ${FREERDP_VERSION} SOVERSION ${FREERDP_API_VERSION})
+endif()
+set_target_properties(${MODULE_NAME} PROPERTIES PREFIX "lib")
 
 set_complex_link_libraries(VARIABLE ${MODULE_PREFIX}_LIBS
        MONOLITHIC ${MONOLITHIC_BUILD} INTERNAL
index 95868ca..f544b35 100644 (file)
@@ -76,7 +76,10 @@ add_complex_library(MODULE ${MODULE_NAME} TYPE "OBJECT"
        SOURCES ${${MODULE_PREFIX}_SRCS}
        EXPORT)
 
-set_target_properties(${MODULE_NAME} PROPERTIES VERSION ${FREERDP_VERSION} SOVERSION ${FREERDP_API_VERSION} PREFIX "lib")
+if (WITH_LIBRARY_VERSIONING)
+  set_target_properties(${MODULE_NAME} PROPERTIES VERSION ${FREERDP_VERSION} SOVERSION ${FREERDP_API_VERSION})
+endif()
+set_target_properties(${MODULE_NAME} PROPERTIES PREFIX "lib")
 
 if(IPP_FOUND)
        include_directories(${IPP_INCLUDE_DIRS})
index fe0f574..504f7b3 100644 (file)
@@ -30,7 +30,10 @@ add_complex_library(MODULE ${MODULE_NAME} TYPE "OBJECT"
        SOURCES ${${MODULE_PREFIX}_SRCS}
        EXPORT)
 
-set_target_properties(${MODULE_NAME} PROPERTIES VERSION ${FREERDP_VERSION} SOVERSION ${FREERDP_API_VERSION} PREFIX "lib")
+if (WITH_LIBRARY_VERSIONING)
+  set_target_properties(${MODULE_NAME} PROPERTIES VERSION ${FREERDP_VERSION} SOVERSION ${FREERDP_API_VERSION})
+endif()
+set_target_properties(${MODULE_NAME} PROPERTIES PREFIX "lib")
 
 set_complex_link_libraries(VARIABLE ${MODULE_PREFIX}_LIBS
        MONOLITHIC ${MONOLITHIC_BUILD} INTERNAL
index 0728452..1db46f1 100644 (file)
@@ -42,7 +42,10 @@ add_complex_library(MODULE ${MODULE_NAME} TYPE "OBJECT"
        SOURCES ${${MODULE_PREFIX}_SRCS}
        EXPORT)
 
-set_target_properties(${MODULE_NAME} PROPERTIES VERSION ${FREERDP_VERSION} SOVERSION ${FREERDP_API_VERSION} PREFIX "lib")
+if (WITH_LIBRARY_VERSIONING)
+  set_target_properties(${MODULE_NAME} PROPERTIES VERSION ${FREERDP_VERSION} SOVERSION ${FREERDP_API_VERSION})
+endif()
+set_target_properties(${MODULE_NAME} PROPERTIES PREFIX "lib")
 
 set(${MODULE_PREFIX}_LIBS
        ${CMAKE_THREAD_LIBS_INIT}
index b817e81..ae9ed7c 100644 (file)
@@ -60,7 +60,10 @@ endif()
 \r
 if(WITH_SERVER_INTERFACE)\r
        add_library(${MODULE_NAME} ${${MODULE_PREFIX}_SRCS})\r
-       set_target_properties(${MODULE_NAME} PROPERTIES VERSION ${FREERDP_VERSION} SOVERSION ${FREERDP_API_VERSION} PREFIX "lib")\r
+  if (WITH_LIBRARY_VERSIONING)
+       set_target_properties(${MODULE_NAME} PROPERTIES VERSION ${FREERDP_VERSION} SOVERSION ${FREERDP_API_VERSION})
+  endif()
+  set_target_properties(${MODULE_NAME} PROPERTIES PREFIX "lib")\r
 else()\r
        set(${MODULE_PREFIX}_SRCS ${${MODULE_PREFIX}_SRCS} cli/wfreerdp.c cli/wfreerdp.h)\r
        add_executable(${MODULE_NAME} ${${MODULE_PREFIX}_SRCS})\r
index 5aeb9ec..d60ac31 100644 (file)
@@ -44,7 +44,10 @@ if(WITH_SERVER_INTERFACE)
        else()
                add_library(${MODULE_NAME} ${${MODULE_PREFIX}_SRCS})
        endif()
-       set_target_properties(${MODULE_NAME} PROPERTIES VERSION ${FREERDP_VERSION} SOVERSION ${FREERDP_API_VERSION} PREFIX "lib")
+  if (WITH_LIBRARY_VERSIONING)
+       set_target_properties(${MODULE_NAME} PROPERTIES VERSION ${FREERDP_VERSION} SOVERSION ${FREERDP_API_VERSION})
+  endif()
+  set_target_properties(${MODULE_NAME} PROPERTIES PREFIX "lib")
 else()
        set(${MODULE_PREFIX}_SRCS ${${MODULE_PREFIX}_SRCS} cli/xfreerdp.c)
        add_executable(${MODULE_NAME} ${${MODULE_PREFIX}_SRCS})
index 2286943..90ac794 100644 (file)
@@ -32,7 +32,10 @@ endif()
 
 add_library(${MODULE_NAME} ${${MODULE_PREFIX}_SRCS})
 
-set_target_properties(${MODULE_NAME} PROPERTIES VERSION ${FREERDP_VERSION} SOVERSION ${FREERDP_API_VERSION} PREFIX "lib")
+if (WITH_LIBRARY_VERSIONING)
+  set_target_properties(${MODULE_NAME} PROPERTIES VERSION ${FREERDP_VERSION} SOVERSION ${FREERDP_API_VERSION})
+endif()
+set_target_properties(${MODULE_NAME} PROPERTIES PREFIX "lib")
 
 set(${MODULE_PREFIX}_LIBS ${${MODULE_PREFIX}_LIBS}
        ${FREERDP_CHANNELS_SERVER_LIBS})
index ef41607..0b3c5d7 100644 (file)
@@ -96,7 +96,10 @@ list(REMOVE_DUPLICATES WINPR_INCLUDES)
 include_directories(${WINPR_INCLUDES})
 add_library(${MODULE_NAME} ${WINPR_SRCS})
 set_target_properties(${MODULE_NAME} PROPERTIES LINKER_LANGUAGE C)
-set_target_properties(${MODULE_NAME} PROPERTIES VERSION ${WINPR_VERSION_FULL} SOVERSION ${WINPR_VERSION} PREFIX "lib")
+if (WITH_LIBRARY_VERSIONING)
+       set_target_properties(${MODULE_NAME} PROPERTIES VERSION ${WINPR_VERSION_FULL} SOVERSION ${WINPR_VERSION})
+endif()
+set_target_properties(${MODULE_NAME} PROPERTIES PREFIX "lib")
 add_definitions(${WINPR_DEFINITIONS})
 target_link_libraries(${MODULE_NAME} ${WINPR_LIBS})
 install(TARGETS ${MODULE_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT libraries EXPORT WinPRTargets)
index d8ad949..80140c4 100644 (file)
@@ -16,3 +16,4 @@
 # limitations under the License.
 
 winpr_module_add(credentials.c)
+
index a927909..f2ee241 100644 (file)
@@ -16,7 +16,7 @@
 # limitations under the License.
 
 winpr_module_add(
-  crypto.c
+       crypto.c
        crypto.h
        cert.c)
 
index c232217..d58ff5a 100644 (file)
@@ -14,8 +14,9 @@
 # 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.
-winpr_module_add(handle.c handle.h)
 
+winpr_module_add(handle.c handle.h)
+       
 if(${CMAKE_SYSTEM_NAME} MATCHES SunOS)
        winpr_library_add(rt)
 endif()
index d4eff40..fd70d73 100644 (file)
@@ -39,3 +39,4 @@ if(BUILD_TESTING)
        add_subdirectory(test)
 endif()
 
+
index 00bf374..3f59e73 100644 (file)
@@ -49,3 +49,4 @@ endif()
 if(BUILD_TESTING)
        add_subdirectory(test)
 endif()
+
index 40b8da0..e3e0907 100644 (file)
@@ -54,11 +54,9 @@ winpr_module_add(${${MODULE_PREFIX}_NTLM_SRCS}
        ${${MODULE_PREFIX}_SCHANNEL_SRCS}
        ${${MODULE_PREFIX}_SRCS})
 
-
 winpr_include_directory_add(${ZLIB_INCLUDE_DIRS}
        ${OPENSSL_INCLUDE_DIR})
 
-
 winpr_library_add(${ZLIB_LIBRARIES}
        ${OPENSSL_LIBRARIES})
 
index 8f4e79b..bc64f87 100644 (file)
@@ -24,3 +24,4 @@ endif()
 if(BUILD_TESTING)
        add_subdirectory(test)
 endif()
+
index 21cddb6..9756a61 100644 (file)
@@ -101,3 +101,4 @@ endif()
 if(BUILD_TESTING)
        add_subdirectory(test)
 endif()
+