Skip to content

feat(#462): Path A example compile-check in CI#500

Merged
justinjoy merged 3 commits intomainfrom
feat/462-path-a-compile-check
Apr 14, 2026
Merged

feat(#462): Path A example compile-check in CI#500
justinjoy merged 3 commits intomainfrom
feat/462-path-a-compile-check

Conversation

@justinjoy
Copy link
Copy Markdown
Collaborator

Summary

  • Add examples/path_a_pcap_skeleton/ standalone example that registers a pcap adapter skeleton via wl_io_register_adapter(), linking against installed libwirelog only (Path A workflow from feat: Option C user-defined I/O adapters (static + Android + optional CLI dlopen) #446)
  • Independent meson.build using dependency('wirelog') via pkg-config (C11, not part of main build tree)
  • CI steps in ci-pr.yml (blocking) and ci-main.yml (non-blocking): install to staging dir with PKG_CONFIG_SYSROOT_DIR for correct prefix resolution, build example as separate project, run it

Test plan

  • Local macOS staging install + independent build: compiles and links successfully
  • Runtime execution: pcap_skeleton registers/finds/unregisters adapter correctly
  • PKG_CONFIG_SYSROOT_DIR resolves --destdir prefix mismatch (verified locally)
  • Existing test suite: 134/134 PASS, no regressions
  • Uncrustify formatting applied via pre-commit hook

Closes #462

…idation

Standalone example that registers a pcap adapter skeleton via
wl_io_register_adapter(), linking against installed libwirelog only.
Demonstrates the Path A user workflow from #446 section 6. Includes
its own meson.build as an independent project using pkg-config.
Install wirelog to a staging dir, then build the pcap skeleton example
as a separate project against installed headers. Catches header-install
regressions from #449. Uses PKG_CONFIG_SYSROOT_DIR for correct prefix
resolution with --destdir installs.
Ubuntu installs .pc files and libraries to lib/x86_64-linux-gnu/
(multiarch triplet). Add dpkg-architecture detection to PKG_CONFIG_PATH
and LD_LIBRARY_PATH so the example build finds wirelog in the staging
directory on multiarch systems.
@justinjoy justinjoy merged commit ade7dfd into main Apr 14, 2026
7 checks passed
@justinjoy justinjoy deleted the feat/462-path-a-compile-check branch April 14, 2026 07:08
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.

[NEW] Path A docs example compile-check in CI

1 participant