diff options
Diffstat (limited to 'tradeshow/iot-sensortag/SensorTagDemo.pro')
-rw-r--r-- | tradeshow/iot-sensortag/SensorTagDemo.pro | 117 |
1 files changed, 117 insertions, 0 deletions
diff --git a/tradeshow/iot-sensortag/SensorTagDemo.pro b/tradeshow/iot-sensortag/SensorTagDemo.pro new file mode 100644 index 0000000..f1df6d6 --- /dev/null +++ b/tradeshow/iot-sensortag/SensorTagDemo.pro @@ -0,0 +1,117 @@ +TEMPLATE = app + +QT += 3dcore 3drender 3dinput 3dquick 3dlogic core gui qml quick 3dquickextras widgets +QT += bluetooth network +CONFIG += c++11 + +# Uncomment DEVICE_TYPE and assign either UI_SMALL, UI_MEDIUM, UI_LARGE +# to force using that UI form factor. Otherwise +# the form factor is determined based on the platform +DEVICE_TYPE = UI_SMALL + +# If DEVICE_TYPE is not set manually, try to determine +# the correct device type by the used operating system +win32|linux:!android:!qnx { + CONFIG += BLUETOOTH_LINUX_HOST + isEmpty(DEVICE_TYPE) { DEVICE_TYPE = UI_SMALL } +} else:android { + isEmpty(DEVICE_TYPE) { DEVICE_TYPE = UI_MEDIUM } + ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android-sources + QMAKE_CXX_FLAGS -= -DQT_OPENGL_FORCE_SHADER_DEFINES +} else:ios { + isEmpty(DEVICE_TYPE) { DEVICE_TYPE = UI_MEDIUM } +} + +win32 { + # Obtained via NuGet + isEmpty(WASTORAGE_LOCATION): WASTORAGE_LOCATION = "C:/Users/mauri/Documents/Visual Studio 2015/Projects/App1/packages/wastorage.v140.2.6.0" + INCLUDEPATH += $$WASTORAGE_LOCATION/build/native/include \ + $$WASTORAGE_LOCATION/build/native/include/was \ + $$WASTORAGE_LOCATION/build/native/include/wascore + LIBS += -L$$WASTORAGE_LOCATION/lib/native/v140/Win32/Release + + isEmpty(CPPRESTSDK_LOCATION): CPPRESTSDK_LOCATION = "C:/Users/mauri/Documents/Visual Studio 2015/Projects/App1/packages/cpprestsdk.v140.windesktop.msvcstl.dyn.rt-dyn.2.9.1" + INCLUDEPATH += $$CPPRESTSDK_LOCATION/build/native/include +} + +SOURCES += main.cpp \ + mockdataprovider.cpp \ + sensortagdataprovider.cpp \ + clouddataprovider.cpp \ + dataproviderpool.cpp \ + clouddataproviderpool.cpp \ + demodataproviderpool.cpp + +HEADERS += \ + sensortagdataprovider.h \ + mockdataprovider.h \ + clouddataprovider.h \ + cloudservice.h \ + dataproviderpool.h \ + clouddataproviderpool.h \ + demodataproviderpool.h + +BLUETOOTH_LINUX_HOST { + !winrt:CONFIG += UPDATE_TO_CLOUD + DEFINES += RUNS_AS_HOST + + SOURCES += \ + sensortagdataproviderpool.cpp \ + bluetoothdataprovider.cpp \ + serviceinfo.cpp \ + bluetoothdevice.cpp \ + characteristicinfo.cpp + + HEADERS += \ + sensortagdataproviderpool.h \ + bluetoothdataprovider.h \ + serviceinfo.h \ + bluetoothdevice.h \ + characteristicinfo.h +} + +UPDATE_TO_CLOUD { + SOURCES += cloudupdate.cpp + HEADERS += cloudupdate.h + DEFINES += CLOUD_UPLOAD + # For Azure libs + win32 { + LIBS += -lwastorage + } else { + LIBS += -lboost_system -lcrypto -lssl -lcpprest -lazurestorage + QMAKE_CXXFLAGS += -fpermissive + QMAKE_CXXFLAGS += -fexceptions + } + QMAKE_CXXFLAGS_EXCEPTIONS_OFF = +} + +RESOURCES += base.qrc + +equals(DEVICE_TYPE, "UI_SMALL") { + DEFINES += UI_SMALL + RESOURCES += uismall.qrc + message("Resource file for SMALL display picked") +} + +equals(DEVICE_TYPE, "UI_MEDIUM") { + DEFINES += UI_MEDIUM + RESOURCES += uimedium.qrc + message("Resource file for MEDIUM display picked") +} + +equals(DEVICE_TYPE, "UI_LARGE") { + DEFINES += UI_LARGE + RESOURCES += uilarge.qrc + message("Resource file for LARGE display picked") +} + +# Additional import path used to resolve QML modules in Qt Creator's code model +QML_IMPORT_PATH = + +# Default rules for deployment. +qnx: target.path = /tmp/$${TARGET}/bin +else: unix:!android: target.path = /opt/$${TARGET}/bin +!isEmpty(target.path): INSTALLS += target + +DISTFILES += \ + android-sources/AndroidManifest.xml |