Skip to content

Commit

Permalink
Add recursive option to qmake (PREFIX doesn't propagate without it)
Browse files Browse the repository at this point in the history
  • Loading branch information
bweir committed Dec 2, 2015
1 parent 5d50d01 commit c490ad0
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 29 deletions.
2 changes: 1 addition & 1 deletion .travis/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set -e

PROJECTNAME=propellermanager-$TRAVIS_TAG-$TRAVIS_OS_NAME

qmake PREFIX=$PROJECTNAME
qmake PREFIX=$PROJECTNAME -r
make -j4
make install

Expand Down
14 changes: 7 additions & 7 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ environment:
configuration: Release

install:
- set PATH=%PATH%;%QTDIR%\bin;%MINGW%\bin;C:\Qt\Tools\QtCreator\bin;
- set PROJECTNAME=propellermanager-%APPVEYOR_REPO_TAG_NAME%-win
- qmake -v
- set PATH=%PATH%;%QTDIR%\bin;%MINGW%\bin;C:\Qt\Tools\QtCreator\bin;
- set PROJECTNAME=propellermanager-%APPVEYOR_REPO_TAG_NAME%-win
- qmake -v

build_script:
- qmake PREFIX=%PROJECTNAME%
- mingw32-make
- mingw32-make install
- jar -cMf %PROJECTNAME%.zip %PROJECTNAME%
- qmake PREFIX=%PROJECTNAME% -r
- mingw32-make
- mingw32-make install
- jar -cMf %PROJECTNAME%.zip %PROJECTNAME%

artifacts:
- path: propellermanager-*.zip
Expand Down
28 changes: 7 additions & 21 deletions propellermanager.pro
Original file line number Diff line number Diff line change
Expand Up @@ -15,30 +15,16 @@ docs.commands = cd doc && bash process.sh
QMAKE_EXTRA_TARGETS += docs
QMAKE_CLEAN += doc/html/* doc/doxygen_sqlite3.db


OTHER_FILES += \
$$PWD/include/PropellerImage \
$$PWD/include/PropellerSession \
$$PWD/include/PropellerManager \
$$PWD/include/PropellerLoader \
$$PWD/include/PropellerTerminal \

isEmpty(PREFIX) {
PREFIX = /usr/local
}

libs.files = lib/*
bins.files = bin/*
includes.files = include/*

win32 {
libs.path = $$PREFIX
bins.path = $$PREFIX
includes.path = $$PREFIX
} else {
libs.path = $$PREFIX/lib
bins.path = $$PREFIX/bin
includes.path = $$PREFIX/include
}
libs.path = $$PREFIX/lib
bins.path = $$PREFIX/bin
includes.path = $$PREFIX/include

libs.files = $$PWD/lib/*
bins.files = $$PWD/bin/*
includes.files = $$PWD/include/*

INSTALLS += libs includes bins

0 comments on commit c490ad0

Please sign in to comment.