Browse Source

Fix webview msvc build

Signed-off-by: falkTX <falktx@falktx.com>
pull/457/head
falkTX 1 year ago
parent
commit
52c2e78423
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
3 changed files with 9 additions and 3 deletions
  1. +7
    -2
      cmake/DPF-plugin.cmake
  2. +1
    -1
      distrho/extra/WebViewWin32.hpp
  3. +1
    -0
      distrho/src/DistrhoUtils.cpp

+ 7
- 2
cmake/DPF-plugin.cmake View File

@@ -996,8 +996,13 @@ function(dpf__add_plugin_specific_ui_sources NAME USE_WEB_VIEW)
elseif(WIN32 AND USE_WEB_VIEW)
target_sources("${NAME}" PRIVATE
"${DPF_ROOT_DIR}/distrho/DistrhoUI_win32.cpp")
set_source_files_properties("${DPF_ROOT_DIR}/distrho/DistrhoUI_win32.cpp"
PROPERTIES COMPILE_FLAGS -std=gnu++17)
if (MSVC)
set_source_files_properties("${DPF_ROOT_DIR}/distrho/DistrhoUI_win32.cpp"
PROPERTIES COMPILE_FLAGS /std:c++17)
else()
set_source_files_properties("${DPF_ROOT_DIR}/distrho/DistrhoUI_win32.cpp"
PROPERTIES COMPILE_FLAGS -std=gnu++17)
endif()
endif()
endfunction()



+ 1
- 1
distrho/extra/WebViewWin32.hpp View File

@@ -24,7 +24,7 @@

START_NAMESPACE_DISTRHO

struct WebView;
class WebView;

WebView* webview_choc_create(const WebViewOptions& opts);
void webview_choc_destroy(WebView*);


+ 1
- 0
distrho/src/DistrhoUtils.cpp View File

@@ -19,6 +19,7 @@
#endif

#include "../extra/String.hpp"
#include "../DistrhoPluginUtils.hpp"
#include "../DistrhoStandaloneUtils.hpp"

#ifdef DISTRHO_OS_WINDOWS


Loading…
Cancel
Save