Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 66 additions & 0 deletions build-Linux.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
#!/bin/bash

Build()
{
echo "Building Archetype:"
echo "Create build directory"
mkdir -p build && cd build
echo "Build make files"
cmake ../drivers/archetype .
echo "Build the project"
make
echo
echo "To use Archetype run build/archetype"
echo
}

Clean()
{
DIRECTORY=./build
if [ ! -d "$DIRECTORY" ]; then
echo "build directory does not exist."
else
read -r -p "Delete build directory? [y/N] " response
case "$response" in
[yY][eE][sS]|[yY])
echo "Deleting build directory"
rm -rf $DIRECTORY
;;
*)
echo "Deleting cancelled"
;;
esac
fi
}

Help()
{
# Display Help
echo "Build archetype for Linux."
echo
echo "Syntax: "$0" [-b|c|h]"
echo "options:"
echo "b Build the project."
echo "c Clean the project (deleted build directory)."
echo "h Print this Help."
echo
}

while getopts ":bch" option; do
case $option in
h) # display Help
Help
exit;;
b) # build
Build
exit;;
c) # delete build directory
Clean
exit;;
*)
Help
exit;;
esac
done

Help
4 changes: 4 additions & 0 deletions drivers/archetype/Serialization.hh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
#include <string>
#include <vector>

#ifdef __linux__
#include <iterator>
#endif /* linux */

namespace archetype {
class Storage {
public:
Expand Down