Skip to content

Commit

Permalink
Fixes against new iris
Browse files Browse the repository at this point in the history
  • Loading branch information
Ri0n committed Mar 11, 2024
1 parent 83a8dfb commit bebb649
Show file tree
Hide file tree
Showing 132 changed files with 277 additions and 393 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ option( PLUGINS_NO_DEBUG "Add -DPLUGINS_NO_DEBUG definition" OFF )
# Developers options
option( DEV_MODE "Enable prepare-bin-libs target for MS Windows only. Set PSI_DATADIR and PSI_LIBDIR to CMAKE_RUNTIME_OUTPUT_DIRECTORY to debug plugins for Linux only" OFF )
# Iris options
option( BUNDLED_QCA "Adds: DTLS, Blake2b and other useful for XMPP crypto-stuff" ${DEFAULT_BUNDLED_QCA} )
option( IRIS_BUNDLED_QCA "Adds: DTLS, Blake2b and other useful for XMPP crypto-stuff" ${DEFAULT_BUNDLED_QCA} )
option( BUNDLED_USRSCTP "Compile compatible usrsctp lib when system one is not available or uncompatible (required for p2p file transfer)" ${DEFAULT_BUNDLED_USRSCTP} )
if (UNIX AND "${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
option( ENABLE_ASAN "Enable compilation with address sanitizer" OFF )
Expand Down Expand Up @@ -174,7 +174,7 @@ if(USE_CRASH)
add_definitions(-DUSE_CRASH)
endif()

if(BUNDLED_QCA)
if(IRIS_BUNDLED_QCA)
add_definitions(-DQCA_STATIC)
endif()

Expand Down Expand Up @@ -347,7 +347,7 @@ endif()
if(NOT ONLY_PLUGINS)
add_subdirectory( 3rdparty )
if(BUNDLED_IRIS)
add_subdirectory( iris )
include(iris/bundled.cmake)
else()
find_package( Iris REQUIRED )
include_directories(${Iris_INCLUDE_DIR})
Expand Down
81 changes: 0 additions & 81 deletions cmake/modules/FindZLIB.cmake

This file was deleted.

2 changes: 1 addition & 1 deletion cmake/modules/get-version.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ set(DEFAULT_VER "1.5")
if(NOT Git_FOUND)
include(FindGit)
find_package(Git)
if((NOT BUNDLED_USRSCTP OR NOT BUNDLED_QCA) AND (NOT Git_FOUND))
if((NOT BUNDLED_USRSCTP OR NOT IRIS_BUNDLED_QCA) AND (NOT Git_FOUND))
message(STATUS "Git utility not found")
endif()
endif()
Expand Down
2 changes: 1 addition & 1 deletion iris
Submodule iris updated 125 files
14 changes: 7 additions & 7 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ if(APPLE)
list(APPEND EXTRA_LDFLAGS "-framework Carbon" "-framework AppKit" "-framework IOKit" "-framework CoreAudio" "-framework AudioToolbox")
endif()

if (NOT BUNDLED_QCA)
if (NOT IRIS_BUNDLED_QCA)
find_package( Qca REQUIRED )
include_directories(${Qca_INCLUDE_DIR})
else()
Expand Down Expand Up @@ -146,11 +146,11 @@ include_directories(
)

if(BUNDLED_IRIS)
include_directories(
${PROJECT_SOURCE_DIR}/iris/src
${PROJECT_SOURCE_DIR}/iris/include
${PROJECT_SOURCE_DIR}/iris/include/iris
)
# include_directories(
# ${PROJECT_SOURCE_DIR}/iris/src
# ${PROJECT_SOURCE_DIR}/iris/include
# ${PROJECT_SOURCE_DIR}/iris/include/iris
# )
else()
include_directories(${Iris_INCLUDE_DIR})
endif()
Expand Down Expand Up @@ -631,7 +631,7 @@ elseif(APPLE)
install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION "bin" BUNDLE DESTINATION ".")

