Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
savoirfairelinux
jami-project
Commits
310e7f76
Commit
310e7f76
authored
5 years ago
by
Ming Rui Zhang
Browse files
Options
Downloads
Patches
Plain Diff
scripts: add needed cmake, qtver command into scripts
Change-Id: I5d426b9c279791f455a593120e84cc6eba7b852e
parent
4e25addd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
make-ring.py
+5
-3
5 additions, 3 deletions
make-ring.py
scripts/build-windows.py
+7
-2
7 additions, 2 deletions
scripts/build-windows.py
with
12 additions
and
5 deletions
make-ring.py
+
5
−
3
View file @
310e7f76
...
...
@@ -285,12 +285,13 @@ def run_install(args):
return
subprocess
.
run
([
sys
.
executable
,
os
.
path
.
join
(
os
.
getcwd
(),
"
scripts/build-windows.py
"
),
"
--toolset
"
,
args
.
toolset
,
"
--sdk
"
,
args
.
sdk
"
--sdk
"
,
args
.
sdk
,
"
--qtver
"
,
args
.
qtver
],
check
=
True
)
# Unix-like platforms
environ
=
os
.
environ
.
copy
()
install_args
=
[
'
-p
'
,
str
(
multiprocessing
.
cpu_count
())]
if
args
.
static
:
install_args
.
append
(
'
-s
'
)
...
...
@@ -308,7 +309,7 @@ def run_install(args):
proc
=
subprocess
.
run
([
"
brew
"
,
"
--prefix
"
,
"
qt5
"
],
stdout
=
subprocess
.
PIPE
,
check
=
True
,
universal_newlines
=
True
)
environ
[
'
CMAKE_PREFIX_PATH
'
]
=
proc
.
stdout
.
rstrip
(
"
\n
"
)
environ
[
'
CONFIGURE_FLAGS
'
]
=
'
--without-dbus
'
install_args
+=
(
"
-c
"
,
"
client-macosx
"
)
...
...
@@ -463,6 +464,7 @@ def parse_args():
if
choose_distribution
()
==
WIN32_DISTRIBUTION_NAME
:
ap
.
add_argument
(
'
--toolset
'
,
default
=
win_toolset_default
,
type
=
str
,
help
=
'
Windows use only, specify Visual Studio toolset version
'
)
ap
.
add_argument
(
'
--sdk
'
,
default
=
win_sdk_default
,
type
=
str
,
help
=
'
Windows use only, specify Windows SDK version
'
)
ap
.
add_argument
(
'
--qtver
'
,
default
=
'
5.9.4
'
,
help
=
'
Sets the Qt version to build with
'
)
parsed_args
=
ap
.
parse_args
()
...
...
This diff is collapsed.
Click to expand it.
scripts/build-windows.py
+
7
−
2
View file @
310e7f76
...
...
@@ -16,12 +16,15 @@ def execute_cmd(cmd, with_shell=False):
def
build_daemon
(
parsed_args
):
make_cmd
=
os
.
path
.
dirname
(
this_dir
)
+
'
\\
daemon
\\
msvc
\\
winmake.py
'
os
.
chdir
(
os
.
path
.
dirname
(
this_dir
)
+
'
\\
daemon
\\
msvc
'
)
execute_cmd
(
'
cmake -DCMAKE_CONFIGURATION_TYPES=
"
ReleaseLib_win32
"
-DCMAKE_VS_PLATFORM_NAME=
"
x64
"
-G
"
Visual Studio 16 2019
"
-A x64 -T $(DefaultPlatformToolset) ..
'
)
os
.
chdir
(
os
.
path
.
dirname
(
this_dir
))
return
execute_cmd
(
'
python
'
+
make_cmd
+
'
-iv -t
'
+
parsed_args
.
toolset
+
'
-s
'
+
parsed_args
.
sdk
+
'
-b daemon
'
)
def
build_lrc
(
parsed_args
):
make_cmd
=
os
.
path
.
dirname
(
this_dir
)
+
'
\\
lrc
\\
make-lrc.py
'
return
execute_cmd
(
'
python
'
+
make_cmd
+
'
-gb
'
+
'
-t
'
+
parsed_args
.
toolset
+
'
-s
'
+
parsed_args
.
sdk
)
return
execute_cmd
(
'
python
'
+
make_cmd
+
'
-gb
'
+
'
-t
'
+
parsed_args
.
toolset
+
'
-s
'
+
parsed_args
.
sdk
+
'
-q
'
+
parsed_args
.
qtver
)
def
build_client
(
parsed_args
):
...
...
@@ -29,7 +32,7 @@ def build_client(parsed_args):
ret
=
0
ret
&=
not
execute_cmd
(
'
pandoc -f markdown -t html5 -o changelog.html changelog.md
'
,
True
)
ret
&=
not
execute_cmd
(
'
python make-client.py -d
'
)
ret
&=
not
execute_cmd
(
'
python make-client.py -b
'
+
'
-t
'
+
parsed_args
.
toolset
+
'
-s
'
+
parsed_args
.
sdk
)
ret
&=
not
execute_cmd
(
'
python make-client.py -b
'
+
'
-t
'
+
parsed_args
.
toolset
+
'
-s
'
+
parsed_args
.
sdk
+
'
-q
'
+
parsed_args
.
qtver
)
if
not
os
.
path
.
exists
(
'
./x64/Release/qt.conf
'
):
ret
&=
not
execute_cmd
(
...
...
@@ -43,6 +46,8 @@ def parse_args():
help
=
'
Windows use only, specify Visual Studio toolset version
'
)
ap
.
add_argument
(
'
--sdk
'
,
default
=
''
,
type
=
str
,
help
=
'
Windows use only, specify Windows SDK version
'
)
ap
.
add_argument
(
'
--qtver
'
,
default
=
'
5.9.4
'
,
help
=
'
Sets the Qt version to build with
'
)
parsed_args
=
ap
.
parse_args
()
...
...
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