[SOLVED]Android: Exclude subdir project
-
How can I exclude subdir project from Android build?
P.S. I tied to use but it still include in qmake
@win32|linux|mac {
SUBDIRS += openrpt
}@ -
Hi,
IIRC there's now the android scope so you could use
@!android:SUBDIRS += openrpt@
Hope it helps
-
[quote]IIRC there’s now the android scope so you could use [/quote]
I tried it, I got same result of win32|linux|mac -
BTW, I'm using Qt 5.1.0
-
Oops it seems I face issue with #if not with qmake... sorry my mistake:
I discovered that this snippet doesn’t work... does it correct syntax?
[code]#if defined(Q_OS_LINUX) || defined(Q_OS_WIN) || defined(Q_OS_MAC)
#include <openrptrenderer.h>
#endif[/code] -
You should add a check for !Q_OS_ANDROID. Android is a linux flavor.
-
[quote]You should add a check for !Q_OS_ANDROID. Android is a linux flavor.[/quote]
I used what you said:
[code]#ifdef !Q_OS_ANDROID
#include <openrptrenderer.h>
#endif[/code]
But I got this error message:
[quote]/home/mbnoimi/Projects/Desktop/Simple Invoice/src/SimpleInvoice/mainwindow.h:9: error: macro names must be identifiers[/quote] -
It was just pseudo code
The line should be:
@#if !defined(Q_OS_ANDROID)@ -
Thanks a lot, it works :)