feat: migrate to unified Meson-based WASM build system #2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This commit migrates GLib.wasm to a unified Meson-based build system following the GTK.wasm pattern, with comprehensive web-native optimizations and Deno-first TypeScript integration.
Build System
Unified Meson Configuration
Add WASM-specific build options to meson.options:
Enhance wasm/meson.build with conditional compilation:
Create scripts/unified-build.sh:
Dependency Management
TypeScript Integration
Enhanced Type Definitions (src/lib/types.ts)
Complete API Implementation (src/lib/index.ts)
Testing & Validation
Performance Tests (tests/deno/performance.test.ts)
SIMD Benchmark (bench/simd_bench.ts)
Documentation
Updated README.md
Updated deno.json
Success Criteria
✅ Unified Meson build system created with options
✅ Conditional compilation for all build types
✅ Build automation script with validation
✅ TypeScript integration with complete API
✅ Comprehensive type definitions
✅ Performance validation tests
✅ SIMD benchmark suite
✅ Updated documentation (README + deno.json)
✅ Dependency manifest enhanced
Next Steps
To build and test:
Note: Actual WASM builds require Emscripten SDK and Meson installed.