mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +00:00
Merge pull request #1169 from eightyeight/add-vagrant
Add Vagrant config
This commit is contained in:
commit
8f94614a6e
3 changed files with 74 additions and 0 deletions
38
Tools/Vagrant/Vagrantfile
vendored
Normal file
38
Tools/Vagrant/Vagrantfile
vendored
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
# -*- mode: ruby -*-
|
||||||
|
# vi: set ft=ruby :
|
||||||
|
|
||||||
|
def gui?
|
||||||
|
!ENV.fetch('GUI', '').empty?
|
||||||
|
end
|
||||||
|
|
||||||
|
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
|
||||||
|
VAGRANTFILE_API_VERSION = '2'
|
||||||
|
|
||||||
|
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
||||||
|
config.vm.box = 'ubuntu/trusty64'
|
||||||
|
|
||||||
|
config.vm.provider 'virtualbox' do |vb|
|
||||||
|
vb.memory = 1024
|
||||||
|
if gui?
|
||||||
|
vb.memory = 2048
|
||||||
|
vb.customize ['modifyvm', :id, '--vram', '256']
|
||||||
|
vb.customize ['modifyvm', :id, '--accelerate3d', 'on']
|
||||||
|
vb.customize ['modifyvm', :id, '--hwvirtex', 'on']
|
||||||
|
vb.gui = true
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
config.vm.synced_folder '../../', '/torque'
|
||||||
|
|
||||||
|
config.vm.provision :shell, path: 'provision.sh'
|
||||||
|
if gui?
|
||||||
|
config.vm.provision :shell, path: 'provision-gui.sh'
|
||||||
|
end
|
||||||
|
|
||||||
|
# config.vm.network 'forwarded_port', guest: 80, host: 8080
|
||||||
|
|
||||||
|
# More info at http://fgrehm.viewdocs.io/vagrant-cachier/usage
|
||||||
|
if Vagrant.has_plugin?('vagrant-cachier')
|
||||||
|
config.cache.scope = :box
|
||||||
|
end
|
||||||
|
end
|
||||||
5
Tools/Vagrant/provision-gui.sh
Normal file
5
Tools/Vagrant/provision-gui.sh
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
# Install Unity desktop for GUI purposes.
|
||||||
|
apt-get install --no-install-recommends \
|
||||||
|
ubuntu-desktop \
|
||||||
|
gnome-terminal \
|
||||||
|
-y
|
||||||
31
Tools/Vagrant/provision.sh
Normal file
31
Tools/Vagrant/provision.sh
Normal file
|
|
@ -0,0 +1,31 @@
|
||||||
|
# Make sure package listings are up to date.
|
||||||
|
apt-get update -y
|
||||||
|
|
||||||
|
# Install software for development.
|
||||||
|
sudo apt-get install \
|
||||||
|
git \
|
||||||
|
build-essential \
|
||||||
|
nasm \
|
||||||
|
cmake \
|
||||||
|
cmake-qt-gui \
|
||||||
|
xorg-dev \
|
||||||
|
ninja-build \
|
||||||
|
gcc-multilib \
|
||||||
|
g++-multilib \
|
||||||
|
-y
|
||||||
|
|
||||||
|
# Install libraries.
|
||||||
|
sudo apt-get install \
|
||||||
|
libogg-dev \
|
||||||
|
libxft-dev \
|
||||||
|
libx11-dev \
|
||||||
|
libxxf86vm-dev \
|
||||||
|
libopenal-dev \
|
||||||
|
libfreetype6-dev \
|
||||||
|
libxcursor-dev \
|
||||||
|
libxinerama-dev \
|
||||||
|
libxi-dev \
|
||||||
|
libxrandr-dev \
|
||||||
|
libxss-dev \
|
||||||
|
libglu1-mesa-dev \
|
||||||
|
-y
|
||||||
Loading…
Add table
Add a link
Reference in a new issue