Browse Source

[cmake] fix cubeb bbbbbb and libusb

Signed-off-by: crueter <crueter@eden-emu.dev>
pull/143/head
crueter 8 months ago
parent
commit
651deea683
No known key found for this signature in database GPG Key ID: 425ACD2D4830EBC6
  1. 2
      externals/CMakeLists.txt
  2. 6
      externals/libusb/CMakeLists.txt
  3. 4
      externals/libusb/config.h.in
  4. 2
      src/audio_core/externals/cubeb/CMakeLists.txt

2
externals/CMakeLists.txt

@ -13,8 +13,6 @@ set(CMAKE_POLICY_DEFAULT_CMP0077 NEW)
# Disable tests/tools in all externals supporting the standard option name
set(BUILD_TESTING OFF)
set(BUILD_TESTS OFF)
set(BUILD_TOOLS OFF)
# Build only static externals
set(BUILD_SHARED_LIBS OFF)

6
externals/libusb/CMakeLists.txt

@ -235,6 +235,12 @@ else() # MINGW OR (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
)
endif()
if(UNIX)
set(PLATFORM_POSIX TRUE)
else()
set(PLATFORM_WINDOWS TRUE)
endif()
include(CheckFunctionExists)
include(CheckIncludeFiles)
include(CheckTypeSize)

4
externals/libusb/config.h.in

@ -93,3 +93,7 @@
/* Oldest Windows version supported */
#define WINVER 0x0501
#cmakedefine PLATFORM_POSIX
#cmakedefine PLATFORM_WINDOWS

2
src/audio_core/externals/cubeb/CMakeLists.txt

@ -10,6 +10,8 @@ CPMAddPackage(
FIND_PACKAGE_ARGUMENTS "CONFIG" # not sure this works outside of gentoo
OPTIONS
"USE_SANITIZERS OFF"
"BUILD_TESTS OFF"
"BUILD_TOOLS OFF"
)
if (cubeb_ADDED)

Loading…
Cancel
Save