Mercurial > hg > pub > prymula > com
comparison DPF-Prymula-audioplugins/dpf/distrho/DistrhoUIMain.cpp @ 3:84e66ea83026
DPF-Prymula-audioplugins-0.231015-2
author | prymula <prymula76@outlook.com> |
---|---|
date | Mon, 16 Oct 2023 21:53:34 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
2:cf2cb71d31dd | 3:84e66ea83026 |
---|---|
1 /* | |
2 * DISTRHO Plugin Framework (DPF) | |
3 * Copyright (C) 2012-2023 Filipe Coelho <falktx@falktx.com> | |
4 * | |
5 * Permission to use, copy, modify, and/or distribute this software for any purpose with | |
6 * or without fee is hereby granted, provided that the above copyright notice and this | |
7 * permission notice appear in all copies. | |
8 * | |
9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD | |
10 * TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN | |
11 * NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL | |
12 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER | |
13 * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN | |
14 * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | |
15 */ | |
16 | |
17 #include "src/DistrhoUI.cpp" | |
18 | |
19 // we might be building a plugin with external UI, which works on most formats except VST2/3 | |
20 #if ! DISTRHO_PLUGIN_HAS_UI && ! defined(DISTRHO_PLUGIN_VST_HPP_INCLUDED) | |
21 # error Trying to build UI without DISTRHO_PLUGIN_HAS_UI set to 1 | |
22 #endif | |
23 | |
24 #if DISTRHO_PLUGIN_HAS_UI | |
25 | |
26 #if defined(DISTRHO_PLUGIN_TARGET_CARLA) | |
27 # define DISTRHO_PLUGIN_AND_UI_IN_SINGLE_OBJECT 1 | |
28 #elif defined(DISTRHO_PLUGIN_TARGET_CLAP) | |
29 # define DISTRHO_PLUGIN_AND_UI_IN_SINGLE_OBJECT 1 | |
30 #elif defined(DISTRHO_PLUGIN_TARGET_JACK) | |
31 # define DISTRHO_PLUGIN_AND_UI_IN_SINGLE_OBJECT 1 | |
32 #elif defined(DISTRHO_PLUGIN_TARGET_DSSI) | |
33 # define DISTRHO_PLUGIN_AND_UI_IN_SINGLE_OBJECT 0 | |
34 # include "src/DistrhoUIDSSI.cpp" | |
35 #elif defined(DISTRHO_PLUGIN_TARGET_LV2) | |
36 # define DISTRHO_PLUGIN_AND_UI_IN_SINGLE_OBJECT DISTRHO_PLUGIN_WANT_DIRECT_ACCESS | |
37 # include "src/DistrhoUILV2.cpp" | |
38 #elif defined(DISTRHO_PLUGIN_TARGET_VST2) | |
39 # define DISTRHO_PLUGIN_AND_UI_IN_SINGLE_OBJECT 1 | |
40 #elif defined(DISTRHO_PLUGIN_TARGET_VST3) | |
41 # define DISTRHO_PLUGIN_AND_UI_IN_SINGLE_OBJECT 1 | |
42 # include "src/DistrhoUIVST3.cpp" | |
43 #elif defined(DISTRHO_PLUGIN_TARGET_SHARED) || defined(DISTRHO_PLUGIN_TARGET_STATIC) | |
44 # define DISTRHO_PLUGIN_AND_UI_IN_SINGLE_OBJECT 1 | |
45 #else | |
46 # error unsupported format | |
47 #endif | |
48 | |
49 #if !DISTRHO_PLUGIN_AND_UI_IN_SINGLE_OBJECT | |
50 # ifdef DISTRHO_PLUGIN_TARGET_DSSI | |
51 # define DISTRHO_IS_STANDALONE 1 | |
52 # else | |
53 # define DISTRHO_IS_STANDALONE 0 | |
54 # endif | |
55 # include "src/DistrhoUtils.cpp" | |
56 #endif | |
57 | |
58 #endif |