Commit 3cc11702 authored by Irene Wu's avatar Irene Wu Committed by gbsbuild

Resolve github issue #51; Add SONAME in shared IGC & IGA libraries

Change-Id: Id0ce987ded711c85ba9b048b4b55627a7bd8e5c6
parent 970b8e3e
......@@ -30,8 +30,8 @@
#cmakedefine IGC_LIBRARY_NAME "${IGC_LIBRARY_NAME}32.dll"
#cmakedefine FCL_LIBRARY_NAME "${FCL_LIBRARY_NAME}32.dll"
#else
#cmakedefine IGC_LIBRARY_NAME "lib${IGC_LIBRARY_NAME}.so"
#cmakedefine FCL_LIBRARY_NAME "lib${FCL_LIBRARY_NAME}.so"
#cmakedefine IGC_LIBRARY_NAME "lib${IGC_LIBRARY_NAME}.so.${IGC_API_MAJOR_VERSION}"
#cmakedefine FCL_LIBRARY_NAME "lib${FCL_LIBRARY_NAME}.so.${IGC_API_MAJOR_VERSION}"
#endif
#endif /* IGC_OPENCL_H */
......@@ -53,6 +53,11 @@ endif()
# Increment IGC_API_MAJOR_VERSION if there is ABI Change.
set(IGC_API_MAJOR_VERSION 1)
set(IGC_API_MINOR_VERSION 0)
set(IGC_API_PATCH_VERSION 0)
# ======================================================================================================
# ================================================ UTILS ===============================================
# ======================================================================================================
......@@ -3613,6 +3618,9 @@ else()
igc_arch_get_cpu(_cpuSuffix)
endif()
set_target_properties("${IGC_BUILD__PROJ__igc_dll}" PROPERTIES OUTPUT_NAME "${IGC_LIBRARY_NAME}${_cpuSuffix}")
set_target_properties("${IGC_BUILD__PROJ__igc_dll}" PROPERTIES
VERSION "${IGC_API_MAJOR_VERSION}.${IGC_API_MINOR_VERSION}.${IGC_API_PATCH_VERSION}"
SOVERSION "${IGC_API_MAJOR_VERSION}")
unset(_cpuSuffix)
#FCL
......@@ -3622,6 +3630,9 @@ else()
igc_arch_get_cpu(_cpuSuffix)
endif()
set_target_properties("${IGC_BUILD__PROJ__fcl_dll}" PROPERTIES OUTPUT_NAME "${FCL_LIBRARY_NAME}${_cpuSuffix}")
set_target_properties("${IGC_BUILD__PROJ__fcl_dll}" PROPERTIES
VERSION "${IGC_API_MAJOR_VERSION}.${IGC_API_MINOR_VERSION}.${IGC_API_PATCH_VERSION}"
SOVERSION "${IGC_API_MAJOR_VERSION}")
unset(_cpuSuffix)
# Injecting external vISA project.
......
......@@ -329,6 +329,10 @@ if(ANDROID AND MEDIA_IGA)
endif(ANDROID AND MEDIA_IGA)
# target_link_libraries(IGA PRIVATE GEDLibrary)
set_target_properties(IGA_DLL PROPERTIES
VERSION "${IGC_API_MAJOR_VERSION}.${IGC_API_MINOR_VERSION}.${IGC_API_PATCH_VERSION}"
SOVERSION "${IGC_API_MAJOR_VERSION}")
if(UNIX)
INSTALL(TARGETS IGA_DLL
RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/. COMPONENT igc-core
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment