Commit 45db7873 authored by Evgeny Kusmenko's avatar Evgeny Kusmenko
Browse files

Merge branch 'compile-script-fix' into 'master'

Added OS check

Closes #3

See merge request !2
parents c031d9a2 a4d2dbf6
......@@ -2,9 +2,15 @@
source ./variables.sh
if [[ "$OSTYPE" == "linux-gnu" ]]; then
OS="linux";
elif [[ "$OSTYPE" == "darwin" ]]; then
OS="darwin";
fi
g++ -shared -fPIC \
-I $JAVA_HOME/include/ \
-I $JAVA_HOME/include/darwin \
-I $JAVA_HOME/include/$OS \
-I $ARMADILLO_HOME/include \
-o $AUTOPILOT_DLL_DIR/AutopilotAdapter.dll \
$AUTOPILOT_CPP_DIR/AutopilotAdapter.cpp \
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment