#!/bin/bash # Build the Files app (MeowOS 外置文件管理器 os.meow.files,SDK framework=1): # 链 meow_ui.a(已内含 meow_font.o)+ 系统 libz.a + -lpthread,静态 MIPS32r2 (musl sf)。 # 多文件结构(仿 hello_app 批次②拆分):app.c + ui/browser.c + ui/viewer.c + # ui/common/chrome.c + logic/fsx.c。仅改本目录文件,编译期不改 SDK(patch_v2/sdk/ 零触及)。 # mipsel -Wall -Wextra 0 warning。 set -e cd "$(dirname "$0")" ROOT="$HOME/Project/R3ProII" CC="$ROOT/.tools/zig-mipsel-cc" SYSROOT="$ROOT/.tools/mipsel-linux-muslsf-cross/mipsel-linux-muslsf" "$CC" -Os -static -Wall -Wextra -I../sdk -I../meow_launcherd -I. \ app.c ui/browser.c ui/viewer.c ui/common/chrome.c logic/fsx.c \ ../sdk/meow_ui.a "$SYSROOT/lib/libz.a" -lpthread -o files ls -la files file files