From 45dcb38c2b4176576372be18ebbcf652aec9679b Mon Sep 17 00:00:00 2001 From: KangLin Date: Fri, 24 Jul 2020 15:07:16 +0800 Subject: [PATCH] Create top pro file --- .travis.yml | 2 +- QZXing.pro | 35 +++++++++++++++++++++++++++++++++++ src/QZXing.pro | 2 ++ 3 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 QZXing.pro diff --git a/.travis.yml b/.travis.yml index 8702682b..d8bd5af6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -43,7 +43,7 @@ script: # Test qmake - mkdir ${TRAVIS_BUILD_DIR}/build_qamke - cd ${TRAVIS_BUILD_DIR}/build_qamke - - ${QT_ROOT}/bin/qmake CONFIG+=Release PRFIEX=`pwd`/install ${TRAVIS_BUILD_DIR}/src + - ${QT_ROOT}/bin/qmake CONFIG+=Release CONFIG*=enable_examples PRFIEX=`pwd`/install ${TRAVIS_BUILD_DIR}/src - make install # Test cmake diff --git a/QZXing.pro b/QZXing.pro new file mode 100644 index 00000000..1f0b87ba --- /dev/null +++ b/QZXing.pro @@ -0,0 +1,35 @@ +# +# Copyright 2011 QZXing authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +TEMPLATE = subdirs + +src.file = src/QZXing.pro + +CONFIG *= ordered +SUBDIRS *= src + +enable_examples { + QMLBarcodeScanner.file = examples/QMLBarcodeScanner/QMLBarcodeReader.pro + SUBDIRS *= examples/BarcodeEncoder \ + #QMLBarcodeScanner \ + examples/QZXingDragNDropTest \ + examples/QZXingLive +} + +OTHER_FILES += README.md \ + .travis.yml \ + appveyor.yml \ + ci/* diff --git a/src/QZXing.pro b/src/QZXing.pro index 0998294b..a5e670f0 100644 --- a/src/QZXing.pro +++ b/src/QZXing.pro @@ -36,3 +36,5 @@ DEFINES *= QZXING_LIBRARY include(QZXing-components.pri) DEFINES -= DISABLE_LIBRARY_FEATURES + +OTHER_FILES += CMakeLists.txt