mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-01-31 04:20:34 +00:00
- made the Timidity++ backend a library, now that it has no dependencies on GZDoom anymore.
# Conflicts: # src/CMakeLists.txt # Conflicts: # src/CMakeLists.txt
This commit is contained in:
parent
5a3b544ba6
commit
4fccadff7e
47 changed files with 42 additions and 26 deletions
|
@ -385,6 +385,7 @@ endif()
|
|||
set( LZMA_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/libraries/lzma/C" )
|
||||
set( ADL_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/libraries/adlmidi" )
|
||||
set( OPN_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/libraries/opnmidi" )
|
||||
set( TIMIDITYPP_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/libraries/timidityplus" )
|
||||
|
||||
if( NOT CMAKE_CROSSCOMPILING )
|
||||
if( NOT CROSS_EXPORTS )
|
||||
|
@ -408,6 +409,7 @@ add_subdirectory( libraries/dumb )
|
|||
add_subdirectory( libraries/gdtoa )
|
||||
add_subdirectory( libraries/adlmidi )
|
||||
add_subdirectory( libraries/opnmidi )
|
||||
add_subdirectory( libraries/timidityplus )
|
||||
add_subdirectory( wadsrc )
|
||||
add_subdirectory( wadsrc_bm )
|
||||
add_subdirectory( wadsrc_lights )
|
||||
|
|
36
libraries/timidityplus/CMakeLists.txt
Normal file
36
libraries/timidityplus/CMakeLists.txt
Normal file
|
@ -0,0 +1,36 @@
|
|||
cmake_minimum_required( VERSION 2.8.7 )
|
||||
|
||||
make_release_only()
|
||||
|
||||
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})
|
||||
|
||||
include_directories( timiditypp )
|
||||
|
||||
add_library( timidityplus STATIC
|
||||
fft4g.cpp
|
||||
reverb.cpp
|
||||
common.cpp
|
||||
configfile.cpp
|
||||
effect.cpp
|
||||
filter.cpp
|
||||
freq.cpp
|
||||
instrum.cpp
|
||||
mblock.cpp
|
||||
mix.cpp
|
||||
playmidi.cpp
|
||||
quantity.cpp
|
||||
readmidic.cpp
|
||||
recache.cpp
|
||||
resample.cpp
|
||||
sbkconv.cpp
|
||||
sffile.cpp
|
||||
sfitem.cpp
|
||||
smplfile.cpp
|
||||
sndfont.cpp
|
||||
tables.cpp
|
||||
)
|
||||
target_link_libraries( timidityplus )
|
|
@ -23,6 +23,7 @@
|
|||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdarg.h>
|
||||
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
|
@ -36,7 +36,6 @@
|
|||
#include "filter.h"
|
||||
#include "quantity.h"
|
||||
#include "freq.h"
|
||||
#include "i_soundfont.h"
|
||||
|
||||
namespace TimidityPlus
|
||||
{
|
|
@ -22,6 +22,7 @@
|
|||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <algorithm>
|
||||
|
||||
#include <string.h>
|
||||
#include <math.h>
|
|
@ -488,7 +488,7 @@ add_custom_target( revision_check ALL
|
|||
|
||||
message( STATUS "Fluid synth libs: ${FLUIDSYNTH_LIBRARIES}" )
|
||||
set( ZDOOM_LIBS ${ZDOOM_LIBS} "${ZLIB_LIBRARIES}" "${JPEG_LIBRARIES}" "${BZIP2_LIBRARIES}" "${GME_LIBRARIES}" "${CMAKE_DL_LIBS}" )
|
||||
include_directories( "${ZLIB_INCLUDE_DIR}" "${BZIP2_INCLUDE_DIR}" "${LZMA_INCLUDE_DIR}" "${JPEG_INCLUDE_DIR}" "${GME_INCLUDE_DIR}" "${ADL_INCLUDE_DIR}" "${OPN_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}" "${TIMIDITYPP_INCLUDE_DIR}" )
|
||||
|
||||
if( ${HAVE_VM_JIT} )
|
||||
add_definitions( -DHAVE_VM_JIT )
|
||||
|
@ -700,7 +700,6 @@ file( GLOB HEADER_FILES
|
|||
sound/oplsynth/dosbox/*.h
|
||||
sound/thirdparty/*.h
|
||||
sound/timidity/*.h
|
||||
sound/timiditypp/*.h
|
||||
sound/wildmidi/*.h
|
||||
xlat/*.h
|
||||
swrenderer/*.h
|
||||
|
@ -846,8 +845,6 @@ set( FASTMATH_SOURCES
|
|||
sound/music/music_midi_base.cpp
|
||||
sound/backend/oalsound.cpp
|
||||
sound/backend/sndfile_decoder.cpp
|
||||
sound/timiditypp/fft4g.cpp
|
||||
sound/timiditypp/reverb.cpp
|
||||
gl/utility/gl_clock.cpp
|
||||
gl/renderer/gl_2ddrawer.cpp
|
||||
gl/hqnx/init.cpp
|
||||
|
@ -1231,25 +1228,6 @@ set (PCH_SOURCES
|
|||
sound/timidity/playmidi.cpp
|
||||
sound/timidity/resample.cpp
|
||||
sound/timidity/timidity.cpp
|
||||
sound/timiditypp/common.cpp
|
||||
sound/timiditypp/configfile.cpp
|
||||
sound/timiditypp/effect.cpp
|
||||
sound/timiditypp/filter.cpp
|
||||
sound/timiditypp/freq.cpp
|
||||
sound/timiditypp/instrum.cpp
|
||||
sound/timiditypp/mblock.cpp
|
||||
sound/timiditypp/mix.cpp
|
||||
sound/timiditypp/playmidi.cpp
|
||||
sound/timiditypp/quantity.cpp
|
||||
sound/timiditypp/readmidic.cpp
|
||||
sound/timiditypp/recache.cpp
|
||||
sound/timiditypp/resample.cpp
|
||||
sound/timiditypp/sbkconv.cpp
|
||||
sound/timiditypp/sffile.cpp
|
||||
sound/timiditypp/sfitem.cpp
|
||||
sound/timiditypp/smplfile.cpp
|
||||
sound/timiditypp/sndfont.cpp
|
||||
sound/timiditypp/tables.cpp
|
||||
sound/wildmidi/file_io.cpp
|
||||
sound/wildmidi/gus_pat.cpp
|
||||
sound/wildmidi/reverb.cpp
|
||||
|
@ -1321,7 +1299,7 @@ if( UNIX )
|
|||
endif()
|
||||
endif()
|
||||
|
||||
target_link_libraries( zdoom ${ZDOOM_LIBS} gdtoa dumb lzma adl opn )
|
||||
target_link_libraries( zdoom ${ZDOOM_LIBS} gdtoa dumb lzma adl opn timidityplus )
|
||||
|
||||
include_directories( .
|
||||
g_statusbar
|
||||
|
@ -1435,7 +1413,6 @@ source_group("Audio Files\\Backend" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_
|
|||
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\\Timidity" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/sound/timidity/.+")
|
||||
source_group("Audio Files\\Timiditypp" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/sound/timiditypp/.+")
|
||||
source_group("Audio Files\\WildMidi" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/sound/wildmidi/.+")
|
||||
source_group("Audio Files\\MIDI Devices" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/sound/mididevices/.+")
|
||||
source_group("Audio Files\\MIDI Sources" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/sound/midisources/.+")
|
||||
|
|
Loading…
Reference in a new issue