Skip to content

Commit 0bffebc

Browse files
committed
Fix: restore findremakenrules.pri files
Fixes remaken no longer able to resolve default rules location due to the fact that too much code was removed.
1 parent 5a20fa7 commit 0bffebc

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

findremakenrules.pri

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
# Author(s) : Loic Touraine, Stephane Leduc
22

3+
android {
4+
# unix path
5+
USERHOMEFOLDER = $$clean_path($$(HOME))
6+
isEmpty(USERHOMEFOLDER) {
7+
# windows path
8+
USERHOMEFOLDER = $$clean_path($$(USERPROFILE))
9+
isEmpty(USERHOMEFOLDER) {
10+
USERHOMEFOLDER = $$clean_path($$(HOMEDRIVE)$$(HOMEPATH))
11+
}
12+
}
13+
}
14+
15+
unix:!android {
16+
USERHOMEFOLDER = $$clean_path($$(HOME))
17+
}
18+
319
win32 {
420
USERHOMEFOLDER = $$clean_path($$(USERPROFILE))
521
isEmpty(USERHOMEFOLDER) {
@@ -24,4 +40,4 @@ else {
2440
error("Unable to locate remaken rules in " $${QMAKE_REMAKEN_RULES_ROOT} ". Either check your remaken installation, or provide the path to your remaken qmake root folder rules in REMAKEN_RULES_ROOT environment variable.")
2541
}
2642

27-
message("Remaken qmake build rules used : " $$QMAKE_REMAKEN_RULES_ROOT)
43+
message("Remaken qmake build rules used : " $$QMAKE_REMAKEN_RULES_ROOT)

0 commit comments

Comments
 (0)