Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
8c910fe8
Commit
8c910fe8
authored
Dec 21, 2010
by
lm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed windows dependency copy nightmare - tested and works.
parent
15a15098
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
18 deletions
+22
-18
qgroundcontrol.pri
qgroundcontrol.pri
+22
-18
No files found.
qgroundcontrol.pri
View file @
8c910fe8
...
...
@@ -293,6 +293,10 @@ win32-msvc2008 {
# QWebkit is not needed on MS-Windows compilation environment
CONFIG -= webkit
release {
CONFIG -= console
}
# Special settings for debug
#CONFIG += CONSOLE
...
...
@@ -335,18 +339,18 @@ exists($$BASEDIR/lib/osgEarth123) {
BASEDIR_WIN = $$replace(BASEDIR,"/","\\")
TARGETDIR_WIN = $$replace(TARGETDIR,"/","\\")
debug
{
QMAKE_POST_LINK +=
;
copy /Y \"$$BASEDIR_WIN\\lib\\sdl\\win32\\SDL.dll\" \"$$TARGETDIR_WIN\\debug\\SDL.dll\"
QMAKE_POST_LINK +=
; xcopy \"$$BASEDIR_WIN\\audio\" \"$$TARGETDIR_WIN\\debug\\audio
\" /S /E /Y
QMAKE_POST_LINK +=
; xcopy \"$$BASEDIR_WIN\\models\" \"$$TARGETDIR_WIN\\debug\\models
\" /S /E /Y
QMAKE_POST_LINK +=
; copy /Y \"$$BASEDIR\\images\\earth.html $$TARGETDIR_WIN\\debug
\"
exists($$TARGETDIR/debug)
{
QMAKE_POST_LINK +=
&&
copy /Y \"$$BASEDIR_WIN\\lib\\sdl\\win32\\SDL.dll\" \"$$TARGETDIR_WIN\\debug\\SDL.dll\"
QMAKE_POST_LINK +=
&& xcopy \"$$BASEDIR_WIN\\audio\" \"$$TARGETDIR_WIN\\debug\\audio\\
\" /S /E /Y
QMAKE_POST_LINK +=
&& xcopy \"$$BASEDIR_WIN\\models\" \"$$TARGETDIR_WIN\\debug\\models\\
\" /S /E /Y
QMAKE_POST_LINK +=
&& copy /Y \"$$BASEDIR_WIN\\images\\earth.html\" \"$$TARGETDIR_WIN\\debug\\earth.html
\"
}
release
{
exists($$TARGETDIR/release)
{
QMAKE_POST_LINK += && copy /Y \"$$BASEDIR_WIN\\lib\\sdl\\win32\\SDL.dll\" \"$$TARGETDIR_WIN\\release\\SDL.dll\"
QMAKE_POST_LINK += && xcopy \"$$BASEDIR_WIN\\audio\" \"$$TARGETDIR_WIN\\release\\audio\" /S /E /Y
QMAKE_POST_LINK += && xcopy \"$$BASEDIR_WIN\\models\" \"$$TARGETDIR_WIN\\release\\models\" /S /E /Y
QMAKE_POST_LINK += && copy /Y \"$$BASEDIR
\\images\\earth.html $$TARGETDIR_WIN\\release
\"
QMAKE_POST_LINK += && xcopy \"$$BASEDIR_WIN\\audio\" \"$$TARGETDIR_WIN\\release\\audio\
\\
" /S /E /Y
QMAKE_POST_LINK += && xcopy \"$$BASEDIR_WIN\\models\" \"$$TARGETDIR_WIN\\release\\models\
\\
" /S /E /Y
QMAKE_POST_LINK += && copy /Y \"$$BASEDIR
_WIN\\images\\earth.html\" \"$$TARGETDIR_WIN\\release\\earth.html
\"
}
}
...
...
@@ -375,6 +379,7 @@ win32-g++ {
}
release {
CONFIG -= console
#DESTDIR = $$BUILDDIR/release
}
...
...
@@ -400,22 +405,21 @@ win32-g++ {
} else {
# No cp command available, go for copy / xcopy
# Copy dependencies
message("Using copy / xcopy to copy image and audio files to executable (cp command not found)")
BASEDIR_WIN = $$replace(BASEDIR,"/","\\")
TARGETDIR_WIN = $$replace(TARGETDIR,"/","\\")
debug
{
exists($$TARGETDIR/debug)
{
QMAKE_POST_LINK += && copy /Y \"$$BASEDIR_WIN\\lib\\sdl\\win32\\SDL.dll\" \"$$TARGETDIR_WIN\\debug\\SDL.dll\"
QMAKE_POST_LINK += && xcopy \"$$BASEDIR_WIN\\audio\" \"$$TARGETDIR_WIN\\debug\\audio\" /S /E /Y
QMAKE_POST_LINK += && xcopy \"$$BASEDIR_WIN\\models\" \"$$TARGETDIR_WIN\\debug\\models\" /S /E /Y
QMAKE_POST_LINK += && copy /Y \"$$BASEDIR
\\images\\earth.html $$TARGETDIR_WIN\\debug
\"
QMAKE_POST_LINK += && xcopy \"$$BASEDIR_WIN\\audio\" \"$$TARGETDIR_WIN\\debug\\audio\
\\
" /S /E /Y
QMAKE_POST_LINK += && xcopy \"$$BASEDIR_WIN\\models\" \"$$TARGETDIR_WIN\\debug\\models\
\\
" /S /E /Y
QMAKE_POST_LINK += && copy /Y \"$$BASEDIR
_WIN\\images\\earth.html\" \"$$TARGETDIR_WIN\\debug\\earth.html
\"
}
release
{
exists($$TARGETDIR/release)
{
QMAKE_POST_LINK += && copy /Y \"$$BASEDIR_WIN\\lib\\sdl\\win32\\SDL.dll\" \"$$TARGETDIR_WIN\\release\\SDL.dll\"
QMAKE_POST_LINK += && xcopy \"$$BASEDIR_WIN\\audio\" \"$$TARGETDIR_WIN\\release\\audio\" /S /E /Y
QMAKE_POST_LINK += && xcopy \"$$BASEDIR_WIN\\models\" \"$$TARGETDIR_WIN\\release\\models\" /S /E /Y
QMAKE_POST_LINK += && copy /Y \"$$BASEDIR
\\images\\earth.html $$TARGETDIR_WIN\\release
\"
QMAKE_POST_LINK += && xcopy \"$$BASEDIR_WIN\\audio\" \"$$TARGETDIR_WIN\\release\\audio\
\\
" /S /E /Y
QMAKE_POST_LINK += && xcopy \"$$BASEDIR_WIN\\models\" \"$$TARGETDIR_WIN\\release\\models\
\\
" /S /E /Y
QMAKE_POST_LINK += && copy /Y \"$$BASEDIR
_WIN\\images\\earth.html\" \"$$TARGETDIR_WIN\\release\\earth.html
\"
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment