mirror of
https://github.com/albfan/miraclecast.git
synced 2025-02-15 04:42:06 +00:00
miracle-dispd: complete cmake build for extracted encoder
Change-Id: I5635bffdb8e1a0a693893e22837de6a8a0071fbe
This commit is contained in:
parent
dbe5ea612a
commit
c5fb1487e0
2 changed files with 30 additions and 0 deletions
|
@ -63,3 +63,32 @@ install(
|
||||||
FILES org.freedesktop.miracle.conf
|
FILES org.freedesktop.miracle.conf
|
||||||
DESTINATION /etc/dbus-1/system.d
|
DESTINATION /etc/dbus-1/system.d
|
||||||
)
|
)
|
||||||
|
|
||||||
|
find_program(VALAC valac)
|
||||||
|
if(NOT VALAC)
|
||||||
|
message(FATAL_ERROR "valac not found")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
add_custom_command(OUTPUT gstencoder.c
|
||||||
|
COMMAND ${VALAC} --target-glib=2.50 -C
|
||||||
|
--pkg=gstreamer-1.0
|
||||||
|
--pkg=gio-2.0
|
||||||
|
--pkg=posix
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}/gstencoder.vala
|
||||||
|
DEPENDS gstencoder.vala
|
||||||
|
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
|
||||||
|
|
||||||
|
include_directories(${GIO2_INCLUDE_DIRS}
|
||||||
|
${GDK3_INCLUDE_DIRS}
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR})
|
||||||
|
|
||||||
|
pkg_check_modules(GST1 REQUIRED gstreamer-1.0)
|
||||||
|
pkg_check_modules(GIO2 REQUIRED gio-2.0)
|
||||||
|
|
||||||
|
include_directories(${GST1_INCLUDE_DIRS} ${GIO_INCLUDE_DIRS})
|
||||||
|
|
||||||
|
add_executable(gstencoder gstencoder)
|
||||||
|
|
||||||
|
target_link_libraries(gstencoder ${GST1_LIBRARIES} ${GIO2_LIBRARIES})
|
||||||
|
|
||||||
|
install(TARGETS gstencoder DESTINATION bin)
|
||||||
|
|
|
@ -5,6 +5,7 @@ set(miracle-dispd_SRCS ../ctl/ctl-cli.c
|
||||||
wfd-session.c
|
wfd-session.c
|
||||||
wfd-out-session.c
|
wfd-out-session.c
|
||||||
dispd.c
|
dispd.c
|
||||||
|
dispd-encoder.c
|
||||||
../ctl/wfd.c
|
../ctl/wfd.c
|
||||||
wfd-arg.c)
|
wfd-arg.c)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue