Skip to content

Commit

Permalink
Use $$[QT_INSTALL_DATA] to for package configuration paths
Browse files Browse the repository at this point in the history
Remove unnecessary prf target from src.pro.
  • Loading branch information
Petri M. Gerdt committed Apr 23, 2013
1 parent 7eca1ae commit 76b0e31
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 19 deletions.
13 changes: 4 additions & 9 deletions root.pro
Expand Up @@ -2,15 +2,10 @@ TEMPLATE = subdirs

SUBDIRS = src tests type-to-cxx

equals(QT_MAJOR_VERSION, 4) {
prf.files = iodata.prf
prf.path = /usr/share/qt4/mkspecs/features
}
equals(QT_MAJOR_VERSION, 5) {
prf.files = iodata-qt5.prf
prf.path = /usr/share/qt5/mkspecs/features
}
prf.path = $$[QT_INSTALL_DATA]/mkspecs/features
equals(QT_MAJOR_VERSION, 4): prf.files = iodata.prf
equals(QT_MAJOR_VERSION, 5): prf.files = iodata-qt5.prf

INSTALLS = prf

OTHER_FILES += rpm/*.spec
OTHER_FILES += rpm/*.spec *.prf
11 changes: 1 addition & 10 deletions src/src.pro
Expand Up @@ -13,16 +13,7 @@ devheaders.files = iodata.h validator.h storage.h iodata validator storage
equals(QT_MAJOR_VERSION, 4): devheaders.path = /usr/include/iodata
equals(QT_MAJOR_VERSION, 5): devheaders.path = /usr/include/iodata-qt5

equals(QT_MAJOR_VERSION, 4) {
prf.files = iodata.prf
prf.path = /usr/share/qt4/mkspecs/features
}
equals(QT_MAJOR_VERSION, 5) {
prf.files = iodata-qt5.prf
prf.path = /usr/share/qt5/mkspecs/features
}

INSTALLS = target devheaders prf
INSTALLS = target devheaders

FLEXSOURCES = datalang.l
BISONSOURCES = datalang.y
Expand Down

0 comments on commit 76b0e31

Please sign in to comment.