also looking at this
feat(video): add native AVC/HEVC and synchronized AAC MP4 streaming
#913
14 files
+1119
-0
| @@ -0,0 +1,11 @@ | ||
| 1 | #!/bin/sh | |
| 2 | # Focused suite for the optional Home AVC/HEVC + MP4 modules. No FFmpeg. | |
| 3 | set -eu | |
| 4 | cd "$(dirname "$0")" | |
| 5 | build_dir=$(mktemp -d "${TMPDIR:-/tmp}/home-native-media.XXXXXX") | |
| 6 | trap 'rm -rf "$build_dir"' EXIT HUP INT TERM | |
| 7 | cc -std=c11 -Wall -Wextra -Werror $(pkg-config --cflags x264 x265) -c src/codecs/video/native_encoder.c -o "$build_dir/encoder.o" | |
| 8 | ${ZIG:-zig} fmt --check src/codecs/video/native_encoder.zig src/codecs/video/rgb_i420.zig src/containers/mp4_stream.zig src/native_media_tests.zig | |
| 9 | for mode in Debug ReleaseSafe; do | |
| 10 | ${ZIG:-zig} test src/native_media_tests.zig -O "$mode" -lc "$build_dir/encoder.o" $(pkg-config --libs x264 x265) ${HOME_MEDIA_LDFLAGS:-} | |
| 11 | done | |