agra
|
4c6c29b299
|
specs: §10.5 Bundling and Post-Link Callbacks
Documents the post-link callback model that the bundling-in-sx campaign
landed (Weeks 6 + 7):
- Explicit opt-in via `BuildOptions.set_post_link_callback(fn)` or
`set_post_link_module(name)` from a user `#run` block. No stdlib
default; no implicit prelude. CLI `--bundle` / `--apk` auto-fallback
to `post_link_module = "platform.bundle"` so existing CLI invocations
keep working without an in-source registration.
- `BuildOptions` surface: setters (link_flag / framework / output_path
/ wasm_shell / asset_dir / post_link_callback / post_link_module /
bundle_path / bundle_id / codesign_identity / provisioning_profile /
manifest_path / keystore_path) + accessors (binary_path / target_triple
/ is_macos / is_ios / is_ios_device / is_ios_simulator / is_android /
framework / framework_path / jni_main / asset_dir families). Returned
strings are "" when unset; counts are 0.
- `fs.sx` / `process.sx` stdlib modules. Both work in two execution
contexts: at runtime via the dynamic linker, and at #run / post-link
via `src/ir/host_ffi.zig`'s dlsym(RTLD_DEFAULT) trampolines.
- Per-target Apple `.app` flow: stage + Info.plist (macOS minimal vs
iOS-shaped UIDeviceFamily/LSRequiresIPhoneOS/UIApplicationSceneManifest/
DTPlatformName) + provisioning embed (iOS device) + Frameworks/ embed
(iOS) + entitlements extraction (`security cms` + 3× `plutil`) +
codesign with --entitlements when present.
- Android `.apk` flow: SDK discovery → highest build-tools / platforms
via `ls -1 | sort -V | tail -1` → stage lib/arm64-v8a/<libfoo.so> →
manifest synth (NativeActivity vs `#jni_main` Activity) → javac + d8
per `#jni_main` decl → aapt2 link → zip lib/dex/assets → zipalign →
keytool debug keystore (first use) → apksigner sign.
|
2026-05-23 01:35:05 +03:00 |
|
agra
|
f9ecf9d00e
|
iOS lock step keyboard + metal
|
2026-05-18 17:40:10 +03:00 |
|
agra
|
67e02a20a5
|
...
|
2026-03-04 09:18:24 +02:00 |
|
agra
|
6c5672c7df
|
trailing commas
|
2026-03-03 09:42:01 +02:00 |
|
agra
|
bbb5426777
|
sm
|
2026-03-02 21:00:55 +02:00 |
|
agra
|
566121c45a
|
more forward declarations
|
2026-02-24 17:37:52 +02:00 |
|
agra
|
b98711a1d3
|
imports
|
2026-02-24 13:37:27 +02:00 |
|
agra
|
170e236764
|
vtables, protocol
|
2026-02-24 06:20:38 +02:00 |
|
agra
|
0cc7b69441
|
closures
|
2026-02-23 13:45:44 +02:00 |
|
agra
|
1cc67f9b5a
|
optionals
|
2026-02-22 22:16:30 +02:00 |
|
agra
|
6f927361aa
|
pipes
|
2026-02-20 13:28:38 +02:00 |
|
agra
|
1ecac79642
|
bit ops
|
2026-02-20 12:12:51 +02:00 |
|
agra
|
e0e655cd36
|
tuples
|
2026-02-19 01:26:04 +02:00 |
|
agra
|
fbf8a62362
|
comptime format
|
2026-02-18 18:57:51 +02:00 |
|
agra
|
4aff004118
|
http server
|
2026-02-17 19:49:01 +02:00 |
|
agra
|
4fd87309d9
|
http server
|
2026-02-17 16:57:12 +02:00 |
|
agra
|
c8ceceed0f
|
...
|
2026-02-16 01:58:30 +02:00 |
|
agra
|
58e2a5bdb1
|
multiple assign
|
2026-02-16 01:13:34 +02:00 |
|
agra
|
fb60818424
|
for arr: (it) {}
|
2026-02-16 00:55:03 +02:00 |
|
agra
|
e7d2abdf0c
|
layout
|
2026-02-14 21:28:49 +02:00 |
|
agra
|
d61c6488f3
|
@ enum type
|
2026-02-14 14:52:39 +02:00 |
|
agra
|
fe7efeadb0
|
flags
|
2026-02-14 14:03:22 +02:00 |
|
agra
|
025b790411
|
enum, union
|
2026-02-14 13:17:22 +02:00 |
|
agra
|
4ff828fd1a
|
sdl phase 2
|
2026-02-12 21:37:25 +02:00 |
|
agra
|
dab162bfe4
|
strings
|
2026-02-12 16:23:42 +02:00 |
|
agra
|
25e1372731
|
extend default to s64
|
2026-02-11 01:05:21 +02:00 |
|
agra
|
70435d3c85
|
pointers
|
2026-02-10 22:47:43 +02:00 |
|
agra
|
ef14144d49
|
...
|
2026-02-10 21:03:56 +02:00 |
|
agra
|
3fde080092
|
quick sort
|
2026-02-10 18:58:04 +02:00 |
|
agra
|
55fc5790e4
|
so... jai :D
|
2026-02-09 18:07:41 +02:00 |
|