A versatile graphical DSL and army knife to make and modify GUIs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

376 lines
9.4 KiB

########################################################################
# Copyright (C) 2022 Francesco Palumbo <phranz@subfc.net>, Naples (Italy)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
########################################################################
AUTOMAKE_OPTIONS = subdir-objects
bin_PROGRAMS = guish
bin_SCRIPTS = helper/gui.sh
dist_doc_DATA = README.md COPYING changelog
examplesdir = $(docdir)/examples
syntaxesdir = $(docdir)/syntaxes
AM_CPPFLAGS = -DSYNDIR='"$(syntaxesdir)"'
COMPILE = \
$(CC) $(DEFS) $(DEFAULT_INCLUDES) \
$(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
$(AM_CFLAGS) $(CFLAGS) $(LIBS)
dist_examples_DATA = \
examples/autocolor_english_like.gsh \
examples/guish_compose.gsh \
examples/guish_compose.sh \
examples/icon.gsh \
examples/minibrowser.sh \
examples/minibrowser_guishonly.gsh \
examples/minieditor.sh \
examples/multiline_handling.sh \
examples/multiterm.sh \
examples/multiterm_restore_external.sh \
examples/run_button_with_webview.sh \
examples/splitterm.sh \
examples/splitterm_with_control.sh
dist_syntaxes_DATA = \
syntaxes/it.syntax \
syntaxes/eso.syntax
man_MANS = man/guish.1
if QT_BACKEND
guish_qtheaders = src/qt/guishwidgetqt.h
guishwidgetqt_mocs = src/qt/guishwidgetqt_moc.cpp
widgets_qtheaders =
widgets_qtsources =
widgets_mocs =
if ENABLE_BUTTON
widgets_qtheaders += \
src/qt/widgets/button.h \
src/qt/widgets/buttonwidget.h
widgets_qtsources += \
src/qt/widgets/button.cpp \
src/qt/widgets/buttonwidget.cpp
widgets_mocs += \
src/qt/widgets/button_moc.cpp \
src/qt/widgets/buttonwidget_moc.cpp
endif
if ENABLE_CHECKBOX
widgets_qtheaders += \
src/qt/widgets/checkbox.h \
src/qt/widgets/checkboxwidget.h
widgets_qtsources += \
src/qt/widgets/checkbox.cpp \
src/qt/widgets/checkboxwidget.cpp
widgets_mocs += \
src/qt/widgets/checkbox_moc.cpp \
src/qt/widgets/checkboxwidget_moc.cpp
endif
if ENABLE_TEXTBLOCK
widgets_qtheaders += \
src/qt/widgets/textblock.h \
src/qt/widgets/textblockwidget.h
widgets_qtsources += \
src/qt/widgets/textblock.cpp \
src/qt/widgets/textblockwidget.cpp
widgets_mocs += \
src/qt/widgets/textblock_moc.cpp \
src/qt/widgets/textblockwidget_moc.cpp
endif
if ENABLE_EDITOR
widgets_qtheaders += \
src/qt/widgets/editor.h \
src/qt/widgets/editorwidget.h
widgets_qtsources += \
src/qt/widgets/editor.cpp \
src/qt/widgets/editorwidget.cpp
widgets_mocs += \
src/qt/widgets/editor_moc.cpp \
src/qt/widgets/editorwidget_moc.cpp
endif
if ENABLE_GRIP
widgets_qtheaders += \
src/qt/widgets/grip.h \
src/qt/widgets/gripwidget.h
widgets_qtsources += \
src/qt/widgets/grip.cpp \
src/qt/widgets/gripwidget.cpp
widgets_mocs += \
src/qt/widgets/grip_moc.cpp \
src/qt/widgets/gripwidget_moc.cpp
endif
if ENABLE_ICON
widgets_qtheaders += \
src/qt/widgets/icon.h \
src/qt/widgets/iconwidget.h
widgets_qtsources += \
src/qt/widgets/icon.cpp \
src/qt/widgets/iconwidget.cpp
widgets_mocs += \
src/qt/widgets/icon_moc.cpp \
src/qt/widgets/iconwidget_moc.cpp
endif
if ENABLE_INPUT
widgets_qtheaders += \
src/qt/widgets/input.h \
src/qt/widgets/inputwidget.h
widgets_qtsources += \
src/qt/widgets/input.cpp \
src/qt/widgets/inputwidget.cpp
widgets_mocs += \
src/qt/widgets/input_moc.cpp \
src/qt/widgets/inputwidget_moc.cpp
endif
if ENABLE_LABEL
widgets_qtheaders += \
src/qt/widgets/label.h \
src/qt/widgets/labelwidget.h
widgets_qtsources += \
src/qt/widgets/label.cpp \
src/qt/widgets/labelwidget.cpp
widgets_mocs += \
src/qt/widgets/label_moc.cpp \
src/qt/widgets/labelwidget_moc.cpp
endif
if ENABLE_LISTBOX
widgets_qtheaders += \
src/qt/widgets/listbox.h \
src/qt/widgets/listboxwidget.h
widgets_qtsources += \
src/qt/widgets/listbox.cpp \
src/qt/widgets/listboxwidget.cpp
widgets_mocs += \
src/qt/widgets/listbox_moc.cpp \
src/qt/widgets/listboxwidget_moc.cpp
endif
if ENABLE_MENU
widgets_qtheaders += \
src/qt/widgets/menu.h
widgets_qtsources += \
src/qt/widgets/menu.cpp
widgets_mocs += \
src/qt/widgets/menu_moc.cpp
endif
if ENABLE_MENUBAR
widgets_qtheaders += \
src/qt/widgets/menubar.h \
src/qt/widgets/menubarwidget.h
widgets_qtsources += \
src/qt/widgets/menubar.cpp \
src/qt/widgets/menubarwidget.cpp
widgets_mocs += \
src/qt/widgets/menubar_moc.cpp \
src/qt/widgets/menubarwidget_moc.cpp
endif
if ENABLE_PAGE
widgets_qtheaders += \
src/qt/widgets/page.h \
src/qt/widgets/pagewidget.h
widgets_qtsources += \
src/qt/widgets/page.cpp \
src/qt/widgets/pagewidget.cpp
widgets_mocs += \
src/qt/widgets/page_moc.cpp \
src/qt/widgets/pagewidget_moc.cpp
endif
if ENABLE_PROGRESS
widgets_qtheaders += \
src/qt/widgets/progress.h \
src/qt/widgets/progresswidget.h
widgets_qtsources += \
src/qt/widgets/progress.cpp \
src/qt/widgets/progresswidget.cpp
widgets_mocs += \
src/qt/widgets/progress_moc.cpp \
src/qt/widgets/progresswidget_moc.cpp
endif
if ENABLE_SLIDER
widgets_qtheaders += \
src/qt/widgets/slider.h \
src/qt/widgets/sliderwidget.h
widgets_qtsources += \
src/qt/widgets/slider.cpp \
src/qt/widgets/sliderwidget.cpp
widgets_mocs += \
src/qt/widgets/slider_moc.cpp \
src/qt/widgets/sliderwidget_moc.cpp
endif
if ENABLE_SPINBOX
widgets_qtheaders += \
src/qt/widgets/spinbox.h \
src/qt/widgets/spinboxdoublewidget.h \
src/qt/widgets/spinboxwidget.h
widgets_qtsources += \
src/qt/widgets/spinbox.cpp \
src/qt/widgets/spinboxdoublewidget.cpp \
src/qt/widgets/spinboxwidget.cpp
widgets_mocs += \
src/qt/widgets/spinbox_moc.cpp \
src/qt/widgets/spinboxdoublewidget_moc.cpp \
src/qt/widgets/spinboxwidget_moc.cpp
endif
if ENABLE_SPLITTER
widgets_qtheaders += \
src/qt/widgets/splitter.h \
src/qt/widgets/splitterwidget.h
widgets_qtsources += \
src/qt/widgets/splitter.cpp \
src/qt/widgets/splitterwidget.cpp
widgets_mocs += \
src/qt/widgets/splitter_moc.cpp \
src/qt/widgets/splitterwidget_moc.cpp
endif
if ENABLE_TABPAGE
widgets_qtheaders += \
src/qt/widgets/tabpage.h \
src/qt/widgets/tabpagewidget.h
widgets_qtsources += \
src/qt/widgets/tabpage.cpp \
src/qt/widgets/tabpagewidget.cpp
widgets_mocs += \
src/qt/widgets/tabpage_moc.cpp \
src/qt/widgets/tabpagewidget_moc.cpp
endif
if ENABLE_TRAYICON
widgets_qtheaders += \
src/qt/widgets/trayicon.h
widgets_qtsources += \
src/qt/widgets/trayicon.cpp
widgets_mocs += \
src/qt/widgets/trayicon_moc.cpp
endif
if ENABLE_TREE
widgets_qtheaders += \
src/qt/widgets/tree.h \
src/qt/widgets/treewidget.h
widgets_qtsources += \
src/qt/widgets/tree.cpp \
src/qt/widgets/treewidget.cpp
widgets_mocs += \
src/qt/widgets/tree_moc.cpp \
src/qt/widgets/treewidget_moc.cpp
endif
if ENABLE_WEBKIT
widgets_qtheaders += \
src/qt/widgets/webpage.h \
src/qt/widgets/webpagewidget.h
widgets_qtsources += \
src/qt/widgets/webpage.cpp \
src/qt/widgets/webpagewidget.cpp
widgets_mocs += \
src/qt/widgets/webpage_moc.cpp \
src/qt/widgets/webpagewidget_moc.cpp
endif
guish_SOURCES = \
src/qt/application.h \
src/qt/application.cpp \
src/qt/widgets.h \
src/qt/guishwidgetqt.h \
src/qt/guishwidgetqt.cpp \
$(guishwidgetqt_mocs) \
$(widgets_qtsources)
guish_SOURCES += \
$(guishwidgetqt_qtheaders) \
$(widgets_qtheaders) \
$(widgets_mocs) \
src/evaluator.h \
src/evaluator.cpp \
src/atoms.h \
src/phrase.h \
src/token.h \
src/token.cpp \
src/communicator.h \
src/config.h \
src/eventloop.h \
src/geomdata.h \
src/guish.h \
src/guishwidget.h \
src/head.h \
src/messages.h \
src/options.h \
src/parser.h \
src/sourcedriver.h \
src/sources.h \
src/syntax.h \
src/utils.h \
src/main.cpp \
src/guish.cpp \
src/communicator.cpp \
src/eventloop.cpp \
src/guishwidget.cpp \
src/messages.cpp \
src/options.cpp \
src/parser.cpp \
src/sourcedriver.cpp \
src/syntax.cpp \
src/utils.cpp
.h_moc.cpp:
$(MOC) -o $@ $(MOCFLAGS) $<
clean-local:
rm -f src/guish
rm -f src/*_moc.cpp
rm -f src/qt/*_moc.cpp
rm -f src/qt/widgets/*_moc.cpp
SUFFIXES = .h _moc.cpp
else
guish_SOURCES = \
src/atoms.h \
src/phrase.h \
src/token.h \
src/token.cpp \
src/communicator.h \
src/config.h \
src/evaluator.h \
src/eventloop.h \
src/geomdata.h \
src/guish.h \
src/guishwidget.h \
src/head.h \
src/messages.h \
src/options.h \
src/parser.h \
src/sourcedriver.h \
src/sources.h \
src/syntax.h \
src/utils.h \
src/main.cpp \
src/guish.cpp \
src/communicator.cpp \
src/evaluator.cpp \
src/eventloop.cpp \
src/guishwidget.cpp \
src/messages.cpp \
src/options.cpp \
src/parser.cpp \
src/sourcedriver.cpp \
src/syntax.cpp \
src/utils.cpp
clean-local:
rm -f src/guish
endif