echo
CHECK_QT
- AC_PATH_PROG(PYUIC, pyuic4)
- AC_SUBST(PYUIC)
- AC_PATH_PROG(PYRCC, pyrcc4)
- AC_SUBST(PYRCC)
+
+ echo
+ echo ---------------------------------------------
+ echo testing sip
+ echo ---------------------------------------------
+ echo
+
+ CHECK_SIP
+
+ echo
+ echo ---------------------------------------------
+ echo testing pyqt
+ echo ---------------------------------------------
+ echo
+
+ CHECK_PYQT
echo
echo ---------------------------------------------
UIPY_FILES = MeshCutDialog.py
-BUILT_SOURCES = $(UIPY_FILES)
-bin_SCRIPTS = $(UIPY_FILES) meshcut_plugin.py
-clean-local:
- rm -f $(UIPY_FILES)
-EXTRA_DIST += MeshCutDialog.ui meshcut_plugin.py
+
+if SMESH_ENABLE_GUI
+ dist_salomescript_SCRIPTS = meshcut_plugin.py
+ nodist_salomescript_SCRIPTS = $(UIPY_FILES)
+endif
+
+CLEANFILES = $(UIPY_FILES)
+
+EXTRA_DIST += $(UIPY_FILES:%.py=%.ui)
%.py : %.ui
- pyuic4 $< -o $@
+ $(PYUIC) $< -o $@
include $(top_srcdir)/adm_local/unix/make_common_starter.am
-SUBDIRS = gui plugin
+SUBDIRS =
+
+if SMESH_ENABLE_GUI
+SUBDIRS += gui plugin
+endif
+
+DIST_SUBDIRS = gui plugin
spadderpydir=$(smeshpypkgdir)/spadder
spadderpy_PYTHON = \
concrete.png \
steelbar.png
-PYUIC = @PYUIC@
%_ui.py:%.ui
$(PYUIC) -x $< -o $@
-PYRCC = @PYRCC@
%_rc.py:%.qrc
$(PYRCC) $< -o $@