Fix build variant workflow

Note that WITH_TLS fails because websockets requires TLS, and WITH_SHARED_LIBRARIES fails because with it turned off none of the libraries are built
This commit is contained in:
Roger A. Light
2025-07-10 16:50:57 +01:00
parent 43dda2ae20
commit d76389340c
4 changed files with 14 additions and 5 deletions
+3 -2
View File
@@ -7,10 +7,11 @@ build_variants = [
'WITH_CONTROL',
'WITH_EDITLINE',
'WITH_EPOLL',
'WITH_HTTP_API',
'WITH_MEMORY_TRACKING',
'WITH_OLD_KEEPALIVE',
'WITH_PERSISTENCE',
'WITH_SHARED_LIBRARIES',
#'WITH_SHARED_LIBRARIES',
'WITH_SOCKS',
'WITH_SQLITE',
'WITH_SRV',
@@ -18,7 +19,7 @@ build_variants = [
'WITH_SYSTEMD',
'WITH_SYS_TREE',
'WITH_THREADING',
'WITH_TLS',
#'WITH_TLS',
'WITH_TLS_PSK',
'WITH_UNIX_SOCKETS',
'WITH_WEBSOCKETS',
+3 -1
View File
@@ -264,9 +264,11 @@ struct mosquitto__listener {
bool ws_in_init;
struct lws_protocols *ws_protocol;
# endif
char *http_dir;
char **ws_origins;
int ws_origin_count;
#endif
#if defined(WITH_WEBSOCKETS) || defined(WITH_HTTP_API)
char *http_dir;
#endif
struct mosquitto__security_options *security_options;
#ifdef WITH_UNIX_SOCKETS
+4 -1
View File
@@ -25,9 +25,12 @@ static void proxy_cleanup(struct mosquitto *context)
static int update_transport(struct mosquitto *context)
{
#if defined(WITH_WEBSOCKETS) && WITH_WEBSOCKETS == WS_IS_BUILTIN
if(context->listener->protocol == mp_websockets){
return http__context_init(context);
}else{
}else
#endif
{
context->transport = mosq_t_tcp;
}
return MOSQ_ERR_SUCCESS;
+4 -1
View File
@@ -297,9 +297,12 @@ int proxy_v2__read(struct mosquitto *context)
}
proxy_cleanup(context);
#if defined(WITH_WEBSOCKETS) && WITH_WEBSOCKETS == WS_IS_BUILTIN
if(context->listener->protocol == mp_websockets){
return http__context_init(context);
}else{
}else
#endif
{
context->transport = mosq_t_tcp;
}
}