RNV : Build T-Shape plugin without GUI

This commit is contained in:
Maintenance team (INV) 2016-01-14 16:13:07 +03:00
parent d77224c91c
commit de5a77605c
2 changed files with 33 additions and 21 deletions

View File

@ -19,11 +19,13 @@
ADD_SUBDIRECTORY(t_shape) ADD_SUBDIRECTORY(t_shape)
# scripts / static
SET(plugin_SCRIPTS
geom_plugins.py
)
# --- rules --- IF(SALOME_BUILD_GUI)
# scripts / static
SET(plugin_SCRIPTS
geom_plugins.py
)
SALOME_INSTALL_SCRIPTS("${plugin_SCRIPTS}" ${SALOME_GEOM_INSTALL_PLUGINS}) # --- rules ---
SALOME_INSTALL_SCRIPTS("${plugin_SCRIPTS}" ${SALOME_GEOM_INSTALL_PLUGINS})
ENDIF()

View File

@ -16,30 +16,40 @@
# #
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
# #
IF(SALOME_BUILD_GUI)
INCLUDE(UsePyQt4) INCLUDE(UsePyQt4)
ENDIF()
# --- scripts --- # --- scripts ---
# scripts / static # base scripts
SET(plugin_SCRIPTS SET(base_SCRIPTS
__init__.py __init__.py
t_shape_builder.py t_shape_builder.py
t_shape_dialog.py
t_shape_dialog.ui
t_shape_progress.py
) )
# uic files / to be processed by pyuic IF(SALOME_BUILD_GUI)
SET(_pyuic_files # gui scripts
t_shape_dialog.ui SET(gui_SCRIPTS
) t_shape_dialog.py
t_shape_dialog.ui
t_shape_progress.py
)
# scripts / pyuic wrappings # uic files / to be processed by pyuic
PYQT4_WRAP_UIC(_pyuic_SCRIPTS ${_pyuic_files}) SET(_pyuic_files
t_shape_dialog.ui
)
# scripts / pyuic wrappings
PYQT4_WRAP_UIC(_pyuic_SCRIPTS ${_pyuic_files})
ENDIF()
# --- rules --- # --- rules ---
SALOME_INSTALL_SCRIPTS("${plugin_SCRIPTS}" ${SALOME_INSTALL_PYTHON}/salome/geom/t_shape) SALOME_INSTALL_SCRIPTS("${base_SCRIPTS}" ${SALOME_INSTALL_PYTHON}/salome/geom/t_shape)
SALOME_INSTALL_SCRIPTS("${_pyuic_SCRIPTS}" ${SALOME_INSTALL_PYTHON}/salome/geom/t_shape)
IF(SALOME_BUILD_GUI)
SALOME_INSTALL_SCRIPTS("${gui_SCRIPTS}" ${SALOME_INSTALL_PYTHON}/salome/geom/t_shape)
SALOME_INSTALL_SCRIPTS("${_pyuic_SCRIPTS}" ${SALOME_INSTALL_PYTHON}/salome/geom/t_shape)
ENDIF()