Browse Source
[cmake] fix cubeb bbbbbb and libusb
Signed-off-by: crueter <crueter@eden-emu.dev>
pull/143/head
crueter
8 months ago
No known key found for this signature in database
GPG Key ID: 425ACD2D4830EBC6
4 changed files with
12 additions and
2 deletions
-
externals/CMakeLists.txt
-
externals/libusb/CMakeLists.txt
-
externals/libusb/config.h.in
-
src/audio_core/externals/cubeb/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) |
|
|
|
|
|
|
|
@ -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) |
|
|
|
|
|
|
|
@ -93,3 +93,7 @@ |
|
|
|
|
|
|
|
/* Oldest Windows version supported */ |
|
|
|
#define WINVER 0x0501 |
|
|
|
|
|
|
|
#cmakedefine PLATFORM_POSIX |
|
|
|
|
|
|
|
#cmakedefine PLATFORM_WINDOWS |
|
|
|
@ -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) |
|
|
|
|