Workaround SDL2 usb lib soname search returning emtpy string

Should finally make HIDAPI work on linux...
This commit is contained in:
Mary 2021-05-30 17:23:58 +02:00
parent 68c6893280
commit e3dee3edbd

View file

@ -16,14 +16,14 @@ jobs:
fail-fast: false
matrix:
platform:
- { name: win-x64, os: windows-latest, flags: -A x64 -DHAVE_DINPUT_H=0 }
- { name: win-x86, os: windows-latest, flags: -A Win32 -DHAVE_DINPUT_H=0 }
- { name: win-arm64, os: windows-latest, flags: -A ARM64 -DHAVE_DINPUT_H=0 }
- { name: linux-x64, os: ubuntu-18.04, flags: -GNinja -DHIDAPI=ON, target_apt_arch: ":amd64" }
- { name: linux-x86, os: ubuntu-18.04, flags: -GNinja -DHIDAPI=ON, cmake_configure_env: CFLAGS=-m32 CXXFLAGS=-m32, target_apt_arch: ":i386" }
- { name: osx-x64, os: macos-latest, flags: -DCMAKE_OSX_ARCHITECTURES="x86_64" -DCMAKE_OSX_DEPLOYMENT_TARGET="10.14" }
- { name: win-x64, os: windows-latest, flags: -A x64 -DHAVE_DINPUT_H=0 }
- { name: win-x86, os: windows-latest, flags: -A Win32 -DHAVE_DINPUT_H=0 }
- { name: win-arm64, os: windows-latest, flags: -A ARM64 -DHAVE_DINPUT_H=0 }
- { name: linux-x64, os: ubuntu-18.04, flags: -GNinja -DHIDAPI=ON -DUSB_LIB_SONAME="libusb-1.0.so.0", target_apt_arch: ":amd64" }
- { name: linux-x86, os: ubuntu-18.04, flags: -GNinja -DHIDAPI=ON -DUSB_LIB_SONAME="libusb-1.0.so.0", cmake_configure_env: CFLAGS=-m32 CXXFLAGS=-m32, target_apt_arch: ":i386" }
- { name: osx-x64, os: macos-latest, flags: -DCMAKE_OSX_ARCHITECTURES="x86_64" -DCMAKE_OSX_DEPLOYMENT_TARGET="10.14" }
# NOTE: macOS 11.0 is the first released supported by Apple Silicon.
- { name: osx-arm64, os: macos-latest, flags: -DCMAKE_OSX_ARCHITECTURES="arm64" -DCMAKE_OSX_DEPLOYMENT_TARGET="11.0" }
- { name: osx-arm64, os: macos-latest, flags: -DCMAKE_OSX_ARCHITECTURES="arm64" -DCMAKE_OSX_DEPLOYMENT_TARGET="11.0" }
steps:
- name: Setup Linux dependencies
if: runner.os == 'Linux'