- Add build environment setup (scripts/common/env.sh, versions.sh, functions.sh) - Add dependency build scripts for Zstd, GLM, FreeType, HarfBuzz, Pixman, Cairo - Add placeholder scripts for OpenCASCADE, ngspice, protobuf - Add WASM compatibility layer (wasm/kiplatform/, wasm/libcontext/) - Add CMake modules for KiCad WASM cross-compilation - Add PCBnew test infrastructure (tests/kicad/) - Add build plan documentation Successfully tested builds: Zstd 1.5.5, GLM 0.9.9.8, FreeType 2.13.2, HarfBuzz 8.3.0, Pixman 0.42.2, Cairo 1.18.0 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
25 lines
577 B
CMake
25 lines
577 B
CMake
# WASM implementation of kiplatform
|
|
# Provides WASM-specific implementations of KiCad's platform abstraction layer
|
|
|
|
set(KIPLATFORM_WASM_SRCS
|
|
app.cpp
|
|
drivers.cpp
|
|
environment.cpp
|
|
io.cpp
|
|
policy.cpp
|
|
secrets.cpp
|
|
sysinfo.cpp
|
|
ui.cpp
|
|
)
|
|
|
|
add_library(kiplatform_wasm STATIC ${KIPLATFORM_WASM_SRCS})
|
|
|
|
target_include_directories(kiplatform_wasm PUBLIC
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../config
|
|
${PROJECT_ROOT}/kicad/libs/kiplatform/include
|
|
)
|
|
|
|
# Link with wxWidgets
|
|
target_link_libraries(kiplatform_wasm
|
|
# wxWidgets will be added during main build
|
|
)
|