Skip to content

Commit 2f70b42

Browse files
committedMay 16, 2017
sip bindings: exclude QgsCompositionChecker when not building tests
1 parent 70da239 commit 2f70b42

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed
 

‎python/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,10 @@ INCLUDE_DIRECTORIES(
132132
${CMAKE_BINARY_DIR}/src/analysis
133133
)
134134

135+
IF(NOT ENABLE_TESTS)
136+
SET(SIP_DISABLE_FEATURES ${SIP_DISABLE_FEATURES} TESTS)
137+
ENDIF(NOT ENABLE_TESTS)
138+
135139
IF(NOT ANDROID)
136140
SET(SIP_DISABLE_FEATURES ${SIP_DISABLE_FEATURES} ANDROID)
137141
ENDIF(NOT ANDROID)

‎python/core/qgsmultirenderchecker.sip

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,9 @@ class QgsMultiRenderChecker
123123

124124
};
125125

126+
%Feature TESTS
127+
%If (TESTS)
128+
126129

127130
class QgsCompositionChecker : QgsMultiRenderChecker
128131
{
@@ -145,6 +148,8 @@ class QgsCompositionChecker : QgsMultiRenderChecker
145148

146149
};
147150

151+
%End
152+
148153

149154
/************************************************************************
150155
* This file has been generated automatically from *

‎src/core/qgsmultirenderchecker.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,9 @@ class CORE_EXPORT QgsMultiRenderChecker
132132
};
133133

134134
#ifdef ENABLE_TESTS
135+
SIP_FEATURE( TESTS )
136+
SIP_IF_FEATURE( TESTS )
137+
135138
///@cond PRIVATE
136139

137140
/** \ingroup core
@@ -156,6 +159,8 @@ class CORE_EXPORT QgsCompositionChecker : public QgsMultiRenderChecker
156159
int mDotsPerMeter;
157160
};
158161
///@endcond
162+
163+
SIP_END
159164
#endif
160165

161166

0 commit comments

Comments
 (0)
Please sign in to comment.