Switched threads to pthread for all platforms (on Windows, you can compile with Win32 threads using PTHREAD=n).

This commit is contained in:
OBattler
2021-09-14 21:58:15 +02:00
parent 0e8348f0e2
commit 3c2ac29c68
6 changed files with 223 additions and 180 deletions

View File

@@ -1,13 +1,12 @@
set(PLAT_SOURCES unix_thread.c)
if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
find_package(ALSA)
if (ALSA_FOUND)
set(PLAT_SOURCES ${PLAT_SOURCES} linux_midi_alsa.c)
set(PLAT_SOURCES linux_midi_alsa.c)
else()
set(PLAT_SOURCES ${PLAT_SOURCES} unix_midi.c)
set(PLAT_SOURCES unix_midi.c)
endif()
else()
set(PLAT_SOURCES ${PLAT_SOURCES} unix_midi.c)
set(PLAT_SOURCES unix_midi.c)
endif()
add_library(plat STATIC ${PLAT_SOURCES})
add_library(ui STATIC unix.c unix_sdl.c unix_cdrom.c)