1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-26 17:58:43 -05:00

Web API: static page build on Linux

This commit is contained in:
f4exb 2017-11-20 23:57:53 +01:00
parent 1b5f944302
commit 5e13c16cb6
2 changed files with 4 additions and 4 deletions

View File

@ -231,13 +231,13 @@ if (BUILD_DEBIAN)
include_directories(${LIBSERIALDVSRC}) include_directories(${LIBSERIALDVSRC})
endif (BUILD_DEBIAN) endif (BUILD_DEBIAN)
add_definitions(${QT_DEFINITIONS})
add_definitions(-DQT_SHARED)
set(sdrbase_RESOURCES set(sdrbase_RESOURCES
resources/res.qrc resources/res.qrc
) )
add_definitions(${QT_DEFINITIONS})
add_definitions(-DQT_SHARED)
qt5_add_resources(sdrbase_RESOURCES_RCC ${sdrbase_RESOURCES}) qt5_add_resources(sdrbase_RESOURCES_RCC ${sdrbase_RESOURCES})
add_library(sdrbase SHARED add_library(sdrbase SHARED

View File

@ -71,7 +71,7 @@ void WebAPIRequestMapper::service(qtwebapp::HttpRequest& request, qtwebapp::Http
} }
else else
{ {
QByteArray path = "/"; QByteArray path = "/index.html";
m_staticFileController->service(path, response); m_staticFileController->service(path, response);
//response.setStatus(404,"Not found"); //response.setStatus(404,"Not found");
} }