mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 15:44:36 +00:00
Started to work on Vagrant configuration.
This commit is contained in:
parent
9a0247f780
commit
db06ffec7d
2 changed files with 63 additions and 0 deletions
25
Tools/Vagrant/Vagrantfile
vendored
Normal file
25
Tools/Vagrant/Vagrantfile
vendored
Normal file
|
|
@ -0,0 +1,25 @@
|
||||||
|
# -*- mode: ruby -*-
|
||||||
|
# vi: set ft=ruby :
|
||||||
|
|
||||||
|
# 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/trusty32'
|
||||||
|
|
||||||
|
config.vm.provider 'virtualbox' do |vb|
|
||||||
|
vb.gui = true
|
||||||
|
vb.memory = 1024
|
||||||
|
end
|
||||||
|
|
||||||
|
config.vm.synced_folder '../../', '/torque'
|
||||||
|
|
||||||
|
config.vm.provision :shell, path: 'provision.sh'
|
||||||
|
|
||||||
|
# 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
|
||||||
38
Tools/Vagrant/provision.sh
Normal file
38
Tools/Vagrant/provision.sh
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
# Make sure package listings are up to date.
|
||||||
|
apt-get update -y
|
||||||
|
|
||||||
|
# Install Unity desktop for GUI purposes.
|
||||||
|
apt-get install -y --no-install-recommends ubuntu-desktop
|
||||||
|
|
||||||
|
# Install software for development.
|
||||||
|
apt-get install \
|
||||||
|
terminal \
|
||||||
|
git \
|
||||||
|
-y
|
||||||
|
|
||||||
|
# Install Torque-specific binaries.
|
||||||
|
sudo apt-get install \
|
||||||
|
build-essential \
|
||||||
|
nasm \
|
||||||
|
xorg-dev \
|
||||||
|
ninja-build \
|
||||||
|
gcc-multilib \
|
||||||
|
g++-multilib \
|
||||||
|
cmake \
|
||||||
|
cmake-qt-gui \
|
||||||
|
--ignore-missing -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 \
|
||||||
|
--ignore-missing -y
|
||||||
Loading…
Add table
Add a link
Reference in a new issue