~online-accounts/libaccounts-qt/13.04

« back to all changes in this revision

Viewing changes to common-pkgconfig.pri

  • Committer: Alberto Mardegan
  • Author(s): Ken VanDine
  • Date: 2013-01-18 10:49:27 UTC
  • Revision ID: git-v1:a563948decab78a7a73b7dd866d41fd3e8effb3d
More out of tree fixes and use QMAKE_SUBSTITUTE instead of sed

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# Include this file after defining the pkgconfig.files variable
2
2
 
3
3
!isEmpty(pkgconfig.files) {
4
 
    PKGCONFIG_VARS = INSTALL_PREFIX INSTALL_LIBDIR PROJECT_VERSION
5
 
    COMMAND = "cat $${pkgconfig.files}.in "
6
 
    for(var, PKGCONFIG_VARS) {
7
 
        eval(VALUE = \$\${$${var}})
8
 
        COMMAND += "| sed s,$${var},$${VALUE},"
9
 
    }
10
 
    COMMAND += " > $${pkgconfig.files}"
11
 
 
 
4
    QMAKE_SUBSTITUTES += $${pkgconfig.files}.in
12
5
    pkgconfig.CONFIG = no_check_exist
13
6
    pkgconfig.path  = $${INSTALL_LIBDIR}/pkgconfig
14
 
    pkgconfig.commands = $${COMMAND}
15
7
    QMAKE_EXTRA_TARGETS += pkgconfig
16
8
 
17
9
    QMAKE_CLEAN += $${pkgconfig.files}