-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·38 lines (29 loc) · 902 Bytes
/
build.sh
File metadata and controls
executable file
·38 lines (29 loc) · 902 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
35
36
37
38
#!/bin/bash
# Build script for ACE Examples
set -e
# Colors for output
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
NC='\033[0m' # No Color
echo -e "${GREEN}Building ACE Examples...${NC}"
# Create build directory
BUILD_DIR="build"
if [ ! -d "$BUILD_DIR" ]; then
echo -e "${YELLOW}Creating build directory...${NC}"
mkdir -p "$BUILD_DIR"
fi
cd "$BUILD_DIR"
# Configure with CMake
echo -e "${YELLOW}Configuring with CMake...${NC}"
cmake .. -DCMAKE_BUILD_TYPE=Debug
# Build
echo -e "${YELLOW}Building...${NC}"
make -j$(nproc)
echo -e "${GREEN}Build completed successfully!${NC}"
echo -e "${YELLOW}Executables are located in:${NC}"
find . -name "hello_reactor" -type f -executable
echo -e "${YELLOW}To run the hello_reactor example:${NC}"
echo "cd build && ./hello_reactor/hello_reactor"
echo -e "${YELLOW}Or use the custom target:${NC}"
echo "cd build && make run_hello_reactor"