# Special hack for qca package from Homebrew
if(HOMEBREW AND NOT BUNDLED_QCA)
if(HOMEBREW AND NOT IRIS_BUNDLED_QCA)
install(DIRECTORY "${HOMEBREW}/opt/qca/lib/qt5/plugins/crypto"
DESTINATION "${CLIENT_NAME}.app/Contents/PlugIns")
endif()
Expand Down
3 changes: 1 addition & 2 deletions src/accountmanagedlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,13 @@
#include "common.h"
#include "iconaction.h"
#include "miniclient.h"
#include "proxy.h"
#include "psiaccount.h"
#include "psicon.h"
#include "psicontactlist.h"
#include "psiiconset.h"
#include "shortcutmanager.h"
#include "ui_accountremove.h"
#include "xmpp_tasks.h"
#include "iris/xmpp_tasks.h"

#include <QButtonGroup>
#include <QDropEvent>
Expand Down
2 changes: 1 addition & 1 deletion src/accountregdlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include "serverlistquerier.h"
#include "textutil.h"
#include "xdata_widget.h"
#include "xmpp_tasks.h"
#include "iris/xmpp_tasks.h"

#include <QMessageBox>
#include <QScrollArea>
Expand Down
2 changes: 1 addition & 1 deletion src/accountregdlg.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

#include "profiles.h"
#include "ui_accountreg.h"
#include "xmpp_jid.h"
#include "iris/xmpp_jid.h"

#include <QDialog>
#include <QString>
Expand Down
8 changes: 4 additions & 4 deletions src/activitydlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
#include "activitycatalog.h"
#include "pepmanager.h"
#include "psiaccount.h"
#include "psiiconset.h"
#include "xmpp_client.h"
#include "xmpp_pubsubitem.h"
#include "xmpp_task.h"
#include "iconset.h"
#include "iris/xmpp_client.h"
#include "iris/xmpp_pubsubitem.h"
#include "iris/xmpp_task.h"

