Skip to content

Commit

Permalink
Merge pull request #47 from stoffu/aeon-hidusb
Browse files Browse the repository at this point in the history
build: remove unnecessary linking to hidapi/usb
  • Loading branch information
aeonix authored Oct 3, 2020
2 parents 0bd937c + fd241d1 commit 866ce17
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ jobs:
runs-on: macOS-latest

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: update brew and install dependencies
run: brew update && brew install boost hidapi zmq libpgm miniupnpc ldns expat libunwind-headers protobuf qt5
run: brew update && brew install boost zmq libpgm miniupnpc ldns expat libunwind-headers protobuf qt5
- name: fetch zmq.hpp
run: brew tap osrf/simulation && brew install cppzmq
- name: build
Expand All @@ -34,7 +36,7 @@ jobs:
- name: update apt
run: sudo apt update
- name: install aeon dependencies
run: sudo apt -y install build-essential cmake libboost-all-dev miniupnpc libunbound-dev graphviz doxygen libunwind8-dev pkg-config libssl-dev libzmq3-dev libsodium-dev libhidapi-dev libnorm-dev libusb-1.0-0-dev libpgm-dev
run: sudo apt -y install build-essential cmake libboost-all-dev miniupnpc libunbound-dev graphviz doxygen libunwind8-dev pkg-config libssl-dev libzmq3-dev libsodium-dev libnorm-dev libpgm-dev
- name: install aeon gui dependencies
run: sudo apt -y install qtbase5-dev qt5-default qtdeclarative5-dev qml-module-qtquick-controls qml-module-qtquick-controls2 qml-module-qtquick-dialogs qml-module-qtquick-xmllistmodel qml-module-qt-labs-settings qml-module-qt-labs-folderlistmodel qttools5-dev-tools qml-module-qtquick-templates2 libqt5svg5-dev xvfb
- name: build
Expand All @@ -54,7 +56,7 @@ jobs:
- uses: eine/setup-msys2@v1
with:
update: true
install: mingw-w64-x86_64-toolchain make mingw-w64-x86_64-cmake mingw-w64-x86_64-boost mingw-w64-x86_64-openssl mingw-w64-x86_64-zeromq mingw-w64-x86_64-libsodium mingw-w64-x86_64-hidapi mingw-w64-x86_64-protobuf-c mingw-w64-x86_64-libusb git mingw-w64-x86_64-qt5
install: mingw-w64-x86_64-toolchain make mingw-w64-x86_64-cmake mingw-w64-x86_64-boost mingw-w64-x86_64-openssl mingw-w64-x86_64-zeromq mingw-w64-x86_64-libsodium mingw-w64-x86_64-protobuf-c git mingw-w64-x86_64-qt5
- name: build
run: |
sed -i 's/CONFIG\ +=\ qtquickcompiler//' aeon-wallet-gui.pro
Expand Down
10 changes: 5 additions & 5 deletions aeon-wallet-gui.pro
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ win32 {
-lwsock32 \
-lIphlpapi \
-lcrypt32 \
-lhidapi \
# -lhidapi \
-lgdi32

!contains(QMAKE_TARGET.arch, x86_64) {
Expand All @@ -289,8 +289,8 @@ linux {
QMAKE_LFLAGS += -static-libgcc -static-libstdc++
# contains(QT_ARCH, x86_64) {
LIBS+= -lunbound \
-lusb-1.0 \
-lhidapi-hidraw \
# -lusb-1.0 \
# -lhidapi-hidraw \
-ludev
# }
} else {
Expand All @@ -310,7 +310,7 @@ linux {
-lssl \
-llmdb \
-lsodium \
-lhidapi-libusb \
# -lhidapi-libusb \
-lcrypto

if(!android) {
Expand Down Expand Up @@ -349,7 +349,7 @@ macx {
-L$$OPENSSL_LIBRARY_DIRS \
-L/usr/local/opt/boost/lib \
-lboost_serialization \
-lhidapi \
# -lhidapi \
-lboost_thread-mt \
-lboost_system-mt \
-lboost_system \
Expand Down

0 comments on commit 866ce17

Please sign in to comment.