mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2025-07-04 00:36:01 +00:00
Fix video output compile
This commit is contained in:
parent
55632b2e0a
commit
286600afdc
@ -23,6 +23,14 @@ find_package(PkgConfig REQUIRED)
|
|||||||
pkg_check_modules(EVDEV REQUIRED libevdev)
|
pkg_check_modules(EVDEV REQUIRED libevdev)
|
||||||
pkg_check_modules(AVAHI REQUIRED avahi-client)
|
pkg_check_modules(AVAHI REQUIRED avahi-client)
|
||||||
|
|
||||||
|
if(BROADCOM_FOUND)
|
||||||
|
list(APPEND SRC_LIST ./src/video/omx.c)
|
||||||
|
elseif(FREESCALE_FOUND)
|
||||||
|
list(APPEND SRC_LIST ./src/video/imx.c)
|
||||||
|
else()
|
||||||
|
list(APPEND SRC_LIST ./src/video/fake.c)
|
||||||
|
endif()
|
||||||
|
|
||||||
add_executable(moonlight ${SRC_LIST})
|
add_executable(moonlight ${SRC_LIST})
|
||||||
set_property(TARGET moonlight PROPERTY C_STANDARD 11)
|
set_property(TARGET moonlight PROPERTY C_STANDARD 11)
|
||||||
|
|
||||||
@ -33,13 +41,9 @@ if(BROADCOM_FOUND)
|
|||||||
include_directories(./ilclient ./h264bitstream ${BROADCOM_INCLUDE_DIRS})
|
include_directories(./ilclient ./h264bitstream ${BROADCOM_INCLUDE_DIRS})
|
||||||
target_link_libraries (moonlight PUBLIC ${BROADCOM_LIBRARIES})
|
target_link_libraries (moonlight PUBLIC ${BROADCOM_LIBRARIES})
|
||||||
set_property(TARGET moonlight PROPERTY COMPILE_DEFINITIONS ${BROADCOM_DEFINITIONS})
|
set_property(TARGET moonlight PROPERTY COMPILE_DEFINITIONS ${BROADCOM_DEFINITIONS})
|
||||||
list(APPEND SRC_LIST ./src/video/omx.c)
|
|
||||||
elseif(FREESCALE_FOUND)
|
elseif(FREESCALE_FOUND)
|
||||||
include_directories(${FREESCALE_INCLUDE_DIRS})
|
include_directories(${FREESCALE_INCLUDE_DIRS})
|
||||||
target_link_libraries (moonlight PUBLIC ${FREESCALE_LIBRARIES})
|
target_link_libraries (moonlight PUBLIC ${FREESCALE_LIBRARIES})
|
||||||
list(APPEND SRC_LIST ./src/video/imx.c)
|
|
||||||
else()
|
|
||||||
list(APPEND SRC_LIST ./src/video/fake.c)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include_directories(./moonlight-common-c ${OPUS_INCLUDE_DIRS} ${EVDEV_INCLUDE_DIRS} ${AVAHI_INCLUDE_DIRS})
|
include_directories(./moonlight-common-c ${OPUS_INCLUDE_DIRS} ${EVDEV_INCLUDE_DIRS} ${AVAHI_INCLUDE_DIRS})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user