Skip to content

Commit

Permalink
sip bindings: exclude QgsCompositionChecker when not building tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed May 16, 2017
1 parent 70da239 commit 2f70b42
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ INCLUDE_DIRECTORIES(
${CMAKE_BINARY_DIR}/src/analysis
)

IF(NOT ENABLE_TESTS)
SET(SIP_DISABLE_FEATURES ${SIP_DISABLE_FEATURES} TESTS)
ENDIF(NOT ENABLE_TESTS)

IF(NOT ANDROID)
SET(SIP_DISABLE_FEATURES ${SIP_DISABLE_FEATURES} ANDROID)
ENDIF(NOT ANDROID)
Expand Down
5 changes: 5 additions & 0 deletions python/core/qgsmultirenderchecker.sip
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ class QgsMultiRenderChecker

};

%Feature TESTS
%If (TESTS)


class QgsCompositionChecker : QgsMultiRenderChecker
{
Expand All @@ -145,6 +148,8 @@ class QgsCompositionChecker : QgsMultiRenderChecker

};

%End


/************************************************************************
* This file has been generated automatically from *
Expand Down
5 changes: 5 additions & 0 deletions src/core/qgsmultirenderchecker.h
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ class CORE_EXPORT QgsMultiRenderChecker
};

#ifdef ENABLE_TESTS
SIP_FEATURE( TESTS )
SIP_IF_FEATURE( TESTS )

///@cond PRIVATE

/** \ingroup core
Expand All @@ -156,6 +159,8 @@ class CORE_EXPORT QgsCompositionChecker : public QgsMultiRenderChecker
int mDotsPerMeter;
};
///@endcond

SIP_END
#endif


Expand Down

0 comments on commit 2f70b42

Please sign in to comment.