From 6e6609581b64a551f755843cd2f8c8d42adb6d94 Mon Sep 17 00:00:00 2001 From: "michal.szwaj" Date: Mon, 12 Feb 2018 17:12:23 +0100 Subject: [PATCH] Add special define to identify raspberry build --- CMakeLists.txt | 2 +- src/autoapp/USB/USBMain.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 399e9d7..97a134b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -33,7 +33,7 @@ find_package(Qt5 COMPONENTS Multimedia MultimediaWidgets Bluetooth) find_package(Protobuf REQUIRED) if(RPI3_BUILD) - add_definitions(-DUSE_OMX -DOMX_SKIP64BIT) + add_definitions(-DUSE_OMX -DOMX_SKIP64BIT -DRASPBERRYPI3) set(BCM_HOST_LIBRARIES "/opt/vc/lib/libbcm_host.so") set(BCM_HOST_INCLUDE_DIRS "/opt/vc/include") set(ILCLIENT_INCLUDE_DIRS "/opt/vc/src/hello_pi/libs/ilclient") diff --git a/src/autoapp/USB/USBMain.cpp b/src/autoapp/USB/USBMain.cpp index 03bb25a..a9cae6e 100644 --- a/src/autoapp/USB/USBMain.cpp +++ b/src/autoapp/USB/USBMain.cpp @@ -49,7 +49,7 @@ USBMain::USBMain(libusb_context* context) int USBMain::exec(int argc, char* argv[]) { QApplication qApplication(argc, argv); -#ifdef RPI3_BUILD +#ifdef RASPBERRYPI3 qApplication.setOverrideCursor(Qt::BlankCursor); #endif