mirror of
https://github.com/albfan/miraclecast.git
synced 2025-03-09 23:38:56 +00:00
rename miracle-wfdctl to miracle-dispd
This commit is contained in:
parent
5532bf14d1
commit
b21aa0d039
16 changed files with 44 additions and 47 deletions
|
@ -25,15 +25,15 @@ install(
|
|||
)
|
||||
|
||||
configure_file(
|
||||
miracle-wfdctl.service.cmake
|
||||
miracle-wfdctl.service
|
||||
miracle-dispd.service.cmake
|
||||
miracle-dispd.service
|
||||
)
|
||||
install(
|
||||
FILES ${CMAKE_CURRENT_BINARY_DIR}/miracle-wfdctl.service
|
||||
FILES ${CMAKE_CURRENT_BINARY_DIR}/miracle-dispd.service
|
||||
DESTINATION ${SYSTEMD_SYSTEM_UNIT_DIR}/
|
||||
)
|
||||
install(
|
||||
CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink miracle-wfdctl.service ${SYSTEMD_SYSTEM_UNIT_DIR}/dbus-org.freedesktop.miracle.wfd.service)"
|
||||
CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink miracle-dispd.service ${SYSTEMD_SYSTEM_UNIT_DIR}/dbus-org.freedesktop.miracle.wfd.service)"
|
||||
)
|
||||
|
||||
configure_file(
|
||||
|
|
|
@ -1,14 +1,13 @@
|
|||
[Unit]
|
||||
Description=Miraclecast WiFi Display Controller
|
||||
Description=Miraclecast WiFi Display Service
|
||||
After=dbus.service
|
||||
Requires=miracle-wifid.service
|
||||
After=miracle-wifid.service
|
||||
|
||||
[Service]
|
||||
BusName=org.freedesktop.miracle.wfd
|
||||
Environment=PATH=/sbin:/usr/bin
|
||||
Environment=LOG_LEVEL=trace
|
||||
ExecStart=@CMAKE_INSTALL_PREFIX@/bin/miracle-wfdctl
|
||||
ExecStart=@CMAKE_INSTALL_PREFIX@/bin/miracle-dispd
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -1,5 +1,5 @@
|
|||
[D-BUS Service]
|
||||
Name=org.freedesktop.miracle.wfd
|
||||
Exec=/bin/sh -c 'PATH=/sbin:/usr/bin LOG_LEVEL=trace @CMAKE_INSTALL_PREFIX@/bin/miracle-wfdctl'
|
||||
Exec=/bin/sh -c 'LOG_LEVEL=trace @CMAKE_INSTALL_PREFIX@/bin/miracle-dispd'
|
||||
User=root
|
||||
SystemdService=dbus-org.freedesktop.miracle.wfd.service
|
||||
|
|
|
@ -5,6 +5,7 @@ add_subdirectory(wifi)
|
|||
add_subdirectory(dhcp)
|
||||
add_subdirectory(ctl)
|
||||
add_subdirectory(uibc)
|
||||
add_subdirectory(disp)
|
||||
|
||||
set(miracled_SRCS miracled.h miracled.c)
|
||||
add_executable(miracled ${miracled_SRCS})
|
||||
|
|
|
@ -43,46 +43,8 @@ endif(READLINE_FOUND)
|
|||
|
||||
target_link_libraries(miracle-sinkctl miracle-shared)
|
||||
|
||||
include_directories(${CMAKE_BINARY_DIR} ${CMAKE_SOURCE_DIR}/src ${CMAKE_SOURCE_DIR}/src/shared)
|
||||
|
||||
########### next target ###############
|
||||
set(miracle-wfdctl_SRCS ctl-cli.c
|
||||
ctl-wifi.c
|
||||
wfd-sink.c
|
||||
wfd-dbus.c
|
||||
wfd-session.c
|
||||
wfd-out-session.c
|
||||
wfdctl.c
|
||||
wfd.c
|
||||
wfd-arg.c)
|
||||
|
||||
include_directories(${CMAKE_BINARY_DIR}
|
||||
${GSTREAMER_INCLUDE_DIRS}
|
||||
${GSTREAMER_BASE_INCLUDE_DIRS}
|
||||
${CMAKE_SOURCE_DIR}/src
|
||||
${CMAKE_SOURCE_DIR}/src/shared)
|
||||
|
||||
add_executable(miracle-wfdctl ${miracle-wfdctl_SRCS})
|
||||
|
||||
install(TARGETS miracle-wfdctl DESTINATION bin)
|
||||
|
||||
if(READLINE_FOUND)
|
||||
message(STATUS "Compiling with Readline support")
|
||||
set_property(TARGET miracle-wfdctl
|
||||
APPEND
|
||||
PROPERTY COMPILE_DEFINITIONS HAVE_READLINE)
|
||||
target_link_libraries(miracle-wfdctl ${READLINE_LIBRARY})
|
||||
endif(READLINE_FOUND)
|
||||
|
||||
target_link_libraries(miracle-wfdctl
|
||||
miracle-shared
|
||||
${GSTREAMER_LIBRARIES}
|
||||
${GSTREAMER_BASE_LIBRARIES})
|
||||
|
||||
########### install files ###############
|
||||
|
||||
|
||||
|
||||
${CMAKE_SOURCE_DIR}/src ${CMAKE_SOURCE_DIR}/src/shared)
|
||||
|
||||
#original Makefile.am contents follow:
|
||||
|
||||
|
|
35
src/disp/CMakeLists.txt
Normal file
35
src/disp/CMakeLists.txt
Normal file
|
@ -0,0 +1,35 @@
|
|||
set(miracle-dispd_SRCS ../ctl/ctl-cli.c
|
||||
../ctl/ctl-wifi.c
|
||||
wfd-sink.c
|
||||
wfd-dbus.c
|
||||
wfd-session.c
|
||||
wfd-out-session.c
|
||||
dispd.c
|
||||
../ctl/wfd.c
|
||||
wfd-arg.c)
|
||||
|
||||
include_directories(${CMAKE_SOURCE_DIR}/src/ctl
|
||||
${CMAKE_BINARY_DIR}
|
||||
${GSTREAMER_INCLUDE_DIRS}
|
||||
${GSTREAMER_BASE_INCLUDE_DIRS}
|
||||
${CMAKE_SOURCE_DIR}/src
|
||||
${CMAKE_SOURCE_DIR}/src/shared)
|
||||
|
||||
add_executable(miracle-dispd ${miracle-dispd_SRCS})
|
||||
|
||||
install(TARGETS miracle-dispd DESTINATION bin)
|
||||
|
||||
if(READLINE_FOUND)
|
||||
message(STATUS "Compiling with Readline support")
|
||||
set_property(TARGET miracle-dispd
|
||||
APPEND
|
||||
PROPERTY COMPILE_DEFINITIONS HAVE_READLINE)
|
||||
target_link_libraries(miracle-dispd ${READLINE_LIBRARY})
|
||||
endif(READLINE_FOUND)
|
||||
|
||||
target_link_libraries(miracle-dispd
|
||||
miracle-shared
|
||||
${GSTREAMER_LIBRARIES}
|
||||
${GSTREAMER_BASE_LIBRARIES}
|
||||
${READLINE_LIBRARY})
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue