mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-04-20 23:30:37 +00:00
Enable fake video output only in debug builds
This commit is contained in:
@@ -4,7 +4,6 @@ cmake_minimum_required(VERSION 3.1)
|
||||
SET(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake")
|
||||
|
||||
aux_source_directory(./src SRC_LIST)
|
||||
list(APPEND SRC_LIST ./src/video/fake.c)
|
||||
|
||||
aux_source_directory(./third_party/moonlight-common-c/limelight-common SRC_LIST)
|
||||
aux_source_directory(./third_party/moonlight-common-c/limelight-common/OpenAES SRC_LIST)
|
||||
@@ -33,6 +32,13 @@ if(CEC_FOUND)
|
||||
list(APPEND MOONLIGHT_DEFINITIONS HAVE_LIBCEC)
|
||||
endif()
|
||||
|
||||
if(CMAKE_BUILD_TYPE MATCHES Debug)
|
||||
list(APPEND SRC_LIST ./src/video/fake.c)
|
||||
list(APPEND MOONLIGHT_DEFINITIONS HAVE_FAKE)
|
||||
elseif(NOT BROADCOM_FOUND AND NOT FREESCALE_FOUND)
|
||||
message(FATAL_ERROR "No video output available")
|
||||
endif()
|
||||
|
||||
if(BROADCOM_FOUND)
|
||||
aux_source_directory(./third_party/ilclient SRC_LIST)
|
||||
aux_source_directory(./third_party/h264bitstream SRC_LIST)
|
||||
|
||||
Reference in New Issue
Block a user