hello c06b3b4f→07b1ee37; mipsel -Wall -Wextra 0 warning; 宿主 P1c/P2/P3 + widgets 全 PASS SDK 后续项(本批 App 层显式驱动适配, 未动 SDK): view enter/leave 不递归 children + on_event 路由未接线 — 待 SDK 侧补
20 lines
1.0 KiB
Bash
Executable File
20 lines
1.0 KiB
Bash
Executable File
#!/bin/bash
|
||
# Build the hello app (SDK B1, 视图框架批次③目录嵌套+视图深度化): 链 meow_ui.a(已内含 meow_font.o),
|
||
# 额外链系统 libz.a(meow_font 的 inflate 依赖)+ -lpthread。静态 MIPS32r2 (musl sf)。
|
||
# 批次②:hello.c 拆为多文件(app.c + ui/home.c + ui/full.c + ui/demo.c + ui/common/chrome.c +
|
||
# logic/notify.c + logic/state.c)。
|
||
# 批次③:ui/home、ui/demo 子目录化(ui/home/home.c + ui/demo/demo.c);demo 列表区块抽成
|
||
# CONTAINER 子视图 ui/demo/list/list.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. \
|
||
app.c ui/home/home.c ui/full.c ui/demo/demo.c ui/demo/list/list.c ui/common/chrome.c \
|
||
logic/notify.c logic/state.c \
|
||
../sdk/meow_ui.a "$SYSROOT/lib/libz.a" -lpthread -o hello
|
||
ls -la hello
|
||
file hello
|