-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path3_build_aasdk.sh
More file actions
executable file
·34 lines (25 loc) · 846 Bytes
/
3_build_aasdk.sh
File metadata and controls
executable file
·34 lines (25 loc) · 846 Bytes
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
#!/bin/bash
echo "================================================================"
echo "Step 3: Build aasdk"
echo "================================================================"
WORK_DIR=$HOME/openauto
AASDK_SOURCE_DIR=$WORK_DIR/aasdk
AASDK_BUILD_DIR=$WORK_DIR/aasdk_build
echo "> Working directory: $WORK_DIR"
echo "> AASDK source directory: $AASDK_SOURCE_DIR"
# Remove any existing build files
if [ -d "$AASDK_BUILD_DIR" ]; then
echo "> Removing existing build files from $AASDK_BUILD_DIR"
sudo rm -rf $AASDK_BUILD_DIR
fi
# Create build directory
echo "> Creating build directory for aasdk"
mkdir $AASDK_BUILD_DIR
# Change directory
echo "> Changing directory to $AASDK_BUILD_DIR"
cd $AASDK_BUILD_DIR
# Make
echo "> Running cmake for aasdk"
cmake -DCMAKE_BUILD_TYPE=Release $AASDK_SOURCE_DIR
echo "> Running make for aasdk"
make