mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-29 07:12:36 +00:00
- gave libopen the same treatment and made it its own subproject
This commit is contained in:
parent
84cc7cbdd2
commit
b3a9884eb1
34 changed files with 36 additions and 25 deletions
|
@ -384,6 +384,7 @@ endif()
|
||||||
|
|
||||||
set( LZMA_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/libraries/lzma/C" )
|
set( LZMA_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/libraries/lzma/C" )
|
||||||
set( ADL_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/libraries/adlmidi" )
|
set( ADL_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/libraries/adlmidi" )
|
||||||
|
set( OPN_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/libraries/opnmidi" )
|
||||||
|
|
||||||
if( NOT CMAKE_CROSSCOMPILING )
|
if( NOT CMAKE_CROSSCOMPILING )
|
||||||
if( NOT CROSS_EXPORTS )
|
if( NOT CROSS_EXPORTS )
|
||||||
|
@ -406,6 +407,7 @@ add_subdirectory( tools )
|
||||||
add_subdirectory( libraries/dumb )
|
add_subdirectory( libraries/dumb )
|
||||||
add_subdirectory( libraries/gdtoa )
|
add_subdirectory( libraries/gdtoa )
|
||||||
add_subdirectory( libraries/adlmidi )
|
add_subdirectory( libraries/adlmidi )
|
||||||
|
add_subdirectory( libraries/opnmidi )
|
||||||
add_subdirectory( wadsrc )
|
add_subdirectory( wadsrc )
|
||||||
add_subdirectory( wadsrc_bm )
|
add_subdirectory( wadsrc_bm )
|
||||||
add_subdirectory( wadsrc_lights )
|
add_subdirectory( wadsrc_lights )
|
||||||
|
|
30
libraries/opnmidi/CMakeLists.txt
Normal file
30
libraries/opnmidi/CMakeLists.txt
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
cmake_minimum_required( VERSION 2.8.7 )
|
||||||
|
|
||||||
|
make_release_only()
|
||||||
|
|
||||||
|
# we play with out own sequencer
|
||||||
|
add_definitions(-DOPNMIDI_DISABLE_MIDI_SEQUENCER)
|
||||||
|
|
||||||
|
# Disable OPNMIDI's experimental yet emulator (using of it has some issues and missing notes in playback)
|
||||||
|
add_definitions(-DOPNMIDI_DISABLE_GX_EMULATOR)
|
||||||
|
|
||||||
|
if( ZD_CMAKE_COMPILER_IS_GNUC_COMPATIBLE )
|
||||||
|
set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wno-unused-parameter -fomit-frame-pointer" )
|
||||||
|
endif()
|
||||||
|
|
||||||
|
set (CMAKE_C_FLAGS ${CMAKE_C_FLAGS} ${ZD_FASTMATH_FLAG})
|
||||||
|
|
||||||
|
add_library( opn STATIC
|
||||||
|
chips/gens_opn2.cpp
|
||||||
|
chips/gens/Ym2612_Emu.cpp
|
||||||
|
chips/mame/mame_ym2612fm.c
|
||||||
|
chips/mame_opn2.cpp
|
||||||
|
chips/nuked_opn2.cpp
|
||||||
|
chips/nuked/ym3438.c
|
||||||
|
opnmidi.cpp
|
||||||
|
opnmidi_load.cpp
|
||||||
|
opnmidi_midiplay.cpp
|
||||||
|
opnmidi_opn2.cpp
|
||||||
|
opnmidi_private.cpp
|
||||||
|
wopn/wopn_file.c )
|
||||||
|
target_link_libraries( opn )
|
|
@ -468,7 +468,7 @@ set( ZDOOM_LIBS ${ZDOOM_LIBS} "${ZLIB_LIBRARIES}" "${JPEG_LIBRARIES}" "${BZIP2_L
|
||||||
if (HAVE_VULKAN)
|
if (HAVE_VULKAN)
|
||||||
set( ZDOOM_LIBS ${ZDOOM_LIBS} "glslang" "SPIRV" "OGLCompiler")
|
set( ZDOOM_LIBS ${ZDOOM_LIBS} "glslang" "SPIRV" "OGLCompiler")
|
||||||
endif()
|
endif()
|
||||||
include_directories( "${ZLIB_INCLUDE_DIR}" "${BZIP2_INCLUDE_DIR}" "${LZMA_INCLUDE_DIR}" "${JPEG_INCLUDE_DIR}" "${GME_INCLUDE_DIR}" "${ADL_INCLUDE_DIR}" )
|
include_directories( "${ZLIB_INCLUDE_DIR}" "${BZIP2_INCLUDE_DIR}" "${LZMA_INCLUDE_DIR}" "${JPEG_INCLUDE_DIR}" "${GME_INCLUDE_DIR}" "${ADL_INCLUDE_DIR}" "${OPN_INCLUDE_DIR}" )
|
||||||
|
|
||||||
if( ${HAVE_VM_JIT} )
|
if( ${HAVE_VM_JIT} )
|
||||||
add_definitions( -DHAVE_VM_JIT )
|
add_definitions( -DHAVE_VM_JIT )
|
||||||
|
@ -649,13 +649,6 @@ if( NOT SEND_ANON_STATS )
|
||||||
add_definitions( -DNO_SEND_STATS )
|
add_definitions( -DNO_SEND_STATS )
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Disable ADLMIDI's and OPNMIDI's MIDI Sequencer
|
|
||||||
add_definitions(-DADLMIDI_DISABLE_MIDI_SEQUENCER)
|
|
||||||
add_definitions(-DOPNMIDI_DISABLE_MIDI_SEQUENCER)
|
|
||||||
|
|
||||||
# Disable OPNMIDI's experimental yet emulator (using of it has some issues and missing notes in playback)
|
|
||||||
add_definitions(-DOPNMIDI_DISABLE_GX_EMULATOR)
|
|
||||||
|
|
||||||
# Project files should be aware of the header files. We can GLOB these since
|
# Project files should be aware of the header files. We can GLOB these since
|
||||||
# there's generally a new cpp for every header so this file will get changed
|
# there's generally a new cpp for every header so this file will get changed
|
||||||
file( GLOB HEADER_FILES
|
file( GLOB HEADER_FILES
|
||||||
|
@ -679,7 +672,6 @@ file( GLOB HEADER_FILES
|
||||||
sound/*.h
|
sound/*.h
|
||||||
sound/backend/*.h*
|
sound/backend/*.h*
|
||||||
sound/music/*.h*
|
sound/music/*.h*
|
||||||
sound/opnmidi/*.h*
|
|
||||||
sound/oplsynth/*.h
|
sound/oplsynth/*.h
|
||||||
sound/oplsynth/dosbox/*.h
|
sound/oplsynth/dosbox/*.h
|
||||||
posix/*.h
|
posix/*.h
|
||||||
|
@ -884,18 +876,7 @@ set( FASTMATH_SOURCES
|
||||||
rendering/hwrenderer/scene/hw_weapon.cpp
|
rendering/hwrenderer/scene/hw_weapon.cpp
|
||||||
r_data/models/models.cpp
|
r_data/models/models.cpp
|
||||||
utility/matrix.cpp
|
utility/matrix.cpp
|
||||||
sound/opnmidi/chips/gens_opn2.cpp
|
)
|
||||||
sound/opnmidi/chips/gens/Ym2612_Emu.cpp
|
|
||||||
sound/opnmidi/chips/mame/mame_ym2612fm.c
|
|
||||||
sound/opnmidi/chips/mame_opn2.cpp
|
|
||||||
sound/opnmidi/chips/nuked_opn2.cpp
|
|
||||||
sound/opnmidi/chips/nuked/ym3438.c
|
|
||||||
sound/opnmidi/opnmidi.cpp
|
|
||||||
sound/opnmidi/opnmidi_load.cpp
|
|
||||||
sound/opnmidi/opnmidi_midiplay.cpp
|
|
||||||
sound/opnmidi/opnmidi_opn2.cpp
|
|
||||||
sound/opnmidi/opnmidi_private.cpp
|
|
||||||
sound/opnmidi/wopn/wopn_file.c)
|
|
||||||
|
|
||||||
#Vulkan stuff must go into a separate list later because it needs to be disabled for some platforms
|
#Vulkan stuff must go into a separate list later because it needs to be disabled for some platforms
|
||||||
set (VULKAN_SOURCES
|
set (VULKAN_SOURCES
|
||||||
|
@ -1371,7 +1352,7 @@ if( UNIX )
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
target_link_libraries( zdoom ${ZDOOM_LIBS} gdtoa dumb lzma adl )
|
target_link_libraries( zdoom ${ZDOOM_LIBS} gdtoa dumb lzma adl opn )
|
||||||
|
|
||||||
include_directories( .
|
include_directories( .
|
||||||
g_statusbar
|
g_statusbar
|
||||||
|
@ -1500,8 +1481,6 @@ install(TARGETS zdoom
|
||||||
|
|
||||||
source_group("Audio Files" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/sound/.+")
|
source_group("Audio Files" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/sound/.+")
|
||||||
source_group("Audio Files\\Backend" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/sound/backend/.+")
|
source_group("Audio Files\\Backend" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/sound/backend/.+")
|
||||||
source_group("Audio Files\\ADL MIDI" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/sound/adlmidi/.+")
|
|
||||||
source_group("Audio Files\\OPN MIDI" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/sound/opnmidi/.+")
|
|
||||||
source_group("Audio Files\\OPL Synth" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/sound/oplsynth/.+")
|
source_group("Audio Files\\OPL Synth" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/sound/oplsynth/.+")
|
||||||
source_group("Audio Files\\OPL Synth\\DOSBox" FILES sound/oplsynth/dosbox/opl.cpp sound/oplsynth/dosbox/opl.h)
|
source_group("Audio Files\\OPL Synth\\DOSBox" FILES sound/oplsynth/dosbox/opl.cpp sound/oplsynth/dosbox/opl.h)
|
||||||
source_group("Audio Files\\Timidity" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/sound/timidity/.+")
|
source_group("Audio Files\\Timidity" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/sound/timidity/.+")
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
#include "i_musicinterns.h"
|
#include "i_musicinterns.h"
|
||||||
#include "w_wad.h"
|
#include "w_wad.h"
|
||||||
#include "doomerrors.h"
|
#include "doomerrors.h"
|
||||||
#include "opnmidi/opnmidi.h"
|
#include "opnmidi.h"
|
||||||
#include "i_soundfont.h"
|
#include "i_soundfont.h"
|
||||||
|
|
||||||
class OPNMIDIDevice : public SoftSynthMIDIDevice
|
class OPNMIDIDevice : public SoftSynthMIDIDevice
|
||||||
|
|
Loading…
Reference in a new issue