mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-12-12 05:11:45 +00:00
4d2d143422
# Conflicts: # src/CMakeLists.txt # src/sound/mididevices/music_opnmidi_mididevice.cpp # Conflicts: # src/sound/mididevices/music_opnmidi_mididevice.cpp
30 lines
814 B
CMake
30 lines
814 B
CMake
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 )
|