Skip to content

Commit 480aa7b

Browse files
committed
Fixup after latest webview changes
Signed-off-by: falkTX <[email protected]>
1 parent ea20a66 commit 480aa7b

7 files changed

+14
-29
lines changed

distrho/DistrhoUIMain.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
# endif
6767
#endif
6868

69-
#if defined(DPF_USING_LD_LINUX_WEBVIEW) && !DISTRHO_IS_STANDALONE
69+
#if defined(HAVE_X11) && defined(DISTRHO_OS_LINUX) && DISTRHO_UI_WEB_VIEW && !DISTRHO_IS_STANDALONE
7070
int main(int argc, char* argv[])
7171
{
7272
return DISTRHO_NAMESPACE::dpf_webview_start(argc, argv);

distrho/extra/WebView.hpp

+4
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ START_NAMESPACE_DISTRHO
2323

2424
#include "WebViewImpl.hpp"
2525

26+
#if defined(HAVE_X11) && defined(DISTRHO_OS_LINUX)
27+
int dpf_webview_start(int argc, char* argv[]);
28+
#endif
29+
2630
END_NAMESPACE_DISTRHO
2731

2832
#endif // DISTRHO_WEB_VIEW_HPP_INCLUDED

distrho/src/DistrhoPluginChecks.h

-11
Original file line numberDiff line numberDiff line change
@@ -286,17 +286,6 @@ static_assert(sizeof(STRINGIFY(DISTRHO_PLUGIN_UNIQUE_ID)) == 5, "The macro DISTR
286286
# error DISTRHO_UI_IS_STANDALONE must not be defined
287287
#endif
288288

289-
#ifdef DPF_USING_LD_LINUX_WEBVIEW
290-
# error DPF_USING_LD_LINUX_WEBVIEW must not be defined
291-
#endif
292-
293-
// --------------------------------------------------------------------------------------------------------------------
294-
// Set DPF_USING_LD_LINUX_WEBVIEW for internal use
295-
296-
#if DISTRHO_UI_WEB_VIEW && defined(DISTRHO_OS_LINUX)
297-
# define DPF_USING_LD_LINUX_WEBVIEW
298-
#endif
299-
300289
// --------------------------------------------------------------------------------------------------------------------
301290

302291
#endif // DISTRHO_PLUGIN_CHECKS_H_INCLUDED

distrho/src/DistrhoPluginJACK.cpp

+2-6
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,6 @@ static const writeMidiFunc writeMidiCallback = nullptr;
8888
static const requestParameterValueChangeFunc requestParameterValueChangeCallback = nullptr;
8989
#endif
9090

91-
#ifdef DPF_USING_LD_LINUX_WEBVIEW
92-
int dpf_webview_start(int argc, char* argv[]);
93-
#endif
94-
9591
// -----------------------------------------------------------------------
9692

9793
static volatile bool gCloseSignalReceived = false;
@@ -1003,9 +999,9 @@ int main(int argc, char* argv[])
1003999
}
10041000
#endif
10051001

1006-
#ifdef DPF_USING_LD_LINUX_WEBVIEW
1002+
#if defined(HAVE_X11) && defined(DISTRHO_OS_LINUX) && DISTRHO_UI_WEB_VIEW
10071003
if (argc >= 2 && std::strcmp(argv[1], "dpf-ld-linux-webview") == 0)
1008-
return dpf_webview_start(argc, argv);
1004+
return DISTRHO_NAMESPACE::dpf_webview_start(argc, argv);
10091005
#endif
10101006

10111007
if (argc == 2 && std::strcmp(argv[1], "selftest") == 0)

distrho/src/DistrhoUIDSSI.cpp

+2-6
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,6 @@ static constexpr const setSizeFunc setSizeCallback = nullptr;
3838
// unsupported in DSSI
3939
static constexpr const fileRequestFunc fileRequestCallback = nullptr;
4040

41-
#ifdef DPF_USING_LD_LINUX_WEBVIEW
42-
int dpf_webview_start(int argc, char* argv[]);
43-
#endif
44-
4541
// --------------------------------------------------------------------------------------------------------------------
4642

4743

@@ -391,9 +387,9 @@ int main(int argc, char* argv[])
391387
{
392388
USE_NAMESPACE_DISTRHO
393389

394-
#ifdef DPF_USING_LD_LINUX_WEBVIEW
390+
#if defined(HAVE_X11) && defined(DISTRHO_OS_LINUX) && DISTRHO_UI_WEB_VIEW
395391
if (argc >= 2 && std::strcmp(argv[1], "dpf-ld-linux-webview") == 0)
396-
return dpf_webview_start(argc - 1, argv + 1);
392+
return DISTRHO_NAMESPACE::dpf_webview_start(argc, argv);
397393
#endif
398394

399395
// dummy test mode

distrho/src/DistrhoUIPrivateData.hpp

+5
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@
6161

6262
START_NAMESPACE_DISTRHO
6363

64+
/* define webview start */
65+
#if defined(HAVE_X11) && defined(DISTRHO_OS_LINUX) && DISTRHO_UI_WEB_VIEW
66+
int dpf_webview_start(int argc, char* argv[]);
67+
#endif
68+
6469
// -----------------------------------------------------------------------
6570
// Plugin Application, will set class name based on plugin details
6671

distrho/src/DistrhoUtils.cpp

-5
Original file line numberDiff line numberDiff line change
@@ -343,11 +343,6 @@ bool requestBufferSizeChange(uint) { return false; }
343343
bool requestMIDI() { return false; }
344344
#endif
345345

346-
/* define webview start */
347-
#ifdef DPF_USING_LD_LINUX_WEBVIEW
348-
int dpf_webview_start(int argc, char* argv[]);
349-
#endif
350-
351346
// --------------------------------------------------------------------------------------------------------------------
352347

353348
END_NAMESPACE_DISTRHO

0 commit comments

Comments
 (0)