qzxing/examples/QZXingLive/QZXingLive.pro
Nikolaos Ftylitakis 6070e98f38
Add conditional builds in pro (#141)
* first refactoring on QZXing.pri to group sources based on type of barcode and operation

* Moved the newly created source code groups of functionalities to separate pri file (QZXing-components.pri).

* In QZXing.pri include QZXing-components.pri having previously added as configuration all the available modules to preserve the backward compatibility.

* Deactivate parts of code based on the configuration of the pro file. (Work in Progress).

* fix compilation error

* Fix include issue when only "enable_encoder_qr_code" config is used through QZXing-components.pri

Update example projects to use QZXing-components.pri
2019-10-03 15:56:14 +03:00

61 lines
1.3 KiB
Prolog

TEMPLATE = app
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
}
HEADERS += \
application.h \
native.h
SOURCES += main.cpp \
application.cpp \
native.cpp
RESOURCES += qml.qrc
# Additional import path used to resolve QML modules in Qt Creator's code model
QML_IMPORT_PATH =
include(../../src/QZXing-components.pri)
# Default rules for deployment.
include(deployment.pri)
android {
QT += androidextras
DISTFILES += \
android/AndroidManifest.xml \
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/AndroidManifest.xml \
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_PACKAGE_SOURCE_DIR = $$PWD/android
}
else:ios {
QMAKE_INFO_PLIST=Info.plist
}