File tree 4 files changed +14
-13
lines changed
4 files changed +14
-13
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,10 @@ GPUs from the command line.
12
12
13
13
### Added
14
14
- VVC decode support to sample_decode
15
+ - Embedded version information to all shared libraries
16
+
17
+ ### Changed
18
+ - Metrics monitor library to now build statically by default
15
19
16
20
## [ 1.1.0] - 2024-06-28
17
21
Original file line number Diff line number Diff line change @@ -199,6 +199,7 @@ message(
199
199
message (
200
200
STATUS " VPL_INSTALL_FULL_PYTHONDIR : ${VPL_INSTALL_FULL_PYTHONDIR} " )
201
201
message (STATUS "Build:" )
202
+ message (STATUS " BUILD_SHARED_LIBS : ${BUILD_SHARED_LIBS} " )
202
203
message (STATUS " BUILD_TESTS : ${BUILD_TESTS} " )
203
204
message (STATUS " BUILD_EXPERIMENTAL : ${BUILD_EXPERIMENTAL} " )
204
205
if (MSVC )
Original file line number Diff line number Diff line change @@ -60,25 +60,20 @@ if(PKG_LIBDRM_FOUND)
60
60
set (DEPENDENCIES libdrm)
61
61
set (METRICS_LIB cttmetrics)
62
62
63
- add_library (${METRICS_LIB} SHARED ${sources} )
63
+ if (BUILD_SHARED_LIBS )
64
+ add_library (${METRICS_LIB} SHARED ${sources} )
65
+ set_target_properties (${METRICS_LIB} PROPERTIES VERSION 1.0.0)
66
+ install (TARGETS ${METRICS_LIB} LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
67
+ COMPONENT ${VPL_COMPONENT_TOOLS} )
68
+ else ()
69
+ add_library (${METRICS_LIB} STATIC ${sources} )
70
+ endif ()
64
71
65
72
target_include_directories (${METRICS_LIB} PUBLIC include )
66
73
target_link_libraries (${METRICS_LIB} PRIVATE PkgConfig::PKG_LIBDRM)
67
-
68
74
target_compile_definitions (${METRICS_LIB} PRIVATE LIBVA_DRM_SUPPORT
69
75
LIBVA_SUPPORT)
70
76
71
- # cttmetrics_static
72
- add_library (cttmetrics_static STATIC ${sources} )
73
-
74
- target_include_directories (cttmetrics_static PUBLIC include )
75
- target_link_libraries (cttmetrics_static PUBLIC PkgConfig::PKG_LIBDRM)
76
-
77
- target_compile_definitions (cttmetrics_static PRIVATE LIBVA_DRM_SUPPORT
78
- LIBVA_SUPPORT)
79
- install (TARGETS ${METRICS_LIB} LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
80
- COMPONENT ${VPL_COMPONENT_TOOLS} )
81
-
82
77
# metrics_monitor
83
78
set (sources sample/cttmetrics_sample.cpp)
84
79
set (METRICS_TOOL metrics_monitor)
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ pkg_check_modules(PKGConfig_LIBDRM libdrm>=2.4.91 IMPORTED_TARGET)
25
25
26
26
if (PKGConfig_LIBDRM_FOUND)
27
27
add_library (${TARGET} SHARED)
28
+ set_target_properties (${TARGET} PROPERTIES VERSION 1.0.0)
28
29
29
30
target_include_directories (
30
31
${TARGET} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} /include
You can’t perform that action at this time.
0 commit comments