-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild-test-sdl.sh
More file actions
37 lines (31 loc) · 1017 Bytes
/
Copy pathbuild-test-sdl.sh
File metadata and controls
37 lines (31 loc) · 1017 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
#!/bin/bash
# =============================================================================
# Build AWFUI Test Example with SDL Backend
#
# This script builds the AWFUI test example using the SDL backend
# for desktop testing and development.
#
# Usage:
# ./build-test-sdl.sh
#
# Requirements:
# - CMake 3.14+
# - SDL2 development libraries
# - GCC or Clang compiler
# =============================================================================
set -e # Exit on any error
echo "Building AWFUI Test Example with SDL Backend..."
# Configure with SDL backend
echo "Configuring with sdl-ninja preset..."
cmake --preset sdl-ninja -S . -B build/test-sdl -DAWFUI_BUILD_EXAMPLES=ON
# Build the test example
echo "Building awfui_test target..."
cmake --build build/test-sdl --target awfui_test
echo "Build completed successfully!"
echo ""
echo "To run the test:"
echo " cd build/test-sdl"
echo " ./examples/test/awfui_test"
echo ""
echo "Or run directly:"
echo " ./build/test-sdl/examples/test/awfui_test"