diff options
author | Vitaly Novichkov <Wohlstand@users.noreply.github.com> | 2019-02-24 03:27:23 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-24 03:27:23 +0300 |
commit | 48dabfa6f8efc25910eb73bfdcb024dd439dd2fd (patch) | |
tree | c2c1a351daa89940713a58e1920c661cd93d5716 /CMakeLists.txt | |
parent | 8782feff7a55ea3a7ab1626dfd519a19bf54f959 (diff) | |
parent | 48751ca040600d80e92deecbabe61804e01a8ae7 (diff) | |
download | libADLMIDI-48dabfa6f8efc25910eb73bfdcb024dd439dd2fd.tar.gz libADLMIDI-48dabfa6f8efc25910eb73bfdcb024dd439dd2fd.tar.bz2 libADLMIDI-48dabfa6f8efc25910eb73bfdcb024dd439dd2fd.zip |
Merge pull request #207 from jpcima/javaopl3
javaopl3 work in progress
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 3bbc24e..306d4e0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -109,6 +109,7 @@ option(WITH_XMI_SUPPORT "Build with support for AIL XMI files" ON) option(USE_DOSBOX_EMULATOR "Use DosBox 0.74 OPL3 emulator (semi-accurate, suggested for slow or mobile platforms)" ON) option(USE_NUKED_EMULATOR "Use Nuked OPL3 emulator (most accurate, powerful)" ON) option(USE_OPAL_EMULATOR "Use Opal emulator (inaccurate)" ON) +option(USE_JAVA_EMULATOR "Use JavaOPL emulator" ON) option(WITH_GENADLDATA "Build and run full rebuild of embedded banks cache" OFF) option(WITH_GENADLDATA_COMMENTS "Enable comments in generated ADLDATA cache file" OFF) @@ -168,6 +169,15 @@ function(handle_options targetLib) target_compile_definitions(${targetLib} PUBLIC ADLMIDI_DISABLE_OPAL_EMULATOR) endif() + if(USE_JAVA_EMULATOR) + set(HAS_EMULATOR TRUE) + target_sources(${targetLib} PRIVATE + ${libADLMIDI_SOURCE_DIR}/src/chips/java_opl3.cpp + ) + else() + target_compile_definitions(${targetLib} PUBLIC ADLMIDI_DISABLE_JAVA_EMULATOR) + endif() + if(NOT HAS_EMULATOR) message(FATAL_ERROR "No emulators enabled! You must enable at least one emulator!") endif() |