-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
63 lines (52 loc) · 1.37 KB
/
Copy pathbuild.sh
File metadata and controls
63 lines (52 loc) · 1.37 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/bin/bash
echo "========================================"
echo "Building Skeleton Vulkan (macOS)"
echo "========================================"
echo ""
# Detect CMake path
if [ -x "/usr/local/bin/cmake" ]; then
CMAKE_PATH="/usr/local/bin/cmake"
elif [ -x "/opt/homebrew/bin/cmake" ]; then
CMAKE_PATH="/opt/homebrew/bin/cmake"
elif command -v cmake &> /dev/null; then
CMAKE_PATH="cmake"
else
echo "[ERROR] CMake not found. Please install CMake."
echo " brew install cmake"
exit 1
fi
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
BUILD_DIR="$SCRIPT_DIR/build_mac"
SOURCE_DIR="$SCRIPT_DIR"
echo "CMake: $CMAKE_PATH"
echo "Build directory: $BUILD_DIR"
echo ""
# Configure
echo "[1/2] Configuring CMake..."
echo ""
$CMAKE_PATH -B "$BUILD_DIR" -S "$SOURCE_DIR" \
-DCMAKE_BUILD_TYPE=Release
if [ $? -ne 0 ]; then
echo ""
echo "[ERROR] CMake configuration failed!"
exit 1
fi
echo ""
echo "[2/2] Building..."
echo ""
$CMAKE_PATH --build "$BUILD_DIR" --config Release
if [ $? -ne 0 ]; then
echo ""
echo "[ERROR] Build failed!"
exit 1
fi
echo ""
echo "========================================"
echo "BUILD SUCCESSFUL"
echo "========================================"
echo ""
echo "Output: build_mac/Release/SkeletonVulkan.plugin"
echo ""
echo "Install by copying to:"
echo " /Library/Application Support/Adobe/Common/Plug-ins/7.0/MediaCore/"
echo ""