Files

17 lines
819 B
Bash
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/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