AM_CONDITIONAL(ENABLE_QXGRAPHVIEWER, [test "$DISABLE_QXGRAPHVIEWER" = no])
AM_CONDITIONAL(ENABLE_TESTRECORDER, [test "$ENABLE_TESTRECORDER" = yes])
+if test "$DISABLE_PYCONSOLE" = "no" ; then
+ AC_DEFINE(SUIT_ENABLE_PYTHON)
+fi
+
+
echo
echo ---------------------------------------------
echo generating Makefiles and configure files
lib_LTLIBRARIES = libSUITApp.la
salomeinclude_HEADERS = \
- SUITApp_Application.h \
- SUITApp_init_python.hxx
+ SUITApp_Application.h
+if ENABLE_PYCONSOLE
+ salomeinclude_HEADERS += SUITApp_init_python.hxx
+endif
dist_libSUITApp_la_SOURCES = \
SUITApp.cxx \
- SUITApp_Application.cxx \
- SUITApp_init_python.cxx
+ SUITApp_Application.cxx
+
+if ENABLE_PYCONSOLE
+ dist_libSUITApp_la_SOURCES += SUITApp_init_python.cxx
+endif
MOC_FILES = \
SUITApp_Application_moc.cxx
if ENABLE_PYCONSOLE
libSUITApp_la_LDFLAGS += -Xlinker -export-dynamic $(PYTHON_LIBS)
-AM_CPPFLAGS+=-DSUIT_ENABLE_PYTHON
endif
# Executable
// or make sure Python is initialized in main() in any case
// Otherwise, application based on light SALOME and using Python
// are unlikely to work properly.
-#define SUIT_ENABLE_PYTHON
+//#define SUIT_ENABLE_PYTHON
#include <Python.h>
#endif