TEMPLATE = app CONFIG += c++17 app = tokenapp QMAKE_BUNDLE=tokenapp QMAKE_PROVISIONING_PROFILE="tokenTestProfile" QMAKE_TARGET_BUNDLE_PREFIX = org.gridnet ANDROID_VERSION_NAME = "6" ANDROID_VERSION_CODE = 6 android { ANDROID_SDK_BUILD_TOOLS_REVISION = 30.0.3 ANDROID_MIN_SDK_VERSION = 26 ANDROID_TARGET_SDK_VERSION = 31 } QMAKE_CXXFLAGS += -std=c++17 QMAKE_LFLAGS += -std=c++17 CONFIG += qzxing_multimedia \ enable_decoder_1d_barcodes \ enable_decoder_qr_code \ enable_decoder_data_matrix \ enable_decoder_aztec \ enable_decoder_pdf17 CONFIG(debug, debug|release) { CONFIG+=qml_debug } else { DEFINES += QT_NO_DEBUG DEFINES += QT_NO_DEBUG_OUTPUT } QT +=core gui QT += multimedia multimediawidgets QT += quickwidgets QT += gui-private QT += network #QTPLUGIN += qtaudio_coreaudio HEADERS += conversation.h \ DataConcatenator.h \ GridScriptCompiler.h \ IManager.h \ InstructionSet.h \ KeyEater.h \ NetMsg.h \ NetTask.h \ OperationResult.h \ Receipt.h \ SafeArea.h \ ScriptEngine.h \ SensorState.h \ SessionDescription.h \ TokenPool.h \ TokenPoolBank.h \ TransmissionToken.h \ TrieLeafNode.h \ TrieNode.h \ UDT/api.h \ UDT/buffer.h \ UDT/cache.h \ UDT/ccc.h \ UDT/channel.h \ UDT/common.h \ UDT/core.h \ UDT/epoll.h \ UDT/list.h \ UDT/md5U.h \ UDT/packet.h \ UDT/queue.h \ UDT/udt.h \ UDT/window.h \ VMMetaGenerator.h \ VMMetaEntry.h \ VMMetaGenerator.h \ VMMetaParser.h \ VMMetaSection.h \ VMProcessor.h \ application.h \ base64/include/chromiumbase64.h \ base64/include/fastavx512bwbase64.h \ base64/include/fastavxbase64.h \ base64/include/klompavxbase64.h \ base64/include/linuxbase64.h \ base64/include/quicktimebase64.h \ base64/include/scalarbase64.h \ botan_all.h \ cconfirmationbox.h \ cglobalsecsettings.h \ cidentitybox.h \ cnetworkfactory.h \ conversationState.h \ cqrintentresponse.h \ hexi.h \ hexiPhrase.h \ miniaudio.h \ native.h \ pkcs11.h \ pkcs11f.h \ pkcs11t.h \ tests.h \ transaction.h \ transferbox.h \ transferboxcpp SOURCES += main.cpp \ GridScriptCompiler.cpp \ KeyEater.cpp \ NetMsg.cpp \ NetTask.cpp \ OperationResult.cpp \ Receipt.cpp \ SensorState.cpp \ SessionDescription.cpp \ TokenPool.cpp \ TokenPoolBank.cpp \ TransmissionToken.cpp \ TrieLeafNode.cpp \ TrieNode.cpp \ UDT/api.cpp \ UDT/buffer.cpp \ UDT/cache.cpp \ UDT/ccc.cpp \ UDT/channel.cpp \ UDT/common.cpp \ UDT/core.cpp \ UDT/epoll.cpp \ UDT/list.cpp \ UDT/md5U.cpp \ UDT/packet.cpp \ UDT/queue.cpp \ UDT/window.cpp \ VMMetaEntry.cpp \ VMMetaGenerator.cpp \ VMMetaParser.cpp \ VMMetaSection.cpp \ VMProcessor.cpp \ application.cpp \ cconfirmationbox.cpp \ cglobalsecsettings.cpp \ cidentitybox.cpp \ cnetworkfactory.cpp \ conversation.cpp \ conversationState.cpp \ cqrintentresponse.cpp \ hexi.cpp \ hexiPhrase.cpp \ native.cpp \ scriptengine.cpp \ tests.cpp \ transaction.cpp \ transferbox.cpp #the following source files are platform-specific android { SOURCES += miniaudio.c } else:ios { SOURCES += miniaudio.m } RESOURCES += qml.qrc # Additional import path used to resolve QML modules in Qt Creator's code model //QML2_IMPORT_PATH += xzing/src/ include(./xzing/src/QZXing-components.pri) # Default rules for deployment. include(deployment.pri) android { LIBS += -lOpenSLES QT += androidextras QT += widgets QT += quickcontrols2 DISTFILES += \ android/gradle/wrapper/gradle-wrapper.jar \ android/gradlew \ android/res/values/libs.xml \ android/build.gradle \ android/gradle/wrapper/gradle-wrapper.properties \ android/gradlew.bat \ android/gradle/wrapper/gradle-wrapper.jar \ android/gradlew \ android/res/values/libs.xml \ android/res/mipmap-anydpi-v26/icon.xml \ android/res/mipmap-anydpi-v26/icon_round.xml \ android/res/mipmap-xxxhdpi/icon.png \ android/res/mipmap-xxxhdpi/launcher_foreground.png \ android/build.gradle \ android/gradle/wrapper/gradle-wrapper.properties \ android/gradlew.bat LIBS += -L$$PWD/jniLibs/$$QT_ARCH/ -lbotan-2 ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android PRE_TARGETDEPS += $$PWD/jniLibs/$$QT_ARCH/libbotan-2.a } else:ios { QMAKE_INFO_PLIST=Info.plist LIBS += $$PWD/jniLibs/$$QT_ARCH/libbotan-2.a LIBS += -framework CoreFoundation LIBS += -framework CoreAudio } ios { QMAKE_ASSET_CATALOGS = $$PWD/iOS/Images.xcassets QMAKE_ASSET_CATALOGS_APP_ICON = "AppIcon" deployment.files = $$files($$PWD/iOS/LaunchImages/*.gif) deployment.path = QMAKE_BUNDLE_DATA += deployment app_launch_screen.files = $$files($$PWD/iOS/MyLaunchScreen.storyboard) QMAKE_BUNDLE_DATA += app_launch_screen } Q_ENABLE_BITCODE.name = ENABLE_BITCODE Q_ENABLE_BITCODE.value = NO QMAKE_MAC_XCODE_SETTINGS += Q_ENABLE_BITCODE DISTFILES += \ ../Whitepapers/SMART GRID/logoBoxself.png \ android/AndroidManifest.xml \ android/AndroidManifest_copy.xml \ android/gradlew.bat \ android/gradlew.bat \ images/abort.png \ images/animatedqr.gif \ images/confirm.png \ images/confirmed.png \ images/eyes.gif \ images/logoboxself.png \ images/overlay.gif \ images/scannedok.png \ images/scannedwrong.png \ images/settings.png \ images/ergLimit.png \ images/tx.png \ images/ergPrice.png \ images/icons.png \ images/Recipient.png \ voices/welcome.mp3\ jniLibs/$$QT_ARCH/botan \ jniLibs/$$QT_ARCH/libbotan-2.a \ jniLibs/$$QT_ARCH/libbotan-2.so OTHER_FILES += iOS/*.storyboard INCLUDEPATH += $$PWD/jniLibs/$$QT_ARCH DEPENDPATH += $$PWD/jniLibs/$$QT_ARCH ANDROID_EXTRA_LIBS += $$PWD/jniLibs/$$QT_ARCH/libbotan-2.so # Default rules for deployment. qnx: target.path = /tmp/$${TARGET}/bin else: unix:!android: target.path = /opt/$${TARGET}/bin !isEmpty(target.path): INSTALLS += target ANDROID_ABIS += arm64-v8a \ armeabi-v7a