From 764fffcd4cde910b1ab294f2d021fa7e364e53a1 Mon Sep 17 00:00:00 2001 From: Shin Umeda Date: Wed, 13 May 2026 14:21:49 -0700 Subject: [PATCH] statically link libusb --- .github/workflows/ci.yml | 2 +- picotool/conanfile.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 10df872..05106d5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,7 +40,7 @@ jobs: - run: conan hal setup - if: ${{ startsWith(matrix.os, 'ubuntu') }} - run: sudo apt-get install -y libusb-1.0-0 libusb-1.0-0-dev libudev-dev + run: sudo apt-get install -y libudev-dev # Build picosdk 2.2.0 diff --git a/picotool/conanfile.py b/picotool/conanfile.py index cffbc97..f9d3b21 100644 --- a/picotool/conanfile.py +++ b/picotool/conanfile.py @@ -70,6 +70,9 @@ def source(self): base_path=EXPORT_SOURCE / "picotool", ) + def configure(self): + self.options["libusb/*"].shared = False + def generate(self): deps = CMakeDeps(self) deps.generate()