Skip to content

Commit

Permalink
macos libusb workflow fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jankae committed Nov 3, 2024
1 parent 67a186b commit 48cc389
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@

#include "Util/usbinbuffer.h"

#ifdef Q_OS_MACOS
#include <libusb.h>
#else
#include <libusb-1.0/libusb.h>
#endif
#include <QString>
#include <set>
#include <functional>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
#include "librevnadriver.h"
#include "Util/usbinbuffer.h"

#ifdef Q_OS_MACOS
#include <libusb.h>
#else
#include <libusb-1.0/libusb.h>
#endif
#include <thread>

#include <QQueue>
Expand Down
6 changes: 6 additions & 0 deletions Software/PC_Application/LibreVNA-GUI/LibreVNA-GUI.pro
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,12 @@ win32:LIBS += -L"$$_PRO_FILE_PWD_" # Github actions placed libusb here
osx:INCPATH += /usr/local/include
osx:LIBS += -L/usr/local/lib $(shell pkg-config --libs libusb-1.0)

mac{
QT_CONFIG -= no-pkg-config
CONFIG += link_pkgconfig
PKGCONFIG += libusb-1.0
}

QT += widgets network

FORMS += \
Expand Down
4 changes: 4 additions & 0 deletions Software/PC_Application/LibreVNA-GUI/Util/usbinbuffer.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
#ifndef USBINBUFFER_H
#define USBINBUFFER_H

#ifdef Q_OS_MACOS
#include <libusb.h>
#else
#include <libusb-1.0/libusb.h>
#endif
#include <condition_variable>

#include <QObject>
Expand Down

0 comments on commit 48cc389

Please sign in to comment.