Pārlūkot izejas kodu

Fix up ffmpeg header and library handling

FFMPEG is needed by the RFB library, so all the details about it should
only be applied there and not for other components.
tags/v1.12.90
Pierre Ossman pirms 1 gada
vecāks
revīzija
4cf31302a1

+ 1
- 1
CMakeLists.txt Parādīt failu

@@ -189,7 +189,7 @@ if(ENABLE_H264)
find_library(AVUTIL_LIBRARY avutil)
find_path(SWSCALE_INCLUDE_DIR libswscale/swscale.h)
find_library(SWSCALE_LIBRARY swscale)
include_directories(${AVCODEC_INCLUDE_DIR} ${AVUTIL_INCLUDE_DIR} ${SWSCALE_INCLUDE_DIR})
set(H264_INCLUDE_DIRS ${AVCODEC_INCLUDE_DIRS} ${AVUTIL_INCLUDE_DIRS} ${SWSCALE_INCLUDE_DIRS})
set(H264_LIBRARIES ${AVCODEC_LIBRARY} ${AVUTIL_LIBRARY} ${SWSCALE_LIBRARY})
add_definitions("-D__STDC_CONSTANT_MACROS")
add_definitions("-DHAVE_H264")

+ 2
- 1
common/rfb/CMakeLists.txt Parādīt failu

@@ -1,4 +1,4 @@
include_directories(${CMAKE_SOURCE_DIR}/common ${JPEG_INCLUDE_DIR} ${PIXMAN_INCLUDE_DIRS})
include_directories(${CMAKE_SOURCE_DIR}/common ${JPEG_INCLUDE_DIR} ${PIXMAN_INCLUDE_DIRS} ${H264_INCLUDE_DIRS})

add_library(rfb STATIC
Blacklist.cxx
@@ -75,6 +75,7 @@ if(ENABLE_H264 AND NOT H264_LIBS STREQUAL "NONE")
elseif(H264_LIBS STREQUAL "WIN")
target_sources(rfb PRIVATE H264WinDecoderContext.cxx)
endif()
target_link_libraries(rfb ${H264_LIBRARIES})
endif()

if(UNIX)

+ 0
- 1
tests/perf/CMakeLists.txt Parādīt failu

@@ -3,7 +3,6 @@ include_directories(${GETTEXT_INCLUDE_DIR})
include_directories(${CMAKE_SOURCE_DIR}/common)

add_library(test_util STATIC util.cxx)
target_link_libraries(test_util ${H264_LIBRARIES})

add_executable(convperf convperf.cxx)
target_link_libraries(convperf test_util rfb)

+ 1
- 1
vncviewer/CMakeLists.txt Parādīt failu

@@ -50,7 +50,7 @@ else()
target_sources(vncviewer PRIVATE Surface_X11.cxx)
endif()

target_link_libraries(vncviewer rfb network rdr os ${FLTK_LIBRARIES} ${GETTEXT_LIBRARIES} ${H264_LIBRARIES})
target_link_libraries(vncviewer rfb network rdr os ${FLTK_LIBRARIES} ${GETTEXT_LIBRARIES})

if(WIN32)
target_link_libraries(vncviewer msimg32)

Notiek ielāde…
Atcelt
Saglabāt