Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
356c3975
Commit
356c3975
authored
1 month ago
by
Andreas Traczyk
Browse files
Options
Downloads
Patches
Plain Diff
Windows-build: improve search for jom.exe
Change-Id: I8695b0774f930841f8667c97f3a7642f98de78a7
parent
8a28f277
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
extras/scripts/winmake.py
+31
-7
31 additions, 7 deletions
extras/scripts/winmake.py
with
31 additions
and
7 deletions
extras/scripts/winmake.py
+
31
−
7
View file @
356c3975
...
...
@@ -49,13 +49,37 @@ def build_contrib(args, paths):
"
CONTRIB_SRC_DIR
"
:
os
.
path
.
join
(
paths
.
contrib_dir
,
"
src
"
),
}
)
# Find JOM if it is installed. (default C:/Qt/Tools/QtCreator/bin/jom)
# Used to accelerate the build process when normally using nmake.
qt_tools_dir
=
os
.
path
.
join
(
os
.
getenv
(
"
QTDIR
"
,
"
C:\Qt
"
),
"
Tools
"
)
jom_path
=
os
.
path
.
join
(
qt_tools_dir
,
"
QtCreator
"
,
"
bin
"
,
"
jom
"
,
"
jom.exe
"
)
if
os
.
path
.
exists
(
jom_path
):
log
.
info
(
"
Found JOM at
"
+
jom_path
)
sh_exec
.
append_extra_env_vars
({
"
MAKE_TOOL
"
:
jom_path
})
# Allow supplying the path to the jom executable via the environment variable JOM_PATH.
# It is used to accelerate the build processes that use nmake.
jom_path
=
os
.
getenv
(
"
JOM_PATH
"
)
if
jom_path
and
os
.
path
.
exists
(
jom_path
):
log
.
info
(
f
"
Using JOM from environment:
{
jom_path
}
"
)
else
:
# Try to find JOM in the default Qt installation path
qt_tools_dir
=
os
.
path
.
join
(
os
.
getenv
(
"
QTDIR
"
,
"
C:
\\
Qt
"
),
"
Tools
"
)
jom_path
=
os
.
path
.
join
(
qt_tools_dir
,
"
QtCreator
"
,
"
bin
"
,
"
jom
"
,
"
jom.exe
"
)
if
not
os
.
path
.
exists
(
jom_path
):
# Fallback to looking in other common Qt Creator paths
qt_creator_paths
=
[
os
.
path
.
join
(
qt_tools_dir
,
"
QtCreator
"
),
os
.
path
.
join
(
os
.
getenv
(
"
ProgramFiles
"
,
"
C:
\\
Program Files
"
),
"
Qt Creator
"
),
os
.
path
.
join
(
os
.
getenv
(
"
ProgramFiles(x86)
"
,
"
C:
\\
Program Files (x86)
"
),
"
Qt Creator
"
)
]
for
path
in
qt_creator_paths
:
test_path
=
os
.
path
.
join
(
path
,
"
bin
"
,
"
jom
"
,
"
jom.exe
"
)
if
os
.
path
.
exists
(
test_path
):
jom_path
=
test_path
break
if
os
.
path
.
exists
(
jom_path
):
log
.
info
(
f
"
Found JOM at:
{
jom_path
}
"
)
else
:
log
.
warning
(
"
JOM not found. Build performance may be reduced.
"
)
return
sh_exec
.
append_extra_env_vars
({
"
MAKE_TOOL
"
:
jom_path
})
versioner
.
builder
.
set_vs_env_init_cb
(
vs_env_init_cb
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment