Skip to content

build(pj4): add PowerShell build scripts and fetch plotjuggler_sdk from the Conan remote - #45

Merged
RickyWu18 merged 2 commits into
masterfrom
chore/build-system
Nov 28, 2026
Merged

RickyWu18 merged 2 commits into
masterfrom
chore/build-system

Conversation

@RickyWu18

Copy link
Copy Markdown
Owner

Summary

Build pj4 against the released plotjuggler_sdk Conan package from the plotjuggler-conan remote instead of a sibling checkout or a git-tag clone, and add PowerShell counterparts of build.sh, test.sh and package.sh, so a Windows build no longer needs the Git Bash (VS Dev) profile.

Target PlotJuggler version

  • PJ3 (pj3/)
  • PJ4 (pj4/)
  • Both / shared (3rdparty/, docs/, root files)

Plugin(s) affected

  • DataStreamMavlink
  • DataLoadArdupilot
  • Shared / build / CI
  • New plugin

Type of change

  • feat — new feature
  • fix — bug fix
  • refactor — no behavior change
  • docs — documentation only
  • build — CMake / vcpkg / CI

Breaking changes

Build workflow only; no API, series naming or file-format change.

  • pj4/scripts/ensure_sdk.sh is removed, together with its FORCE_SDK and SDK_LOCAL_DIR environment variables. conan install now fetches plotjuggler_sdk/<SDK_VERSION> from the remote, so a contributor must run conan remote add plotjuggler-conan https://plotjuggler.jfrog.io/artifactory/api/conan/plotjuggler-conan once.
  • A sibling ../../plotjuggler_sdk checkout is no longer picked up automatically. Use ./build.sh --sdk-path <dir> (or ./build.ps1 -SdkPath <dir>) to build against an unreleased SDK.

Changes

  • SDK from the remote: conanfile.py requires plotjuggler_sdk/<SDK_VERSION> from plotjuggler-conan. ensure_sdk.sh is deleted.
  • Local SDK override: build.sh --sdk-path DIR runs conan create for the checkout as plotjuggler_sdk/<DIR/VERSION>@local/dev and passes the reference to conanfile.py through PJ_SDK_REF. The @local/dev channel keeps it from shadowing the released package. build.sh now parses arguments with a while/shift loop to take the value of --sdk-path.
  • PowerShell scripts: new build.ps1 (-Debug, -SdkPath, plugin names), test.ps1 and package.ps1, with the same behavior and output layout as the shell scripts.
  • CI: only the comment in release-pj4.yaml changes; the Build step still calls ./build.sh.
  • Docs: pj4/docs/build.md and pj4/CLAUDE.md describe the remote setup, --sdk-path, and the PowerShell scripts; they drop the sibling-workspace layout and the Git Bash (VS Dev) instructions.

Testing

@RickyWu18
RickyWu18 merged commit 2fb31de into master Nov 28, 2026
5 checks passed
@RickyWu18
RickyWu18 deleted the chore/build-system branch November 28, 2026 07:03
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