Update platform tag handling

This commit is contained in:
LordGrey 2023-05-28 10:31:47 +02:00
parent 16524cd092
commit c03b5b9a94

View File

@ -180,19 +180,18 @@ if ( "${PLATFORM}" MATCHES "osx" )
elseif ( "${PLATFORM}" MATCHES "rpi" ) elseif ( "${PLATFORM}" MATCHES "rpi" )
SET ( DEFAULT_DISPMANX ON ) SET ( DEFAULT_DISPMANX ON )
SET ( DEFAULT_DEV_WS281XPWM ON ) SET ( DEFAULT_DEV_WS281XPWM ON )
elseif ( "${PLATFORM}" STREQUAL "amlogic" ) elseif ( "${PLATFORM}" MATCHES "^amlogic" )
SET ( DEFAULT_AMLOGIC ON ) SET ( DEFAULT_AMLOGIC ON )
elseif ( "${PLATFORM}" STREQUAL "amlogic-dev" ) if ( "${PLATFORM}" MATCHES "-dev$" )
SET ( DEFAULT_AMLOGIC ON ) SET ( DEFAULT_AMLOGIC ON )
SET ( DEFAULT_DISPMANX OFF ) SET ( DEFAULT_DISPMANX OFF )
SET ( DEFAULT_QT OFF ) SET ( DEFAULT_QT OFF )
SET ( DEFAULT_CEC OFF ) SET ( DEFAULT_CEC OFF )
elseif ( "${PLATFORM}" STREQUAL "amlogic64" ) endif()
SET ( DEFAULT_AMLOGIC ON ) elseif ( "${PLATFORM}" MATCHES "^x11" )
elseif ( "${PLATFORM}" MATCHES "x11" )
SET ( DEFAULT_X11 ON ) SET ( DEFAULT_X11 ON )
SET ( DEFAULT_XCB ON ) SET ( DEFAULT_XCB ON )
if ( "${PLATFORM}" STREQUAL "x11-dev" ) if ( "${PLATFORM}" MATCHES "-dev$" )
SET ( DEFAULT_AMLOGIC ON) SET ( DEFAULT_AMLOGIC ON)
SET ( DEFAULT_DEV_WS281XPWM ON ) SET ( DEFAULT_DEV_WS281XPWM ON )
endif() endif()
@ -201,7 +200,7 @@ elseif ( "${PLATFORM}" STREQUAL "imx6" )
endif() endif()
# enable tests for -dev builds # enable tests for -dev builds
if ( "${PLATFORM}" MATCHES "-dev" ) if ( "${PLATFORM}" MATCHES "-dev$" )
SET ( DEFAULT_TESTS ON ) SET ( DEFAULT_TESTS ON )
endif() endif()