-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgenconfig.pro
50 lines (40 loc) · 1.03 KB
/
genconfig.pro
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
PACKAGE = xconfig
VERSION = -1.1.0
CACHEFILE = $$quote($${PWD}/.qmake.cache)
CACHEFILETMP = $$quote($${CACHEFILE}.tmp)
defineReplace(quotepath) {
return(\\\$\\\$quote\\\($$quote($$1)\\\))
}
system(rm -f \'$$CACHEFILE\')
VARS = TOP_SRCDIR \
TOP_BUILDDIR \
BINDIR \
LIBDIR \
LOCALSTATEDIR \
SYSCONFDIR \
DATADIR \
PKGLIBDIR \
PKGDATADIR \
PKGLOCALSTATEDIR \
PKGSYSCONFDIR \
PREFIX \
PACKAGE \
VERSION
TOP_SRCDIR = $$quote($$PWD)
TOP_BUILDDIR = $$quote($$OUT_PWD)
BINDIR = $$quote(/bin)
LIBDIR = $$quote(/lib)
DATADIR = $$quote(/share)
LOCALSTATEDIR = $$quote(/var)
SYSCONFDIR = $$quote(/etc)
PKGLIBDIR = $$quote(/lib/$$PACKAGE$$VERSION)
PKGDATADIR = $$quote(/share/$$PACKAGE$$VERSION)
PKGLOCALSTATEDIR = $$quote(/var/$$PACKAGE)
PKGSYSCONFDIR = $$quote(/etc/$$PACKAGE)
PREFIX = $$quote($$PREFIX)
system(rm -f \'$$CACHEFILETMP\')
for(v, VARS):{
eval(VALUE = \$\$$${v})
system(echo '$$v = $$VALUE' >> \'$$CACHEFILETMP\')
}
system(mv \'$$CACHEFILETMP\' \'$$CACHEFILE\')