Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
minicoin
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Volker Hilsheimer
minicoin
Commits
ceece2f7
Commit
ceece2f7
authored
Nov 09, 2020
by
Volker Hilsheimer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Generate qmake/qt-cmake wrappers after building Qt
Convenient, and needed by the build-project job.
parent
2339760e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
0 deletions
+32
-0
minicoin/jobs/build-qt/main.cmd
minicoin/jobs/build-qt/main.cmd
+18
-0
minicoin/jobs/build-qt/main.sh
minicoin/jobs/build-qt/main.sh
+14
-0
No files found.
minicoin/jobs/build-qt/main.cmd
View file @
ceece2f7
...
...
@@ -9,6 +9,21 @@ if NOT DEFINED JOBDIR (
exit
/B
1
)
goto
:main
REM Creates a batch wrapper in ~/bin (which is in the PATH) for qmake or cmake
:link
_tool
set
"toolname=
%~n1
"
set
"toolext=
%~x1
"
if
EXIST
"
%CD%
\qtbase\bin\
%
1"
(
echo
@echo
off
>
%USERPROFILE%
\bin\
!toolname!
.bat
echo
SET
PATH
=
%CD%
\qtbase\bin
;
%%PATH%%
>>
%USERPROFILE%
\bin\
!toolname!
.bat
echo
%CD%
\qtbase\bin\
!toolname!
"
%%
*"
>>
%USERPROFILE%
\bin\
!toolname!
.bat
)
exit
/B
:main
REM set defaults
if
"
!PARAM_build!
"
==
""
SET
"PARAM_build=qt-build"
SET
"build_dir=
!PARAM_build!
"
...
...
@@ -66,4 +81,7 @@ if exist build.ninja (
)
)
call
:link
_tool
qmake
.exe
call
:link
_tool
qt
-cmake
.bat
exit
/B
%error%
minicoin/jobs/build-qt/main.sh
View file @
ceece2f7
...
...
@@ -24,6 +24,17 @@ function search_highest
export
CC
=
${
PARAM_cc
:-
$(
search_highest
"
$(
which gcc
||
which clang
)
"
)
}
export
CXX
=
${
PARAM_cxx
:-
$(
search_highest
"
$(
which g++
||
which clang++
)
"
)
}
# create a build tool wrapper script in ~
function
link_tool
{
toolname
=
"
$1
"
if
[
-f
"
$PWD
/qtbase/bin/
${
toolname
}
"
]
then
echo
"
$PWD
/qtbase/bin/
${
toolname
}
\"\$
@
\"
"
>
"
$HOME
/
${
toolname
}
"
chmod
+x
"
$HOME
/
${
toolname
}
"
fi
}
# set defaults
build_dir
=
${
PARAM_build
:-
"qt-build"
}
target
=
$PARAM_target
...
...
@@ -78,4 +89,7 @@ else
>
&2
echo
"No build system generated, aborting"
fi
link_tool qmake
link_tool qt-cmake
exit
$error
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