shithub: choc

Download patch

ref: aebcec00b2dbab0a8c305b2f55f5a31735b08139
parent: 5b30a0ac1f903b7365ac9134eed74a6b1664de9d
author: Alex Mayfield <alexmax2742@gmail.com>
date: Wed May 2 16:20:28 EDT 2018

opl and pcsound libraries

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -22,4 +22,6 @@
 configure_file(config.cmake.h config.h)
 
 add_subdirectory(midiproc)
+add_subdirectory(opl)
+add_subdirectory(pcsound)
 add_subdirectory(textscreen)
--- /dev/null
+++ b/opl/CMakeLists.txt
@@ -1,0 +1,13 @@
+add_library(opl STATIC
+            opl_internal.h
+            opl.c           opl.h
+            opl_linux.c
+            opl_obsd.c
+            opl_queue.c     opl_queue.h
+            opl_sdl.c
+            opl_timer.c     opl_timer.h
+            opl_win32.c
+            ioperm_sys.c    ioperm_sys.h
+            opl3.c          opl3.h)
+target_include_directories(opl PRIVATE "${CMAKE_CURRENT_BINARY_DIR}/../")
+target_link_libraries(opl SDL2::mixer)
--- /dev/null
+++ b/pcsound/CMakeLists.txt
@@ -1,0 +1,9 @@
+add_library(pcsound STATIC
+            pcsound.c       pcsound.h
+            pcsound_bsd.c
+            pcsound_sdl.c
+            pcsound_linux.c
+            pcsound_win32.c
+                            pcsound_internal.h)
+target_include_directories(pcsound PRIVATE "${CMAKE_CURRENT_BINARY_DIR}/../")
+target_link_libraries(pcsound SDL2::mixer)