From be9c494572ff450a8e2b76ec48cec0e0909e9d02 Mon Sep 17 00:00:00 2001 From: MeijisIrlnd Date: Thu, 15 Aug 2024 02:55:57 +0100 Subject: [PATCH] compiling - but crashing on shutdown --- cmake/mostly_harmless.cmake | 20 +++++++++++++------- source/utils/mostlyharmless_Timer.cpp | 1 + 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/cmake/mostly_harmless.cmake b/cmake/mostly_harmless.cmake index 070af9b..5fb93fb 100644 --- a/cmake/mostly_harmless.cmake +++ b/cmake/mostly_harmless.cmake @@ -70,7 +70,7 @@ function(mostly_harmless_add_plugin) MACOSX_BUNDLE_BUNDLE_NAME ${PLUGIN_NAME} MACOSX_BUNDLE_BUNDLE_VERSION "0.0.1" MACOSX_BUNDLE_SHORT_VERSION_STRING "0.0.1" - MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_FUNCTION_LIST_DIR}/cmake/mostly_harmless.plist.in + MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_FUNCTION_LIST_DIR}/mostly_harmless.plist.in ) elseif (WIN32) set_target_properties(${PLUGIN_NAME}_CLAP @@ -90,12 +90,18 @@ function(mostly_harmless_add_plugin) target_link_libraries(${PLUGIN_NAME}_VST3 PUBLIC ${PLUGIN_NAME}_SharedCode) if (APPLE) - add_library(${PLUGIN_NAME}_AU MODULE) - target_add_auv2_wrapper( - TARGET ${PLUGIN_NAME}_AU - OUTPUT_NAME ${PLUGIN_NAME} - ) - target_link_libraries(${PLUGIN_NAME}_AU PUBLIC ${PLUGIN_NAME}_SharedCode}) + #TODO: AU + # add_library(${PLUGIN_NAME}_AU MODULE) + # target_add_auv2_wrapper( + # TARGET ${PLUGIN_NAME}_AU + # OUTPUT_NAME ${PLUGIN_NAME} + # BUNDLE_IDENTIFIER "com.${PLUGIN_VENDOR}.${PLUGIN_NAME}" + # BUNDLE_VERSION "1" + # + # MANUFACTURER_NAME ${PLUGIN_VENDOR} + # MANUFACTURER_CODE + # ) + # target_link_libraries(${PLUGIN_NAME}_AU PUBLIC ${PLUGIN_NAME}_SharedCode}) endif () add_executable(${PLUGIN_NAME}_Standalone) diff --git a/source/utils/mostlyharmless_Timer.cpp b/source/utils/mostlyharmless_Timer.cpp index cc66cae..940c14e 100644 --- a/source/utils/mostlyharmless_Timer.cpp +++ b/source/utils/mostlyharmless_Timer.cpp @@ -2,6 +2,7 @@ // Created by Syl on 12/08/2024. // #include +#include namespace mostly_harmless::utils { Timer::~Timer() noexcept { stop();