File tree Expand file tree Collapse file tree 4 files changed +72
-1
lines changed Expand file tree Collapse file tree 4 files changed +72
-1
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,11 @@ project(ttydisp)
3
3
4
4
set (CMAKE_CXX_STANDARD 17 )
5
5
6
- include ("./cmake/FindFFmpeg.cmake" )
6
+ include ("./cmake/ffmpeg-config.cmake" )
7
+ include ("./cmake/libvdpau-config.cmake" )
8
+ find_package (X11 )
9
+ find_package (Threads )
10
+ find_package (ZLIB )
7
11
8
12
if (MSVC )
9
13
# Visual Studio -- /W4
@@ -20,5 +24,9 @@ endif()
20
24
add_executable (ttydisp ttydisp.cpp )
21
25
target_include_directories ( ttydisp PRIVATE ${LIBAVFORMAT_INCLUDE_DIR} ${LIBAVCODEC_INCLUDE_DIR} ${LIBAVUTIL_INCLUDE_DIR} ${LIBSWSCALE_INCLUDE_DIR} )
22
26
target_link_libraries (ttydisp ${LIBAVFORMAT_LIBRARY} ${LIBAVCODEC_LIBRARY} ${LIBAVUTIL_LIBRARY} ${LIBSWSCALE_LIBRARY} )
27
+ target_link_libraries (ttydisp ${LIBVDPAU_LIBRARY} )
28
+ target_link_libraries (ttydisp ${X11_LIBRARIES} )
29
+ target_link_libraries (ttydisp ${CMAKE_THREAD_LIBS_INIT} )
30
+ target_link_libraries (ttydisp ${ZLIB_LIBRARIES} )
23
31
24
32
install (TARGETS ttydisp DESTINATION bin )
File renamed without changes.
Original file line number Diff line number Diff line change
1
+ # Custom libvdpau cmake file
2
+
3
+ find_package ( PkgConfig )
4
+ if ( PKG_CONFIG_FOUND )
5
+ pkg_search_module ( PC_LIBVDPAU vdpau )
6
+ endif ( PKG_CONFIG_FOUND )
7
+
8
+ find_path ( LIBVDPAU_INCLUDE_DIR vdpau/vdpau.h
9
+ HINTS
10
+ # Hints provided by pkg-config
11
+ ${PC_LIBVDPAU_INCLUDEDIR}
12
+ ${PC_LIBVDPAU_INCLUDEDIR} /*
13
+ ${PC_LIBVDPAU_INCLUDE_DIRS}
14
+ PATHS
15
+ # Standard include directories
16
+ /usr/include/
17
+ ~/usr/include/
18
+ /opt/local/include/
19
+ /usr/local/include/
20
+ /opt/kde4/include/
21
+ ${KDE4_INCLUDE_DIR} /
22
+ # Search all subdirs of the above
23
+ /usr/include/*
24
+ ~/usr/include/*
25
+ /opt/local/include/*
26
+ /usr/local/include/*
27
+ /opt/kde4/include/*
28
+ ${KDE4_INCLUDE_DIR} /*
29
+ PATH_SUFFIXES
30
+ # Subdirectory hints
31
+ libvdpau
32
+ vdpau
33
+ )
34
+
35
+ find_library ( LIBVDPAU_LIBRARY vdpau
36
+ HINTS
37
+ # Hints provided by pkg-config
38
+ ${PC_LIBVDPAU_LIBDIR}
39
+ ${PC_LIBVDPAU_LIBRARY_DIRS}
40
+ PATHS
41
+ ~/usr/lib/
42
+ /opt/local/lib/
43
+ /usr/lib/
44
+ /usr/lib64/
45
+ /usr/local/lib/
46
+ /opt/kde4/lib/
47
+ ${KDE4_LIB_DIR}
48
+ )
49
+
50
+ include ( FindPackageHandleStandardArgs )
51
+ find_package_handle_standard_args ( vdpau DEFAULT_MSG
52
+ LIBVDPAU_INCLUDE_DIR
53
+ LIBVDPAU_LIBRARY
54
+ )
55
+ if ( LIBVDPAU_FOUND )
56
+ message ( STATUS "\t vdpau: ${LIBVDPAU_INCLUDE_DIR} , ${LIBVDPAU_LIBRARY} " )
57
+ endif ( LIBVDPAU_FOUND )
58
+
59
+ mark_as_advanced ( LIBVDPAU_LIBRARY )
Original file line number Diff line number Diff line change 8
8
#include < chrono>
9
9
#include < csignal>
10
10
11
+ #ifndef AV_ERROR_MAX_STRING_SIZE
12
+ #define AV_ERROR_MAX_STRING_SIZE 64
13
+ #endif
14
+
11
15
using clk = std::chrono::steady_clock;
12
16
13
17
extern " C"
You can’t perform that action at this time.
0 commit comments