1## Process this file with automake to produce Makefile.in
2
3#-------------------------------------------------------------------------------
4
5# This file is part of Code_Saturne, a general-purpose CFD tool.
6#
7# Copyright (C) 1998-2021 EDF S.A.
8#
9# This program is free software; you can redistribute it and/or modify it under
10# the terms of the GNU General Public License as published by the Free Software
11# Foundation; either version 2 of the License, or (at your option) any later
12# version.
13#
14# This program is distributed in the hope that it will be useful, but WITHOUT
15# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16# FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
17# details.
18#
19# You should have received a copy of the GNU General Public License along with
20# this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
21# Street, Fifth Floor, Boston, MA 02110-1301, USA.
22
23#-------------------------------------------------------------------------------
24
25if HAVE_QT5
26  PYUIC=$(PYUIC5)
27else
28  PYUIC=$(PYUIC4)
29endif
30
31if HAVE_QT5
32  PYRCC = $(PYRCC5)
33else
34  PYRCC = $(PYRCC4) -py$(PYRCC4VER)
35endif
36
37# Python files
38
39PYFILES = \
40BrowserView.py \
41CommandMgrDialogView.py \
42CompletionTextEditor.py \
43MainView.py \
44QCouplingEditorView.py \
45QFileEditor.py \
46QtCase.py \
47QtPage.py \
48Toolbox.py
49
50if HAVE_QT5
51  PYFILES += qt5/QtCore.py qt5/QtGui.py qt5/QtWidgets.py
52else
53  PYFILES += qt4/QtCore.py qt4/QtGui.py qt4/QtWidgets.py
54endif
55
56# PyQt User Interface files
57
58UIFILES = \
59BrowserForm.ui \
60CommandMgrLinesDisplayedDialogForm.ui \
61CommandMgrDialogForm.ui \
62MainForm.ui \
63NewCaseDialogForm.ui
64
65# PyQt Resources files
66
67QRCFILES = \
68resource_base.qrc
69
70# Distribute icons directory, resources files and user interface files
71
72EXTRA_DIST = \
73icons \
74$(UIFILES) \
75$(QRCFILES)
76
77# Generated files
78
79FORMS = $(UIFILES:.ui=.py)
80RESOURCES = $(QRCFILES:.qrc=_rc.py)
81
82# Specific rules
83
84PYRCC4VER = `$(PYTHON) --version 2>&1 | cut -c 8`
85
86SUFFIXES = .ui .qrc _rc.py
87
88.ui.py:
89	$(PYUIC) -o $@ $<
90
91.qrc_rc.py:
92	$(PYRCC) -o $@ $<
93
94all-local: $(FORMS) $(RESOURCES)
95
96clean-local:
97	-rm -f $(FORMS) $(RESOURCES)
98
99# Install Python library
100
101basedir = $(pkgpythondir)/Base
102
103dist_base_PYTHON = \
104__init__.py \
105$(PYFILES) \
106icons/22x22/logo_salome_cfd.png
107
108nodist_base_PYTHON = \
109$(FORMS) \
110$(RESOURCES)
111