aboutsummaryrefslogtreecommitdiffstats
path: root/HomeScreen
diff options
context:
space:
mode:
authorTasuku Suzuki <tasuku.suzuki@qt.io>2016-11-21 14:40:40 +0900
committerJens Bocklage <jens_bocklage@mentor.com>2016-11-21 09:35:24 +0000
commit83cfbb9fe4bcc17f6b00c8a25aa3eb8c2c850ac0 (patch)
tree83c6f6484a0baf793eef722990d5911bbeeaad1c /HomeScreen
parentc15499baf78f777de62899a376b0f3cd6b651920 (diff)
check ivi-layermanagement-api availability
replace #ifdef __arm__ with a definition that comes from availability test Change-Id: Id9fa4baefcc9f38acd3e98d40054040fc69029c6 Signed-off-by: Tasuku Suzuki <tasuku.suzuki@qt.io>
Diffstat (limited to 'HomeScreen')
-rw-r--r--HomeScreen/HomeScreen.pro1
-rw-r--r--HomeScreen/src/main.cpp6
2 files changed, 3 insertions, 4 deletions
diff --git a/HomeScreen/HomeScreen.pro b/HomeScreen/HomeScreen.pro
index a9e950e..9951a0f 100644
--- a/HomeScreen/HomeScreen.pro
+++ b/HomeScreen/HomeScreen.pro
@@ -17,6 +17,7 @@ TARGET = HomeScreen
QT = widgets dbus
include(../interfaces/interfaces.pri)
+include(../ivi_layermanagement_api.pri)
SOURCES += \
src/main.cpp \
diff --git a/HomeScreen/src/main.cpp b/HomeScreen/src/main.cpp
index 434cf6c..a896c2e 100644
--- a/HomeScreen/src/main.cpp
+++ b/HomeScreen/src/main.cpp
@@ -45,14 +45,12 @@ int main(int argc, char *argv[])
MainWindow w;
w.show();
-#ifdef __arm__
+#ifdef HAVE_IVI_LAYERMANAGEMENT_API
// the WindowManager positions the surface correctly
-#endif
-#ifdef __i386__
+#else
w.move(0, 0);
#endif
-
#ifdef __arm__
qDebug("Running on ARM architecture");
#endif