]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
SUIT_ENABLE_PYTHON should be defined only if Python Console is used
authorasl <asl@opencascade.com>
Thu, 4 Mar 2010 09:20:04 +0000 (09:20 +0000)
committerasl <asl@opencascade.com>
Thu, 4 Mar 2010 09:20:04 +0000 (09:20 +0000)
configure.ac
src/SUITApp/Makefile.am
src/SUITApp/SUITApp.cxx

index a666c53d51f4b970e49c125d57daca484a87ec17..2e7bc0c5b0cd50edcdf9ee30b7a59cb040e92975 100644 (file)
@@ -573,6 +573,11 @@ AM_CONDITIONAL(ENABLE_SALOMEOBJECT, [test "$DISABLE_SALOMEOBJECT" = no])
 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
index 5c1f44e3635396636cd803b53693ab36124c66a9..90658bad8b13de7001a4f424bea5f35105c6a779 100644 (file)
@@ -29,13 +29,18 @@ include $(top_srcdir)/adm_local/unix/make_common_starter.am
 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
@@ -62,7 +67,6 @@ libSUITApp_la_LIBADD   = ../Qtx/libqtx.la ../SUIT/libsuit.la ../Style/libSalomeS
 
 if ENABLE_PYCONSOLE
 libSUITApp_la_LDFLAGS += -Xlinker -export-dynamic $(PYTHON_LIBS)
-AM_CPPFLAGS+=-DSUIT_ENABLE_PYTHON
 endif
 
 # Executable
index 604eff9c55835ed7f13aa6f17d65d4bed7ace9e3..4fcc6dc354687b72b865505a912c0022e5092272 100644 (file)
@@ -32,7 +32,7 @@
 // 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