projects
/
evilplumber
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
139d940
)
Build fixes.
author
Marja Hassinen
<marja2@Vahvero.(none)>
Fri, 1 Jan 2010 20:21:18 +0000
(22:21 +0200)
committer
Marja Hassinen
<marja2@Vahvero.(none)>
Fri, 1 Jan 2010 20:21:18 +0000
(22:21 +0200)
common.pri
[new file with mode: 0644]
patch
|
blob
diff --git a/common.pri
b/common.pri
new file mode 100644
(file)
index 0000000..
830b275
--- /dev/null
+++ b/
common.pri
@@ -0,0
+1,20
@@
+isEmpty(PREFIX) {
+PREFIX = /usr/local
+}
+
+BINDIR = $$PREFIX/bin
+DATADIR = $$PREFIX/share
+
+DEFINES += DATADIR=\"$$DATADIR\" PKGDATADIR=\"$$PKGDATADIR\"
+
+# Building for local use -> LEVDIR and IMGDIR are empty
+isEmpty(LEVDIR) {
+LEVDIR = data
+}
+isEmpty(IMGDIR) {
+IMGDIR = img
+}
+# Building for the debian package -> LEVDIR is /usr/share/${APPNAME} etc.
+
+DEFINES += LEVDIR=\\\"$$LEVDIR\\\" IMGDIR=\\\"$$IMGDIR\\\"
+