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
519c2460
Unverified
Commit
519c2460
authored
Dec 05, 2019
by
Gus Grubba
Committed by
GitHub
Dec 05, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8090 from peterbarker/pr/vagrant-updates
Vagrant updates
parents
858a4dce
9a174d72
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
13 deletions
+40
-13
.vagrantconfig.yml
.vagrantconfig.yml
+6
-6
Vagrantfile
Vagrantfile
+34
-7
No files found.
.vagrantconfig.yml
View file @
519c2460
configs
:
configs
:
dev
:
dev
:
'
qt_deps_tarball'
:
'
Qt5.11.0-gcc_64-min.tar.bz2'
'
qt_deps_tarball'
:
'
Qt5.11.0-gcc_64-min.tar.bz2'
'
qt_deps_unpack_parent_dir'
:
'
/
tmp
'
'
qt_deps_unpack_parent_dir'
:
'
/
home/vagrant
'
'
qt_deps_unpack_dir'
:
'
/
tmp
/Qt5.11-gcc_64/5.11.0'
'
qt_deps_unpack_dir'
:
'
/
home/vagrant
/Qt5.11-gcc_64/5.11.0'
'
qt_deps_bin_unpack_dir'
:
'
/
tmp
/Qt5.11-gcc_64/5.11.0/gcc_64/bin'
'
qt_deps_bin_unpack_dir'
:
'
/
home/vagrant
/Qt5.11-gcc_64/5.11.0/gcc_64/bin'
'
qt_deps_lib_unpack_dir'
:
'
/
tmp
/Qt5.11-gcc_64/5.11.0/gcc_64/lib'
'
qt_deps_lib_unpack_dir'
:
'
/
home/vagrant
/Qt5.11-gcc_64/5.11.0/gcc_64/lib'
'
qt_deps_plugins_unpack_dir'
:
'
/
tmp
/Qt5.11-gcc_64/5.11.0/gcc_64/plugins'
'
qt_deps_plugins_unpack_dir'
:
'
/
home/vagrant
/Qt5.11-gcc_64/5.11.0/gcc_64/plugins'
'
qt_deps_qml_unpack_dir'
:
'
/
tmp
/Qt5.11-gcc_64/5.11.0/gcc_64/qml'
'
qt_deps_qml_unpack_dir'
:
'
/
home/vagrant
/Qt5.11-gcc_64/5.11.0/gcc_64/qml'
'
project_root_dir'
:
'
/vagrant'
'
project_root_dir'
:
'
/vagrant'
...
...
Vagrantfile
View file @
519c2460
...
@@ -20,13 +20,13 @@ Vagrant.configure(2) do |config|
...
@@ -20,13 +20,13 @@ Vagrant.configure(2) do |config|
override
.
vm
.
box
=
"tknerr/baseimage-ubuntu-16.04"
override
.
vm
.
box
=
"tknerr/baseimage-ubuntu-16.04"
end
end
config
.
vm
.
provider
:virtualbox
do
|
vb
|
config
.
vm
.
provider
:virtualbox
do
|
vb
|
vb
.
customize
[
"modifyvm"
,
:id
,
"--memory"
,
"
4096
"
]
vb
.
customize
[
"modifyvm"
,
:id
,
"--memory"
,
"
6144
"
]
vb
.
customize
[
"modifyvm"
,
:id
,
"--cpus"
,
"1"
]
vb
.
customize
[
"modifyvm"
,
:id
,
"--cpus"
,
"1"
]
vb
.
gui
=
true
vb
.
gui
=
true
end
end
[
"vmware_fusion"
,
"vmware_workstation"
].
each
do
|
p
|
[
"vmware_fusion"
,
"vmware_workstation"
].
each
do
|
p
|
config
.
vm
.
provider
p
do
|
v
|
config
.
vm
.
provider
p
do
|
v
|
v
.
vmx
[
"memsize"
]
=
"
4096
"
v
.
vmx
[
"memsize"
]
=
"
6144
"
v
.
vmx
[
"numvcpus"
]
=
"1"
v
.
vmx
[
"numvcpus"
]
=
"1"
v
.
gui
=
true
v
.
gui
=
true
end
end
...
@@ -67,11 +67,38 @@ Vagrant.configure(2) do |config|
...
@@ -67,11 +67,38 @@ Vagrant.configure(2) do |config|
su - vagrant -c 'rm -rf %{shadow_build_dir}'
su - vagrant -c 'rm -rf %{shadow_build_dir}'
su - vagrant -c 'mkdir -p %{shadow_build_dir}'
su - vagrant -c 'mkdir -p %{shadow_build_dir}'
su - vagrant -c "cd %{shadow_build_dir}; LD_LIBRARY_PATH=%{qt_deps_lib_unpack_dir} PATH=%{qt_deps_bin_unpack_dir}:
\$
PATH qmake -r %{pro} CONFIG+=
\$
{CONFIG} CONFIG+=WarningsAsErrorsOn -spec %{spec}"
su - vagrant -c "cd %{shadow_build_dir}; LD_LIBRARY_PATH=%{qt_deps_lib_unpack_dir} PATH=%{qt_deps_bin_unpack_dir}:
\$
PATH make -j${JOBS}"
#su - vagrant -c 'mkdir -p %{shadow_build_dir}/release/package'
# write out a pair of scripts to make rebuilding on the VM easy:
#su - vagrant -c 'cd %{project_root_dir}; ./deploy/create_linux_appimage.sh %{project_root_dir} %{shadow_build_dir}/release %{shadow_build_dir}/release/package'
su - vagrant -c "cat <<QMAKE >do-qmake.sh
#!/bin/bash
set -e
set -x
cd %{shadow_build_dir}
export LD_LIBRARY_PATH=%{qt_deps_lib_unpack_dir}
export PATH=%{qt_deps_bin_unpack_dir}:
\$
PATH
qmake -r %{pro} CONFIG+=
\$
{CONFIG} CONFIG+=WarningsAsErrorsOn -spec %{spec}
QMAKE
"
su - vagrant -c "cat <<MAKE >do-make.sh
#!/bin/bash
set -e
set -x
cd %{shadow_build_dir}
export LD_LIBRARY_PATH=%{qt_deps_lib_unpack_dir}
export PATH=%{qt_deps_bin_unpack_dir}:
\$
PATH
make -j${JOBS}
MAKE
"
su - vagrant -c "chmod +x do-qmake.sh do-make.sh"
# now run the scripts:
su - vagrant -c ./do-qmake.sh
su - vagrant -c ./do-make.sh
SHELL
SHELL
...
@@ -81,7 +108,7 @@ Vagrant.configure(2) do |config|
...
@@ -81,7 +108,7 @@ Vagrant.configure(2) do |config|
:pro
=>
yaml_config
[
'pro'
],
:pro
=>
yaml_config
[
'pro'
],
:spec
=>
yaml_config
[
'spec'
],
:spec
=>
yaml_config
[
'spec'
],
:deps_url
=>
yaml_config
[
'deps_url'
],
:deps_url
=>
yaml_config
[
'deps_url'
],
:apt_pkgs
=>
(
travisfile
[
'addons'
][
'apt'
][
'packages'
]
+
[
'git'
,
'build-essential'
,
'fuse'
]).
join
(
' '
),
:apt_pkgs
=>
(
travisfile
[
'addons'
][
'apt'
][
'packages'
]
+
[
'git'
,
'build-essential'
,
'fuse'
,
'libsdl2-dev'
]).
join
(
' '
),
:build_env
=>
travisfile
[
'env'
][
'global'
].
select
{
|
item
|
item
.
is_a?
(
String
)
}.
join
(
' '
),
:build_env
=>
travisfile
[
'env'
][
'global'
].
select
{
|
item
|
item
.
is_a?
(
String
)
}.
join
(
' '
),
:project_root_dir
=>
yaml_config
[
'project_root_dir'
],
:project_root_dir
=>
yaml_config
[
'project_root_dir'
],
...
...
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