Implement a qmake-based build for Subsurface

This is working for me, but requires a bit more testing. To build,
run:
  qmake [options]

Where options might be:
  V=1               disable "silent" build
  LIBDCDEVEL=1      use side-by-side libdivecomputer
  INCLUDEPATH+=xxx  add -Ixxx (e.g., INCLUDEPATH+=/usr/local/marble/include)
  LIBS+=xxx         add xxx to the linker flags (e.g. LIBS+=-L/usr/local/marble/lib)
  or any other qmake option, including debug and release options

If your distribution is already using qtchooser in place of qmake, you
may need to pass an extra option to qmake to select the a
cross-build. For example:

  qmake -qt=i686-w64-mingw32-qt4

If your distribution is not yet using qtchooser, then you need to file
a bug report requesting it and you need to run the full path to qmake.

Note:
 - there are some ### left in the buildsystem

Signed-off-by: Thiago Macieira <thiago@macieira.org>
This commit is contained in:
Thiago Macieira 2013-10-06 17:52:34 -07:00
parent 2e43769108
commit 67e49d6480
5 changed files with 251 additions and 5 deletions

View file

@ -7,20 +7,20 @@ BROWSER = firefox
all: doc $(addprefix $(DOCNAME).,pdf text)
doc: $(HTMLDOC)
doc: $(OUT)$(HTMLDOC)
$(DOCNAME).text: $(DOCSOURCE)
$(OUT)$(DOCNAME).text: $(DOCSOURCE)
$(A2X) -f text $<
$(DOCNAME).pdf: $(DOCSOURCE)
$(OUT)$(DOCNAME).pdf: $(DOCSOURCE)
$(A2X) -f pdf $<
$(HTMLDOC): $(DOCSOURCE)
$(OUT)$(HTMLDOC): $(DOCSOURCE)
@echo "if asciidoc isn't found no HTML documentation is produced but Subsurface is still functional"
$(ASCIIDOC) $< || true
# Alternatively::
$(DOCNAME).xhtml: $(DOCSOURCE)
$(OUT)$(DOCNAME).xhtml: $(DOCSOURCE)
$(A2X) --icons -f xhtml $<
show: $(HTMLDOC)