Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Plugin handling for testing
- # Find required programs
- find_program(LV2INFO_BIN lv2info)
- find_program(GET_LV2_BUNDLE_URI_BIN ${CMAKE_SOURCE_DIR}/tools/get_lv2_bundle_uri.sh)
- find_program(GET_VST_PATH_BIN ${CMAKE_SOURCE_DIR}/tools/get_vst_path.sh)
- # LV2 Plugins
- set(EXT_LV2_PLUGINS
- "ams_lfo;AMS LFO;http://github.com/blablack/ams-lv2/lfo"
- "calf_monosynth;Calf Monosynth;http://calf.sourceforge.net/plugins/Monosynth"
- "helm;Helm;http://tytel.org/helm"
- "sherlock_atom_inspector;Sherlock Atom Inspector;http://open-music-kontrollers.ch/lv2/sherlock#atom_inspector"
- "lsp_compressor_mono;LSP Compressor Mono;http://lsp-plug.in/plugins/lv2/compressor_mono"
- "lsp_compressor;LSP Compressor;http://lsp-plug.in/plugins/lv2/compressor_stereo"
- "lsp_sidechain_compressor;LSP Sidechain Compressor;http://lsp-plug.in/plugins/lv2/sc_compressor_stereo"
- "lsp_multisampler_24_do;LSP MultiSampler x24 Direct Out;http://lsp-plug.in/plugins/lv2/multisampler_x24_do"
- "carla_rack;Carla Rack;http://kxstudio.sf.net/carla/plugins/carlarack"
- "no_delay_line;No Delay Line;http://gareus.org/oss/lv2/nodelay"
- "mda_ambience;mda Ambience;http://drobilla.net/plugins/mda/Ambience"
- "midi_cc_map;MIDI CC Map;http://gareus.org/oss/lv2/midifilter#mapcc"
- "noize_maker;NoizeMak3r;http://kunz.corrupt.ch/products/tal-noisemaker"
- "tal_filter;TAL Filter;urn:juce:TalFilter"
- "geonkick;Geonkick;http://geontime.com/geonkick/single"
- "chipwave;ChipWave;https://github.com/linuxmao-org/shiru-plugins/chipwave"
- "calf_compressor;Calf Compressor;http://calf.sourceforge.net/plugins/Compressor"
- "mverb;MVerb;http://distrho.sf.net/plugins/MVerb"
- "sfizz;Sfizz;http://sfztools.github.io/sfizz"
- "drops;Drops;http://github.com/clearly-broken-software/drops"
- "test_signal;Test Signal;http://gareus.org/oss/lv2/testsignal"
- "kxstudio_lfo;KXStudio LFO;http://kxstudio.sf.net/carla/plugins/lfo"
- )
- # VST Plugins
- set(EXT_VST_PLUGINS
- "noizemaker;TAL-NoiseMaker.so"
- )
- # VST3 Plugins
- set(EXT_VST3_PLUGINS
- "onetrick_simian;Punk Labs LLC OneTrick SIMIAN.vst3"
- "dexed;Dexed.vst3"
- "surge_xt;Surge XT.vst3"
- )
- if(TESTS AND LV2INFO_BIN AND GET_LV2_BUNDLE_URI_BIN)
- find_program(LV2LS_BIN lv2ls)
- if(LV2LS_BIN)
- execute_process(
- COMMAND ${LV2LS_BIN}
- OUTPUT_VARIABLE LV2LS_OUTPUT
- OUTPUT_STRIP_TRAILING_WHITESPACE
- )
- foreach(PLUGIN ${EXT_LV2_PLUGINS})
- string(REPLACE ";" "," PLUGIN_INFO "${PLUGIN}")
- string(REPLACE "," ";" PLUGIN_LIST ${PLUGIN_INFO})
- list(GET PLUGIN_LIST 0 PLUGIN_NAME)
- list(GET PLUGIN_LIST 2 PLUGIN_URI)
- if(LV2LS_OUTPUT MATCHES "${PLUGIN_URI}")
- execute_process(
- COMMAND ${GET_LV2_BUNDLE_URI_BIN} ${LV2INFO_BIN} ${PLUGIN_URI}
- OUTPUT_VARIABLE PLUGIN_BUNDLE
- OUTPUT_STRIP_TRAILING_WHITESPACE
- )
- set(HAVE_EXT_LV2_${PLUGIN_NAME} TRUE)
- set(EXT_LV2_PLUGIN_BUNDLE_${PLUGIN_NAME} ${PLUGIN_BUNDLE})
- endif()
- endforeach()
- endif()
- endif()
- if(TESTS AND GET_VST_PATH_BIN)
- foreach(PLUGIN ${EXT_VST_PLUGINS})
- string(REPLACE ";" "," PLUGIN_INFO "${PLUGIN}")
- string(REPLACE "," ";" PLUGIN_LIST ${PLUGIN_INFO})
- list(GET PLUGIN_LIST 0 PLUGIN_NAME)
- list(GET PLUGIN_LIST 1 PLUGIN_FILENAME)
- execute_process(
- COMMAND ${GET_VST_PATH_BIN} ${PLUGIN_FILENAME}
- RESULT_VARIABLE VST_FOUND
- OUTPUT_QUIET
- )
- if(VST_FOUND EQUAL 0)
- execute_process(
- COMMAND ${GET_VST_PATH_BIN} ${PLUGIN_FILENAME} ""
- OUTPUT_VARIABLE PLUGIN_PATH
- OUTPUT_STRIP_TRAILING_WHITESPACE
- )
- set(HAVE_EXT_VST_${PLUGIN_NAME} TRUE)
- set(EXT_VST_PLUGIN_PATH_${PLUGIN_NAME} ${PLUGIN_PATH})
- endif()
- endforeach()
- foreach(PLUGIN ${EXT_VST3_PLUGINS})
- string(REPLACE ";" "," PLUGIN_INFO "${PLUGIN}")
- string(REPLACE "," ";" PLUGIN_LIST ${PLUGIN_INFO})
- list(GET PLUGIN_LIST 0 PLUGIN_NAME)
- list(GET PLUGIN_LIST 1 PLUGIN_FILENAME)
- execute_process(
- COMMAND ${GET_VST_PATH_BIN} ${PLUGIN_FILENAME}
- RESULT_VARIABLE VST3_FOUND
- OUTPUT_QUIET
- )
- if(VST3_FOUND EQUAL 0)
- execute_process(
- COMMAND ${GET_VST_PATH_BIN} ${PLUGIN_FILENAME} "3"
- OUTPUT_VARIABLE PLUGIN_PATH
- OUTPUT_STRIP_TRAILING_WHITESPACE
- )
- set(HAVE_EXT_VST3_${PLUGIN_NAME} TRUE)
- set(EXT_VST3_PLUGIN_PATH_${PLUGIN_NAME} ${PLUGIN_PATH})
- endif()
- endforeach()
- endif()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement