Skip to content

Commit

Permalink
fix building analysis on iOS (#45283)
Browse files Browse the repository at this point in the history
QProcess is not available on iOS
  • Loading branch information
3nids committed Sep 28, 2021
1 parent 33c5548 commit 0f29ec3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
5 changes: 5 additions & 0 deletions src/analysis/processing/qgsalgorithmgpsbabeltools.cpp
Expand Up @@ -15,6 +15,10 @@
* *
***************************************************************************/

#include <QtGlobal>
#if QT_CONFIG(process)


#include "qgsalgorithmgpsbabeltools.h"
#include "qgsvectorlayer.h"
#include "qgsrunprocess.h"
Expand Down Expand Up @@ -873,3 +877,4 @@ QVariantMap QgsUploadGpsDataAlgorithm::processAlgorithm( const QVariantMap &para
}

///@endcond
#endif // process
7 changes: 5 additions & 2 deletions src/analysis/processing/qgsalgorithmgpsbabeltools.h
Expand Up @@ -20,6 +20,10 @@

#define SIP_NO_FILE

#include <QtGlobal>
#if QT_CONFIG(process)


#include "qgis_sip.h"
#include "qgis_analysis.h"
#include "qgsprocessingalgorithm.h"
Expand Down Expand Up @@ -174,10 +178,9 @@ class ANALYSIS_EXPORT QgsUploadGpsDataAlgorithm : public QgsProcessingAlgorithm

};



///@endcond PRIVATE

#endif // process
#endif // QGSALGORITHMGPSBABELTOOLS_H


4 changes: 4 additions & 0 deletions src/analysis/processing/qgsnativealgorithms.cpp
Expand Up @@ -87,7 +87,9 @@
#include "qgsalgorithmforcerhr.h"
#include "qgsalgorithmfuzzifyraster.h"
#include "qgsalgorithmgeometrybyexpression.h"
#if QT_CONFIG(process)
#include "qgsalgorithmgpsbabeltools.h"
#endif
#include "qgsalgorithmgrid.h"
#include "qgsalgorithmhillshade.h"
#include "qgsalgorithmjoinbyattribute.h"
Expand Down Expand Up @@ -338,7 +340,9 @@ void QgsNativeAlgorithms::loadAlgorithms()
addAlgorithm( new QgsFuzzifyRasterGaussianMembershipAlgorithm() );
addAlgorithm( new QgsFuzzifyRasterNearMembershipAlgorithm() );
addAlgorithm( new QgsGeometryByExpressionAlgorithm() );
#if QT_CONFIG(process)
addAlgorithm( new QgsConvertGpxFeatureTypeAlgorithm() );
#endif
addAlgorithm( new QgsConvertGpsDataAlgorithm() );
addAlgorithm( new QgsDownloadGpsDataAlgorithm() );
addAlgorithm( new QgsUploadGpsDataAlgorithm() );
Expand Down

0 comments on commit 0f29ec3

Please sign in to comment.