This repository was archived by the owner on Mar 1, 2023. It is now read-only.
forked from salvAuri/optimisationRefactoring
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVagrantfile
More file actions
59 lines (48 loc) · 1.27 KB
/
Vagrantfile
File metadata and controls
59 lines (48 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# -*- mode: ruby -*-
# vi: set ft=ruby :
$adol_c = <<SCRIPT
sudo apt-get update
# dev tools
sudo apt-get install -y \
build-essential \
automake autoconf
# gitlab ci
sudo apt-get install -y -qq \
libcolpack-dev \
libboost-all-dev
# adol-c
sudo apt-get install -y \
texlive-full
cd /vagrant/optimisationRefactoring/differentiatedCAD/adol-c
./update_versions.sh
./configure --prefix=$(cd .. && pwd)/adolc_base
automake
make
make install
SCRIPT
$occt = <<SCRIPT
sudo apt-get update
# OCCT
sudo apt-get install -y \
cmake cmake-curses-gui \
tcl tcl-dev \
tk tk-dev \
libfreetype6 \
libfreeimage3 libfreeimage-dev \
libadolc2 libadolc-dev
mkdir -p /vagrant/optimisationRefactoring/differentiatedCAD/build
mkdir -p /vagrant/optimisationRefactoring/differentiatedCAD/install
cd /vagrant/optimisationRefactoring/differentiatedCAD/build
cmake -G 'Unix Makefiles' ../occt-min-topo-src/
make -j$(nproc)
make install
SCRIPT
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/xenial64"
config.vm.provider "virtualbox" do |vb|
vb.memory = "2048"
vb.cpus = "2"
end
config.vm.provision "adol-c", type: "shell", inline: $adol_c
config.vm.provision "occt", type: "shell", inline: $occt
end