Skip to content

Commit

Permalink
Create top pro file
Browse files Browse the repository at this point in the history
  • Loading branch information
KangLin committed Jul 24, 2020
1 parent 84e9a17 commit 45dcb38
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
35 changes: 35 additions & 0 deletions QZXing.pro
Original file line number Diff line number Diff line change
@@ -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/*
2 changes: 2 additions & 0 deletions src/QZXing.pro
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,5 @@ DEFINES *= QZXING_LIBRARY
include(QZXing-components.pri)

DEFINES -= DISABLE_LIBRARY_FEATURES

OTHER_FILES += CMakeLists.txt

0 comments on commit 45dcb38

Please sign in to comment.