#
# Check existence of Test recorder sources and libraries.
-# Set DISABLE_TESTRECORDER to yes|no
+# Set ENABLE_TESTRECORDER to yes|no
#
# Author : Margarita KARPUNINA (OCN, 2008)
#
TESTRECORDER_INCLUDES=""
TESTRECORDER_LIBS=""
- DISABLE_TESTRECORDER="yes"
+ ENABLE_TESTRECORDER="no"
TestRecorder_ok=no
AC_MSG_WARN(TestRecorder is not found or not properly installed)
else
AC_MSG_RESULT(for TestRecorder: yes)
- DISABLE_TESTRECORDER="no"
+ ENABLE_TESTRECORDER="yes"
fi
AC_SUBST(TESTRECORDER_INCLUDES)
AM_CONDITIONAL(ENABLE_VTKVIEWER, [test "$DISABLE_VTKVIEWER" = no])
AM_CONDITIONAL(ENABLE_SALOMEOBJECT, [test "$DISABLE_SALOMEOBJECT" = no])
AM_CONDITIONAL(ENABLE_QXGRAPHVIEWER, [test "$DISABLE_QXGRAPHVIEWER" = no])
-AM_CONDITIONAL(ENABLE_TESTRECORDER, [test "$DISABLE_TESTRECORDER" = no])
+AM_CONDITIONAL(ENABLE_TESTRECORDER, [test "$ENABLE_TESTRECORDER" = yes])
echo
echo ---------------------------------------------
libsuit_la_CPPFLAGS = $(QT_INCLUDES) -I$(srcdir)/../Qtx -I$(srcdir)/../ObjBrowser
if ENABLE_TESTRECORDER
- libsuit_la_CPPFLAGS+= $(TESTRECORDER_INCLUDES)
-else !ENABLE_TESTRECORDER
- libsuit_la_CPPFLAGS+= -DDISABLE_TESTRECORDER
+ libsuit_la_CPPFLAGS+= -DENABLE_TESTRECORDER $(TESTRECORDER_INCLUDES)
endif
libsuit_la_LDFLAGS = $(QT_MT_LIBS)
#include "SUIT_MessageBox.h"
-#ifndef DISABLE_TESTRECORDER
+#ifdef ENABLE_TESTRECORDER
#include <TestApplication.h>
#endif
*/
bool SUIT_ExceptionHandler::internalHandle( QObject* o, QEvent* e )
{
-#ifndef DISABLE_TESTRECORDER
+#ifdef ENABLE_TESTRECORDER
TestApplication* aTApp = qobject_cast<TestApplication*>(qApp);
return aTApp ? aTApp->TestApplication::notify( o, e ) : false;
#else
-I$(srcdir)/../SUIT -I$(srcdir)/../Qtx -I$(srcdir)/../Style
if ENABLE_TESTRECORDER
- libSUITApp_la_CPPFLAGS+= $(TESTRECORDER_INCLUDES)
-else !ENABLE_TESTRECORDER
- libSUITApp_la_CPPFLAGS+= -DDISABLE_TESTRECORDER
- MOC_FLAGS = -DDISABLE_TESTRECORDER
+ libSUITApp_la_CPPFLAGS+= -DENABLE_TESTRECORDER $(TESTRECORDER_INCLUDES)
+ MOC_FLAGS = -DENABLE_TESTRECORDER
endif
libSUITApp_la_LDFLAGS = $(QT_MT_LIBS)
-I$(srcdir)/../SUIT -I$(srcdir)/../Qtx -I$(srcdir)/../Style
if ENABLE_TESTRECORDER
- SUITApp_CPPFLAGS+= $(TESTRECORDER_INCLUDES)
-else !ENABLE_TESTRECORDER
- SUITApp_CPPFLAGS+= -DDISABLE_TESTRECORDER
+ SUITApp_CPPFLAGS+= -DENABLE_TESTRECORDER $(TESTRECORDER_INCLUDES)
endif
SUITApp_LDADD = libSUITApp.la ../Qtx/libqtx.la ../SUIT/libsuit.la ../Style/libSalomeStyle.la
Constructor
*/
SUITApp_Application::SUITApp_Application( int& argc, char** argv, SUIT_ExceptionHandler* hand )
-#ifndef DISABLE_TESTRECORDER
+#ifdef ENABLE_TESTRECORDER
: TestApplication( argc, argv ),
#else
: QApplication( argc, argv ),
Constructor
*/
SUITApp_Application::SUITApp_Application( int& argc, char** argv, Type type, SUIT_ExceptionHandler* hand )
-#ifndef DISABLE_TESTRECORDER
+#ifdef ENABLE_TESTRECORDER
: TestApplication( argc, argv ),
#else
: QApplication( argc, argv, type ),
bool SUITApp_Application::notify( QObject* receiver, QEvent* e )
{
return myExceptHandler ? myExceptHandler->handle( receiver, e ) :
-#ifndef DISABLE_TESTRECORDER
+#ifdef ENABLE_TESTRECORDER
TestApplication::notify( receiver, e );
#else
QApplication::notify( receiver, e );
#ifndef SUITAPP_APPLICATION_H
#define SUITAPP_APPLICATION_H
-#ifndef DISABLE_TESTRECORDER
+#ifdef ENABLE_TESTRECORDER
#include <TestApplication.h>
#else
#include <QApplication>
class SUIT_ExceptionHandler;
-#ifndef DISABLE_TESTRECORDER
+#ifdef ENABLE_TESTRECORDER
class SUITApp_Application : public TestApplication
#else
class SUITApp_Application : public QApplication
-I$(srcdir)/../Style @LIBXML_INCLUDES@
if ENABLE_TESTRECORDER
- libSalomeSession_la_CPPFLAGS+= $(TESTRECORDER_INCLUDES)
-else !ENABLE_TESTRECORDER
- libSalomeSession_la_CPPFLAGS+= -DDISABLE_TESTRECORDER
+ libSalomeSession_la_CPPFLAGS+= -DENABLE_TESTRECORDER $(TESTRECORDER_INCLUDES)
endif
libSalomeSession_la_LDFLAGS = $(QT_MT_LIBS) $(KERNEL_LDFLAGS) -lSalomeNS \
#include <ConnectionManager_i.hxx>
#include <SALOME_LifeCycleCORBA.hxx>
-#ifndef DISABLE_TESTRECORDER
+#ifdef ENABLE_TESTRECORDER
#include <TestApplication.h>
#endif
}
};
-#ifndef DISABLE_TESTRECORDER
+#ifdef ENABLE_TESTRECORDER
class SALOME_QApplication : public TestApplication
#else
class SALOME_QApplication : public QApplication
#endif
{
public:
-#ifndef DISABLE_TESTRECORDER
+#ifdef ENABLE_TESTRECORDER
SALOME_QApplication( int& argc, char** argv ) : TestApplication( argc, argv ), myHandler ( 0 ) {}
#else
SALOME_QApplication( int& argc, char** argv ) : QApplication( argc, argv ), myHandler ( 0 ) {}
}
#endif
-#ifndef DISABLE_TESTRECORDER
+#ifdef ENABLE_TESTRECORDER
return myHandler ? myHandler->handle( receiver, e ) :
TestApplication::notify( receiver, e );
#else