aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorWohlstand <admin@wohlnet.ru>2021-07-17 23:56:16 +0300
committerWohlstand <admin@wohlnet.ru>2021-07-17 23:56:16 +0300
commit68f480e2efc9080db301cd8aab8911c830b0b5e3 (patch)
tree2b7cc10fd49cbb606a46c74ffd7d9db55561a78b /CMakeLists.txt
parentbc40f7a625900f47fd195a3ff009052fc9033292 (diff)
downloadlibADLMIDI-68f480e2efc9080db301cd8aab8911c830b0b5e3.tar.gz
libADLMIDI-68f480e2efc9080db301cd8aab8911c830b0b5e3.tar.bz2
libADLMIDI-68f480e2efc9080db301cd8aab8911c830b0b5e3.zip
Build: Don't build shared library where impossible
At several platforms the shared library is an impossible thing
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt12
1 files changed, 10 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e6df8c0..090a6c6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -121,8 +121,16 @@ else()
set(DEFAULT_HEAVY_EMULATORS ON)
endif()
-option(libADLMIDI_STATIC "Build static library of libADLMIDI" ON)
-option(libADLMIDI_SHARED "Build shared library of libADLMIDI" OFF)
+if(NOT EMSCRIPTEN
+ AND NOT VITA
+ AND NOT 3DS
+ AND NOT ADLMIDI_DOS)
+ option(libADLMIDI_STATIC "Build static library of libADLMIDI" ON)
+ option(libADLMIDI_SHARED "Build shared library of libADLMIDI" OFF)
+else()
+ set(libADLMIDI_STATIC ON)
+ set(libADLMIDI_SHARED OFF)
+endif()
option(WITH_MIDI_SEQUENCER "Build with embedded MIDI sequencer. Disable this if you want use library in real-time MIDI drivers or plugins." ON)
option(WITH_EMBEDDED_BANKS "Use embedded banks" ON)