andrey
|
94084fb351
|
Merge branch 'master' into webasm
Переработка ветки под систему фиче-флагов master:
- CMake-секция PIP_WASM (платформа, аналог PICO/FREERTOS): принудительный
OFF PIP_HAS_SOCKET/PROCESS/DYNLIB/SERIAL и PIP_BUILD_CONSOLE/USB/OPENCL/
FFTW/LUA/MQTT_CLIENT/HTTP_SERVER/HTTP_CLIENT до pip_resolve_feature_flags();
таблица зависимостей довыключает client_server/cloud/introspection
- Файлы, покрытые фиче-флагами master (piethernet/piserial/pican/pilibrary/
piprocess): взята master-версия, EMSCRIPTEN-стубы webasm удалены как
мёртвый код (нет флага — нет класса)
- Сохранены EMSCRIPTEN-гварды там, где флаги не покрывают поведение:
pihidevice (компилируется под wasm), piinit (initSignals/initLocale/
initUsername/initOSname/initHWInfo), pisysteminfo (instance/machineKey),
pithread (gettid-фоллбэк), picout (EM_ASM console.log),
pibase_macros (PIP_MIN_MSLEEP), pipiplatform.h (EMSCRIPTEN/ARCH_BITS)
- Исправлен AUTO-merge в PISystemInfo::machineKey() (семантический баг:
пустой результат при PIP_HAS_FILESYSTEM=OFF)
Проверено: нативный ctest 364/364 (build-verify), wasm-сборка (build_wasm,
лишь libpip.a + libpip_io_utils.a + pcre2), node-смоук-тест PICout/PISystemInfo
|
2026-09-19 11:01:39 +03:00 |
|
peri4
|
7051e138e9
|
PIInit refactoring, first iteration
|
2026-09-06 09:09:45 +03:00 |
|
andrey
|
75bab5a4b9
|
feat: add WebAssembly (Emscripten) build support
- Platform detection: EMSCRIPTEN/WASM macros in piplatform.h
- CMake: PIP_WASM option, auto-detect, STATIC lib, pthread flags,
disable incompatible modules (console, usb, fftw, opencl, lua,
http_server, http_client, mqtt_client)
- Macros: environ, SHUT_RDWR, HAS_LOCALE off, PIP_MIN_MSLEEP=10ms
- System stubs: process, signals, library, systeminfo, hidevice
- IO stubs: serial, ethernet, can, sharedmemory
- Thread: gettid() fallback via pthread_self()
- Core: locale/init adjustments, console.log routing via EM_ASM
- Fix: toDecimal precision loss, unreachable code in createPipe
|
2026-08-11 18:19:54 +03:00 |
|
andrey
|
3ea5af750e
|
feat: add WebAssembly (Emscripten) build support
- Platform detection: EMSCRIPTEN/WASM macros in piplatform.h
- CMake: PIP_WASM option, auto-detect, STATIC lib, pthread flags,
disable incompatible modules (console, usb, fftw, opencl, lua,
http_server, http_client, mqtt_client)
- Macros: environ, SHUT_RDWR, HAS_LOCALE off, PIP_MIN_MSLEEP=10ms
- System stubs: process, signals, library, systeminfo, hidevice
- IO stubs: serial, ethernet, can, sharedmemory
- Thread: gettid() fallback via pthread_self()
- Core: locale/init adjustments, console.log routing via EM_ASM
- Fix: toDecimal precision loss, unreachable code in createPipe
|
2026-08-11 01:52:14 +03:00 |
|
peri4
|
c2b8a8d6da
|
code format
|
2022-12-14 14:13:52 +03:00 |
|
peri4
|
6e81a419fb
|
start move to interruption of blocking calls, PIThread and PIEthernet
|
2022-11-01 00:02:44 +03:00 |
|
Andrey
|
cde2341c1f
|
fix freertos includes
|
2022-01-20 16:46:04 +03:00 |
|
peri4
|
ccd6a9888f
|
tree changes
|
2020-08-19 00:47:05 +03:00 |
|