Skip to content

Commit

Permalink
build: fix debug builds
Browse files Browse the repository at this point in the history
  • Loading branch information
arcan1s committed May 5, 2024
1 parent 79a148a commit 66baa78
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 3 deletions.
4 changes: 3 additions & 1 deletion sources/awdebug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
***************************************************************************/


#ifndef NDEBUG
#define NDEBUG
#endif /* NDEBUG */
#include <KI18n/KLocalizedString>

#include "awdebug.h"
Expand Down
3 changes: 3 additions & 0 deletions sources/awesome-widget/plugin/awupdatehelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@

#include "awupdatehelper.h"

#ifndef NDEBUG
#define NDEBUG
#endif /* NDEBUG */
#include <KI18n/KLocalizedString>
#include <KNotifications/KNotification>

Expand Down
1 change: 1 addition & 0 deletions sources/awesomewidgets/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ configure_file(${SUBPROJECT_WEATHER_JSON_IN} ${CMAKE_CURRENT_BINARY_DIR}/${SUBPR

qt6_wrap_ui(SUBPROJECT_UI_HEADER ${SUBPROJECT_UI} OPTIONS --translate ui_i18n)
add_library(${SUBPROJECT} STATIC ${SUBPROJECT_SOURCE} ${SUBPROJECT_HEADER} ${SUBPROJECT_UI_HEADER})
set_property(TARGET ${SUBPROJECT} PROPERTY POSITION_INDEPENDENT_CODE ON)
target_link_libraries(${SUBPROJECT} ${Qt_LIBRARIES} ${Kf6_LIBRARIES})

# install
Expand Down
3 changes: 2 additions & 1 deletion sources/awtranslation.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@

#ifndef ui_i18n
#define ui_i18n(text, parent) i18n(text)
#endif
#endif /* ui_i18n */

1 change: 1 addition & 0 deletions sources/extsysmonsources/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ file(GLOB SUBPROJECT_SOURCE *.cpp)
file(GLOB SUBPROJECT_HEADER *.h)

add_library(${SUBPROJECT} STATIC ${SUBPROJECT_SOURCE} ${SUBPROJECT_HEADER})
set_property(TARGET ${SUBPROJECT} PROPERTY POSITION_INDEPENDENT_CODE ON)
target_link_libraries(${SUBPROJECT} ${PROJECT_LIBRARY} ${Qt_LIBRARIES} ${Kf6_LIBRARIES})
2 changes: 1 addition & 1 deletion sources/test/testawbugreporter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ void TestAWBugReporter::test_generateText()

void TestAWBugReporter::test_sendBugReport()
{
QSignalSpy spy(plugin, SIGNAL(replyReceived(int, QString &)));
QSignalSpy spy(plugin, SIGNAL(replyReceived(int, const QString &)));
plugin->sendBugReport(AWTestLibrary::randomString(),
plugin->generateText(data.at(0), data.at(1), data.at(2), data.at(3)));

Expand Down

0 comments on commit 66baa78

Please sign in to comment.