Skip to content

Meson dependency edit - #178

Open
Gotnam wants to merge 2 commits into
orbcode:mainfrom
Gotnam:meson_deps
Open

Gotnam wants to merge 2 commits into
orbcode:mainfrom
Gotnam:meson_deps

Conversation

@Gotnam

@Gotnam Gotnam commented Nov 25, 2026

Copy link
Copy Markdown

What?

  • Edited meson.build to separate the dependencies of each build target.
  • Changed <Windows.h> to <windows.h> in all appearances in the repository, allowing compilation by MinGW while maintaining compatibility with native Windows.
  • Added <sys/time.h> in Src/nw_client.c to maintain POSIX compatibility, allowing musl builds.
  • Corrected orbzmq -V error (previously printed orbcat)

Why?

Make orbuculum build on more platforms, and prevent tools from linking libraries they don't use.

How?

  • The dependencies of each orb* build target has been separated into orb*_deps, separating the dependencies of each target, potentially allowing targeted builds (orbuculum: libusb, threads; orbtrace: libusb; orbmortem: libdwarf, libelf, ncurses, capstone, orbzmq: libzmq; orblcd: SDL2; orbprofile: threads; orbcat; orbtop; orbdump; orbstat have no external dependencies; ws2_32 remains linked to all targets on Windows).
  • All '#include <Windows.h>' appearances in the document has been replaced with '#include <windows.h>'. This allows MinGW builds, whilst maintaining compatibility with windows's system which is case-insensitive.
  • Added <sys/time.h> in Src/nw_client.c so that musl builds are possible.

Tests

Docker container builds successful with -V for all tools on:

  • Debian 13
  • Ubuntu 24.04
  • Fedora
  • Arch
  • Alpine
  • MinGW-w64 cross-build
  • Fork CI: Linux and Windows pass. macOS never got a runner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant