mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-14 00:21:34 +00:00
- made libadl its own library subproject.
This is to improve compile times because the MSVC compiler tends to become slow with large lists of source files in a single project. This new project is still our stripped down copy of libadl, not the original, because that project contains a large amount of baggage we do not need.
This commit is contained in:
parent
2a642c66be
commit
84cc7cbdd2
35 changed files with 33 additions and 17 deletions
|
@ -383,6 +383,7 @@ else()
|
||||||
endif()
|
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" )
|
||||||
|
|
||||||
if( NOT CMAKE_CROSSCOMPILING )
|
if( NOT CMAKE_CROSSCOMPILING )
|
||||||
if( NOT CROSS_EXPORTS )
|
if( NOT CROSS_EXPORTS )
|
||||||
|
@ -404,6 +405,7 @@ add_subdirectory( libraries/lzma )
|
||||||
add_subdirectory( tools )
|
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( wadsrc )
|
add_subdirectory( wadsrc )
|
||||||
add_subdirectory( wadsrc_bm )
|
add_subdirectory( wadsrc_bm )
|
||||||
add_subdirectory( wadsrc_lights )
|
add_subdirectory( wadsrc_lights )
|
||||||
|
|
28
libraries/adlmidi/CMakeLists.txt
Normal file
28
libraries/adlmidi/CMakeLists.txt
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
cmake_minimum_required( VERSION 2.8.7 )
|
||||||
|
|
||||||
|
make_release_only()
|
||||||
|
|
||||||
|
add_definitions(-DADLMIDI_DISABLE_MIDI_SEQUENCER)
|
||||||
|
|
||||||
|
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( adl STATIC
|
||||||
|
adldata.cpp
|
||||||
|
adlmidi.cpp
|
||||||
|
adlmidi_load.cpp
|
||||||
|
adlmidi_midiplay.cpp
|
||||||
|
adlmidi_opl3.cpp
|
||||||
|
adlmidi_private.cpp
|
||||||
|
chips/dosbox/dbopl.cpp
|
||||||
|
chips/dosbox_opl3.cpp
|
||||||
|
chips/nuked/nukedopl3_174.c
|
||||||
|
chips/nuked/nukedopl3.c
|
||||||
|
chips/nuked_opl3.cpp
|
||||||
|
chips/nuked_opl3_v174.cpp
|
||||||
|
wopl/wopl_file.c
|
||||||
|
)
|
||||||
|
target_link_libraries( adl )
|
|
@ -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}" )
|
include_directories( "${ZLIB_INCLUDE_DIR}" "${BZIP2_INCLUDE_DIR}" "${LZMA_INCLUDE_DIR}" "${JPEG_INCLUDE_DIR}" "${GME_INCLUDE_DIR}" "${ADL_INCLUDE_DIR}" )
|
||||||
|
|
||||||
if( ${HAVE_VM_JIT} )
|
if( ${HAVE_VM_JIT} )
|
||||||
add_definitions( -DHAVE_VM_JIT )
|
add_definitions( -DHAVE_VM_JIT )
|
||||||
|
@ -677,7 +677,6 @@ file( GLOB HEADER_FILES
|
||||||
maploader/*.h
|
maploader/*.h
|
||||||
menu/*.h
|
menu/*.h
|
||||||
sound/*.h
|
sound/*.h
|
||||||
sound/adlmidi/*.h*
|
|
||||||
sound/backend/*.h*
|
sound/backend/*.h*
|
||||||
sound/music/*.h*
|
sound/music/*.h*
|
||||||
sound/opnmidi/*.h*
|
sound/opnmidi/*.h*
|
||||||
|
@ -885,19 +884,6 @@ 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/adlmidi/adldata.cpp
|
|
||||||
sound/adlmidi/adlmidi.cpp
|
|
||||||
sound/adlmidi/adlmidi_load.cpp
|
|
||||||
sound/adlmidi/adlmidi_midiplay.cpp
|
|
||||||
sound/adlmidi/adlmidi_opl3.cpp
|
|
||||||
sound/adlmidi/adlmidi_private.cpp
|
|
||||||
sound/adlmidi/chips/dosbox/dbopl.cpp
|
|
||||||
sound/adlmidi/chips/dosbox_opl3.cpp
|
|
||||||
sound/adlmidi/chips/nuked/nukedopl3_174.c
|
|
||||||
sound/adlmidi/chips/nuked/nukedopl3.c
|
|
||||||
sound/adlmidi/chips/nuked_opl3.cpp
|
|
||||||
sound/adlmidi/chips/nuked_opl3_v174.cpp
|
|
||||||
sound/adlmidi/wopl/wopl_file.c
|
|
||||||
sound/opnmidi/chips/gens_opn2.cpp
|
sound/opnmidi/chips/gens_opn2.cpp
|
||||||
sound/opnmidi/chips/gens/Ym2612_Emu.cpp
|
sound/opnmidi/chips/gens/Ym2612_Emu.cpp
|
||||||
sound/opnmidi/chips/mame/mame_ym2612fm.c
|
sound/opnmidi/chips/mame/mame_ym2612fm.c
|
||||||
|
@ -1385,7 +1371,7 @@ if( UNIX )
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
target_link_libraries( zdoom ${ZDOOM_LIBS} gdtoa dumb lzma )
|
target_link_libraries( zdoom ${ZDOOM_LIBS} gdtoa dumb lzma adl )
|
||||||
|
|
||||||
include_directories( .
|
include_directories( .
|
||||||
g_statusbar
|
g_statusbar
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
// HEADER FILES ------------------------------------------------------------
|
// HEADER FILES ------------------------------------------------------------
|
||||||
|
|
||||||
#include "i_musicinterns.h"
|
#include "i_musicinterns.h"
|
||||||
#include "adlmidi/adlmidi.h"
|
#include "adlmidi.h"
|
||||||
#include "i_soundfont.h"
|
#include "i_soundfont.h"
|
||||||
|
|
||||||
class ADLMIDIDevice : public SoftSynthMIDIDevice
|
class ADLMIDIDevice : public SoftSynthMIDIDevice
|
||||||
|
|
Loading…
Reference in a new issue