ActivityDlg::ActivityDlg(QList<PsiAccount *> list) : QDialog(nullptr), pa_(list)
{
Expand Down
7 changes: 3 additions & 4 deletions src/adduserdlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,14 @@

#include "busywidget.h"
#include "common.h"
#include "iconwidget.h"
#include "infodlg.h"
#include "psiaccount.h"
#include "psiiconset.h"
#include "tasklist.h"
#include "vcardfactory.h"
#include "xmpp_client.h"
#include "xmpp_tasks.h"
#include "xmpp_vcard.h"
#include "iris/xmpp_client.h"
#include "iris/xmpp_tasks.h"
#include "iris/xmpp_vcard.h"

#include <QCheckBox>
#include <QComboBox>
Expand Down
2 changes: 1 addition & 1 deletion src/ahcexecutetask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

#include "ahcformdlg.h"
#include "psiaccount.h"
#include "xmpp_xmlcommon.h"
#include "iris/xmpp_xmlcommon.h"

using namespace XMPP;

Expand Down
4 changes: 2 additions & 2 deletions src/ahcexecutetask.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
#define AHCEXECUTETASK_H

#include "ahcommand.h"
#include "xmpp_jid.h"
#include "xmpp_task.h"
#include "iris/xmpp_jid.h"
#include "iris/xmpp_task.h"

class QDomElement;

Expand Down
2 changes: 1 addition & 1 deletion src/ahcformdlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include "busywidget.h"
#include "psiaccount.h"
#include "xdata_widget.h"
#include "xmpp_client.h"
#include "iris/xmpp_client.h"

#include <QLabel>
#include <QLayout>
Expand Down
4 changes: 2 additions & 2 deletions src/ahcformdlg.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
#define AHCFORMDLG_H

#include "ui_ahcformdlg.h"
#include "xmpp_jid.h"
#include "xmpp_xdata.h"
#include "iris/xmpp_jid.h"
#include "iris/xmpp_xdata.h"

#include <QDialog>
#include <QObject>
Expand Down
2 changes: 1 addition & 1 deletion src/ahcommand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#include "ahcommand.h"

#include "xmpp_xdata.h"
#include "iris/xmpp_xdata.h"

#include <QDomDocument>
#include <QDomElement>
Expand Down
2 changes: 1 addition & 1 deletion src/ahcommand.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#ifndef AHCOMMAND_H
#define AHCOMMAND_H

#include "xmpp_xdata.h"
#include "iris/xmpp_xdata.h"

#include <QSharedDataPointer>
#include <QString>
Expand Down
4 changes: 2 additions & 2 deletions src/ahcommanddlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
#include "ahcformdlg.h"
#include "busywidget.h"
#include "psiaccount.h"
#include "xmpp_client.h"
#include "xmpp_xmlcommon.h"
#include "iris/xmpp_client.h"
#include "iris/xmpp_xmlcommon.h"

#include <QComboBox>
#include <QLabel>
Expand Down
2 changes: 1 addition & 1 deletion src/ahcommanddlg.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#define AHCOMMANDDLG_H

#include "ui_ahcommanddlg.h"
#include "xmpp_jid.h"
#include "iris/xmpp_jid.h"

#include <QDialog>
#include <QList>
Expand Down
8 changes: 4 additions & 4 deletions src/ahcservermanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
#include "ahcommandserver.h"
#include "psiaccount.h"
#include "xdata_widget.h"
#include "xmpp_client.h"
#include "xmpp_tasks.h"
#include "xmpp_xdata.h"
#include "xmpp_xmlcommon.h"
#include "iris/xmpp_client.h"
#include "iris/xmpp_tasks.h"
#include "iris/xmpp_xdata.h"
#include "iris/xmpp_xmlcommon.h"

#include <QComboBox>
#include <QLayout>
Expand Down
15 changes: 7 additions & 8 deletions src/avatars.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,15 @@
#include "iconset.h"
#include "pepmanager.h"
#include "pixmaputil.h"
#include "profiles.h"
#include "psiaccount.h"
#include "vcardfactory.h"
#include "xmpp_client.h"
#include "xmpp_hash.h"
#include "xmpp_pubsubitem.h"
#include "xmpp_resource.h"
#include "xmpp_tasks.h"
#include "xmpp_vcard.h"
#include "xmpp_xmlcommon.h"
#include "iris/xmpp_client.h"
#include "iris/xmpp_hash.h"
#include "iris/xmpp_pubsubitem.h"
#include "iris/xmpp_resource.h"
#include "iris/xmpp_tasks.h"
#include "iris/xmpp_vcard.h"
#include "iris/xmpp_xmlcommon.h"

#include <QBuffer>
#include <QDateTime>
Expand Down
2 changes: 1 addition & 1 deletion src/avcall/avcall.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#ifndef AVCALL_H
#define AVCALL_H

#include "xmpp.h"
#include "iris/xmpp.h"

#include <QObject>

Expand Down
1 change: 0 additions & 1 deletion src/avcall/jinglertp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

#include "jinglertp.h"

#include "iceagent.h"
#include "iris/iceagent.h"
#include "iris/netnames.h"
#include "iris/turnclient.h"
Expand Down
2 changes: 1 addition & 1 deletion src/bookmarkmanagedlg.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#define BOOKMARKMANAGEDLG_H

#include "ui_bookmarkmanage.h"
#include "xmpp_jid.h"
#include "iris/xmpp_jid.h"

#include <QDialog>

Expand Down
6 changes: 3 additions & 3 deletions src/bookmarkmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@

#include "psiaccount.h"
#include "psioptions.h"
#include "xmpp_client.h"
#include "xmpp_task.h"
#include "xmpp_xmlcommon.h"
#include "iris/xmpp_client.h"
#include "iris/xmpp_task.h"
#include "iris/xmpp_xmlcommon.h"

// -----------------------------------------------------------------------------

Expand Down
6 changes: 3 additions & 3 deletions src/captchadlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
#include "psiaccount.h"
#include "ui_captchadlg.h"
#include "xdata_widget.h"
#include "xmpp_captcha.h"
#include "xmpp_client.h"
#include "xmpp_tasks.h"
#include "iris/xmpp_captcha.h"
#include "iris/xmpp_client.h"
#include "iris/xmpp_tasks.h"

using namespace XMPP;

Expand Down
Loading

0 comments on commit bebb649

Please sign in to comment.