Skip to content
This repository was archived by the owner on Jun 14, 2023. It is now read-only.

Commit 28beeee

Browse files
committed
add findremankenrules.pri
1 parent a6767cc commit 28beeee

File tree

2 files changed

+51
-6
lines changed

2 files changed

+51
-6
lines changed

tests/SolARDescriptorExtractor/SolARDescriptorExtractorOpenCVNonFreeTest.pro

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
1+
## remove Qt dependencies
2+
QT -= core gui
3+
CONFIG -= qt
4+
5+
## global defintions : target lib name, version
16
TARGET = SolARDescriptorExtractorOpenCVNonFreeTest
2-
VERSION=0.7.0
7+
VERSION= 0.7.0
38

9+
DEFINES += MYVERSION=$${VERSION}
410
CONFIG += c++1z
5-
CONFIG -= qt
611
CONFIG += console
712

8-
DEFINES += MYVERSION=$${VERSION}
13+
include(findremakenrules.pri)
914

1015
CONFIG(debug,debug|release) {
1116
TARGETDEPLOYDIR = $${PWD}/../bin/Debug
@@ -27,8 +32,8 @@ win32:CONFIG += shared
2732
## Configuration for Visual Studio to install binaries and dependencies. Work also for QT Creator by replacing QMAKE_INSTALL
2833
PROJECTCONFIG = QTVS
2934

30-
#NOTE : CONFIG as staticlib or sharedlib, QMAKE_TARGET.arch and PROJECTDEPLOYDIR MUST BE DEFINED BEFORE templatelibconfig.pri inclusion
31-
include ($$shell_quote($$shell_path($$(REMAKEN_RULES_ROOT)/qmake/templateappconfig.pri))) # Shell_quote & shell_path required for visual on windows
35+
#NOTE : CONFIG as staticlib or sharedlib, DEPENDENCIESCONFIG as staticlib or sharedlib, QMAKE_TARGET.arch and PROJECTDEPLOYDIR MUST BE DEFINED BEFORE templatelibconfig.pri inclusion
36+
include ($$shell_quote($$shell_path($${QMAKE_REMAKEN_RULES_ROOT}/templateappconfig.pri))) # Shell_quote & shell_path required for visual on windows
3237

3338
SOURCES += \
3439
main.cpp
@@ -57,5 +62,5 @@ configfile.files = $${PWD}/SolAROpenCVNonFreeDescriptorExtractor_conf.xml
5762
INSTALLS += configfile
5863

5964
#NOTE : Must be placed at the end of the .pro
60-
include ($$shell_quote($$shell_path($$(REMAKEN_RULES_ROOT)/qmake/remaken_install_target.pri)))) # Shell_quote & shell_path required for visual on windows
65+
include ($$shell_quote($$shell_path($${QMAKE_REMAKEN_RULES_ROOT}/remaken_install_target.pri)))) # Shell_quote & shell_path required for visual on windows
6166

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Author(s) : Loic Touraine, Stephane Leduc
2+
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+
19+
win32 {
20+
USERHOMEFOLDER = $$clean_path($$(USERPROFILE))
21+
isEmpty(USERHOMEFOLDER) {
22+
USERHOMEFOLDER = $$clean_path($$(HOMEDRIVE)$$(HOMEPATH))
23+
}
24+
}
25+
26+
exists(builddefs/qmake) {
27+
QMAKE_REMAKEN_RULES_ROOT=builddefs/qmake
28+
}
29+
else {
30+
QMAKE_REMAKEN_RULES_ROOT = $$clean_path($$(REMAKEN_RULES_ROOT))/qmake
31+
isEmpty(QMAKE_REMAKEN_RULES_ROOT) {
32+
QMAKE_REMAKEN_RULES_ROOT=$${USERHOMEFOLDER}/.remaken/rules/qmake
33+
}
34+
}
35+
36+
!exists($${QMAKE_REMAKEN_RULES_ROOT}) {
37+
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.")
38+
}
39+
40+
message("Remaken qmake build rules used : " $$QMAKE_REMAKEN_RULES_ROOT)

0 commit comments

Comments
 (0)