Skip to content

Commit

Permalink
Merge pull request #20 from vegastrike/cmake_and_boost
Browse files Browse the repository at this point in the history
Boost, CMake, py2
  • Loading branch information
stephengtuggy authored Aug 31, 2021
2 parents fb02f10 + ef9bf74 commit c45ccbd
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 29 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.editorconfig
41 changes: 16 additions & 25 deletions script/bootstrap
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/bin/bash
#!/usr/bin/env bash
#====================================
# @file : bootstrap
# @brief : installs dependencies for building Vega Strike
# @usage : sudo script/bootstrap
# @param : none
#====================================
# Copyright (C) 2020-2021 Stephen G. Tuggy <[email protected]>
# Copyright (C) 2020-2021 Stephen G. Tuggy
#
# This file is part of Vega Strike.
#
Expand All @@ -25,7 +25,7 @@
set -e

echo "------------------------------"
echo "--- bootstrap | 2021-08-01 ---"
echo "--- bootstrap | 2021-08-29 ---"
echo "------------------------------"

if [ -f /etc/os-release ]
Expand Down Expand Up @@ -82,7 +82,6 @@ then
apt-get -qy install \
git \
cmake \
python-dev \
build-essential \
automake \
autoconf \
Expand All @@ -99,9 +98,9 @@ then
libsdl1.2-dev \
libpostproc-dev \
freeglut3-dev \
libboost-python1.67-dev \
libboost-log1.67-dev \
libboost-regex1.67-dev \
libboost-python-dev \
libboost-log-dev \
libboost-regex-dev \
libxmu-dev \
clang \
lsb-release
Expand All @@ -112,7 +111,6 @@ then
apt-get -qy install \
git \
cmake \
python-dev \
build-essential \
automake \
autoconf \
Expand Down Expand Up @@ -204,7 +202,6 @@ then
apt-get -qy install \
git \
cmake \
python-dev \
build-essential \
automake \
autoconf \
Expand All @@ -222,9 +219,9 @@ then
libopengl0 \
libpostproc-dev \
freeglut3-dev \
libboost-python1.67-dev \
libboost-log1.67-dev \
libboost-regex1.67-dev \
libboost-python-dev \
libboost-log-dev \
libboost-regex-dev \
libxmu-dev \
clang \
lsb-release
Expand All @@ -234,9 +231,7 @@ then
apt-get -qy upgrade
apt-get -qy install \
git \
cmake \
build-essential \
python-dev \
libgl1-mesa-glx \
freeglut3-dev \
libopenal-dev \
Expand All @@ -250,7 +245,9 @@ then
libboost-regex-dev \
libxmu-dev \
clang \
lsb-release
lsb-release \
python3-pip
pip3 install --upgrade-strategy eager cmake
elif [ $LINUX_ID == "ubuntu" ] && [ $LINUX_CODENAME == "xenial" ]
then
apt-get update
Expand All @@ -259,7 +256,6 @@ then
git \
cmake \
build-essential \
python-dev \
libgl1-mesa-glx \
freeglut3-dev \
libopenal-dev \
Expand All @@ -282,7 +278,6 @@ then
apt-get -qy install \
git \
cmake \
python-dev \
build-essential \
automake \
autoconf \
Expand All @@ -300,17 +295,16 @@ then
libopengl0 \
libpostproc-dev \
freeglut3-dev \
libboost-python1.67-dev \
libboost-log1.67-dev \
libboost-regex1.67-dev \
libboost-python-dev \
libboost-log-dev \
libboost-regex-dev \
libxmu-dev \
clang \
lsb-release
elif [ $LINUX_ID == "opensuse-leap" ] && ([ $(echo ${LINUX_VERSION_ID} | cut -f 1 -d '.') -eq 15 ] && [ $(echo ${LINUX_VERSION_ID} | cut -f 2 -d '.') -ge 2 ])
then
zypper --non-interactive install -y \
libboost_log1_66_0-devel \
libboost_python-py2_7-1_66_0-devel \
libboost_python-py3-1_66_0-devel \
libboost_system1_66_0-devel \
libboost_filesystem1_66_0-devel \
Expand All @@ -333,7 +327,6 @@ then
libexpat-devel \
libgtk-3-0 \
gtk3-devel \
python-devel \
python3-devel \
git \
rpm-build \
Expand Down Expand Up @@ -383,7 +376,6 @@ then
git \
cmake \
boost-devel \
boost-python2-devel \
boost-python3-devel \
freeglut-devel \
gcc-c++ \
Expand All @@ -394,7 +386,6 @@ then
libpng-devel \
expat-devel \
gtk3-devel \
python2-devel \
python3-devel \
rpm-build \
make \
Expand Down Expand Up @@ -445,7 +436,7 @@ then
rpm-build \
make \
clang
elif [ $LINUX_ID == "rocky" ] && [ $LINUX_VERSION_ID == "8.4" ]
elif [ $LINUX_ID == "rocky" ] && ([ $(echo ${LINUX_VERSION_ID} | cut -f 1 -d '.') -eq 8 ] && [ $(echo ${LINUX_VERSION_ID} | cut -f 2 -d '.') -ge 4 ])
then
dnf -y install dnf-plugins-core
dnf -y install epel-release
Expand Down
7 changes: 3 additions & 4 deletions script/cibuild
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
#!/bin/bash
#!/usr/bin/env bash
#====================================
# @file : cibuild
# @brief : Builds the docker images
# in the context of CI/CD (Travis)
# @brief : Builds the docker images in the context of CI/CD (GitHub Actions)
# @usage : script/cibuild
# @param : none
#====================================
# Copyright (C) 2020 Stephen G. Tuggy <[email protected]>
# Copyright (C) 2020-2021 Stephen G. Tuggy
#
# This file is part of Vega Strike.
#
Expand Down

0 comments on commit c45ccbd

Please sign in to comment.