TheRock compatibility - support (#681)
* Add support for TheRock compatibility
* Update the version
* code clean up
* clean up
[ROCm/rocdecode commit: e2789088ee]
This commit is contained in:
committad av
GitHub
förälder
09c8afe519
incheckning
a4f40f4b57
@@ -40,7 +40,7 @@ if (NOT DEFINED CMAKE_CXX_COMPILER)
|
||||
endif()
|
||||
|
||||
# rocdecode Version
|
||||
set(VERSION "1.6.0")
|
||||
set(VERSION "1.7.0")
|
||||
|
||||
# Set Project Version and Language
|
||||
project(rocdecode VERSION ${VERSION} LANGUAGES CXX)
|
||||
@@ -106,6 +106,7 @@ option(ROCDECODE_ENABLE_ROCPROFILER_REGISTER "Enable rocprofiler-register suppor
|
||||
# Add an option for enabling FFMPEG avcodec host-based decoder
|
||||
option(ROCDECODE_ENABLE_HOST_DECODER "Enable rocdecode-host-based decoder support" ON)
|
||||
|
||||
set (HIP_PLATFORM amd CACHE STRING "HIP platform")
|
||||
find_package(HIP QUIET)
|
||||
find_package(Libva QUIET)
|
||||
find_package(Libdrm_amdgpu QUIET)
|
||||
@@ -188,6 +189,10 @@ if(HIP_FOUND AND Libva_FOUND AND Libdrm_amdgpu_FOUND)
|
||||
set_target_properties(${PROJECT_NAME} PROPERTIES LINKER_LANGUAGE CXX)
|
||||
set_target_properties(${PROJECT_NAME} PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION ${PROJECT_VERSION_MAJOR})
|
||||
|
||||
if(USING_THE_ROCK)
|
||||
set_target_properties(${PROJECT_NAME} PROPERTIES INSTALL_RPATH "$ORIGIN;$ORIGIN/rocm_sysdeps/lib" BUILD_WITH_INSTALL_RPATH TRUE)
|
||||
endif()
|
||||
|
||||
# rocprofiler
|
||||
if (rocprofiler-register_FOUND)
|
||||
string(REPLACE "." ";" VERSION_LIST ${VERSION})
|
||||
|
||||
Referens i nytt ärende
Block a user