cmake: Fix frontend feature flag mismatch

The actual frontend provided an "ENABLE_FRONTEND" build flag, whereas
the global project still provided an "ENABLE_UI" flag, which itself was
only read and respected by the scripting module.

This change retains the global flag and makes both the actual frontend
as well as the scripting module respect its value.
This commit is contained in:
PatTheMav
2026-06-01 18:59:35 +02:00
committed by Ryan Foster
parent 9541600b3d
commit 35c7a5a173
11 changed files with 18 additions and 20 deletions

View File

@@ -26,7 +26,7 @@
#include <util/platform.h>
#include <util/config-file.h>
#if defined(ENABLE_UI)
#if defined(ENABLE_FRONTEND)
#include "obs-frontend-api.h"
#endif
@@ -106,6 +106,6 @@ static inline void wrap_blog(int log_level, const char *message)
%include "util/platform.h"
%include "util/config-file.h"
#if defined(ENABLE_UI)
#if defined(ENABLE_FRONTEND)
%include "obs-frontend-api.h"
#endif