~ubuntu-branches/ubuntu/raring/synaptiks/raring-proposed

« back to all changes in this revision

Viewing changes to tests/buildbindings/qt-base.mk

  • Committer: Bazaar Package Importer
  • Author(s): Felix Geyer
  • Date: 2011-10-24 19:12:38 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20111024191238-y54khdea2qi3yj81
Tags: 0.8.0-0ubuntu1
* New upstream release.
* Drop build-depends on kdesdk-scripts, not needed anymore.
* Stop stripping desktop file translations.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
qt-all-modules = QtCore QtGui QtMultimedia QtNetwork QtOpenGL QtScript \
 
2
        QtScriptTools QtSql QtSvg QtWebKit QtXml QtXmlPatterns QtDeclarative \
 
3
        phonon QtUiTools QtHelp QtTest
 
4
 
 
5
ifdef QT_MODULES
 
6
qt-disabled-modules = $(filter-out $(QT_MODULES),$(1))
 
7
qt-enabled-modules = $(filter $(QT_MODULES),$(1))
 
8
else
 
9
qt-disabled-modules =
 
10
qt-enabled-modules = $(1)
 
11
endif
 
12
 
 
13
# hack to escape space
 
14
private space :=
 
15
private space +=
 
16
private $(space) :=
 
17
private $(space) +=
 
18
# generate a list of all modules to import.  First substitute the spaces of
 
19
# foreach away, protecting the space in the statement with _, and than
 
20
# substitute _ with space again to generate valid imoprt statements
 
21
qt-check-imports = $(subst _,$( ),$(subst $( ),;,$(foreach m,$(1),import_$(2).$(m))))
 
22
# try to import all modules
 
23
qt-check-modules = $(shell $(PYTHON) -c '$(call qt-check-imports,$(1),$(2)); print("yes")')