fix building analysis on iOS (#45283)

QProcess is not available on iOS
This commit is contained in:
Denis Rouzaud 2021-09-28 08:21:42 +02:00 committed by GitHub
parent 33c5548e2c
commit 0f29ec3b24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 2 deletions

View File

@ -15,6 +15,10 @@
* * * *
***************************************************************************/ ***************************************************************************/
#include <QtGlobal>
#if QT_CONFIG(process)
#include "qgsalgorithmgpsbabeltools.h" #include "qgsalgorithmgpsbabeltools.h"
#include "qgsvectorlayer.h" #include "qgsvectorlayer.h"
#include "qgsrunprocess.h" #include "qgsrunprocess.h"
@ -873,3 +877,4 @@ QVariantMap QgsUploadGpsDataAlgorithm::processAlgorithm( const QVariantMap &para
} }
///@endcond ///@endcond
#endif // process

View File

@ -20,6 +20,10 @@
#define SIP_NO_FILE #define SIP_NO_FILE
#include <QtGlobal>
#if QT_CONFIG(process)
#include "qgis_sip.h" #include "qgis_sip.h"
#include "qgis_analysis.h" #include "qgis_analysis.h"
#include "qgsprocessingalgorithm.h" #include "qgsprocessingalgorithm.h"
@ -174,10 +178,9 @@ class ANALYSIS_EXPORT QgsUploadGpsDataAlgorithm : public QgsProcessingAlgorithm
}; };
///@endcond PRIVATE ///@endcond PRIVATE
#endif // process
#endif // QGSALGORITHMGPSBABELTOOLS_H #endif // QGSALGORITHMGPSBABELTOOLS_H

View File

@ -87,7 +87,9 @@
#include "qgsalgorithmforcerhr.h" #include "qgsalgorithmforcerhr.h"
#include "qgsalgorithmfuzzifyraster.h" #include "qgsalgorithmfuzzifyraster.h"
#include "qgsalgorithmgeometrybyexpression.h" #include "qgsalgorithmgeometrybyexpression.h"
#if QT_CONFIG(process)
#include "qgsalgorithmgpsbabeltools.h" #include "qgsalgorithmgpsbabeltools.h"
#endif
#include "qgsalgorithmgrid.h" #include "qgsalgorithmgrid.h"
#include "qgsalgorithmhillshade.h" #include "qgsalgorithmhillshade.h"
#include "qgsalgorithmjoinbyattribute.h" #include "qgsalgorithmjoinbyattribute.h"
@ -338,7 +340,9 @@ void QgsNativeAlgorithms::loadAlgorithms()
addAlgorithm( new QgsFuzzifyRasterGaussianMembershipAlgorithm() ); addAlgorithm( new QgsFuzzifyRasterGaussianMembershipAlgorithm() );
addAlgorithm( new QgsFuzzifyRasterNearMembershipAlgorithm() ); addAlgorithm( new QgsFuzzifyRasterNearMembershipAlgorithm() );
addAlgorithm( new QgsGeometryByExpressionAlgorithm() ); addAlgorithm( new QgsGeometryByExpressionAlgorithm() );
#if QT_CONFIG(process)
addAlgorithm( new QgsConvertGpxFeatureTypeAlgorithm() ); addAlgorithm( new QgsConvertGpxFeatureTypeAlgorithm() );
#endif
addAlgorithm( new QgsConvertGpsDataAlgorithm() ); addAlgorithm( new QgsConvertGpsDataAlgorithm() );
addAlgorithm( new QgsDownloadGpsDataAlgorithm() ); addAlgorithm( new QgsDownloadGpsDataAlgorithm() );
addAlgorithm( new QgsUploadGpsDataAlgorithm() ); addAlgorithm( new QgsUploadGpsDataAlgorithm() );