diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index 3ee92b19a..d39f0620a 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -87,7 +87,7 @@ function(set_common_target_properties TARGET) $<$:/wd4244 /wd4267 /wd4273> ) - if("${C_COMPILER_ID}" MATCHES "GNU") + if(CMAKE_C_COMPILER_ID MATCHES "GNU") target_link_options(${TARGET} PRIVATE -Wl,--no-undefined @@ -403,7 +403,7 @@ target_include_directories(carla-water target_link_libraries(carla-water PRIVATE - $<$:${APPKIT}> + $<$:$> $<$:comdlg32> $<$:ole32> $<$:winmm> @@ -441,7 +441,7 @@ target_include_directories(carla-water-files target_link_libraries(carla-water-files PRIVATE - $<$:${APPKIT}> + $<$:$> $<$:ole32> $<$:winmm> ${CARLA_LIBDL} @@ -664,6 +664,7 @@ target_link_libraries(carla-discovery-native carla-water-files carla-ysfx PkgConfig::FLUIDSYNTH + ${CMAKE_THREAD_LIBS_INIT} ) target_sources(carla-discovery-native @@ -694,11 +695,13 @@ target_include_directories(carla-utils target_link_libraries(carla-utils PRIVATE + carla-jackbridge carla-lilv carla-water-files carla-ysfx PkgConfig::FLUIDSYNTH PkgConfig::X11 + ${CMAKE_THREAD_LIBS_INIT} ) target_sources(carla-utils diff --git a/source/utils/CarlaMacUtils.hpp b/source/utils/CarlaMacUtils.hpp index 6b91db89e..7d74494a4 100644 --- a/source/utils/CarlaMacUtils.hpp +++ b/source/utils/CarlaMacUtils.hpp @@ -31,29 +31,27 @@ typedef const struct __CFString* CFStringRef; void* CFBundleGetFunctionPointerForName(CFBundleRef, CFStringRef); } -// -------------------------------------------------------------------------------------------------------------------- -// a few public functions - -/* - * ... - */ -CARLA_PLUGIN_EXPORT void initStandaloneApplication(); - -/* - * ... - */ -CARLA_PLUGIN_EXPORT const char* findBinaryInBundle(const char* const bundleDir); - -/* - * ... - */ -CARLA_PLUGIN_EXPORT bool removeFileFromQuarantine(const char* const filename); - -// -------------------------------------------------------------------------------------------------------------------- -// and now then private stuff - CARLA_BACKEND_START_NAMESPACE +// -------------------------------------------------------------------------------------------------------------------- + +/* + * ... + */ +CARLA_API void initStandaloneApplication(); + +/* + * ... + */ +CARLA_API const char* findBinaryInBundle(const char* const bundleDir); + +/* + * ... + */ +CARLA_API bool removeFileFromQuarantine(const char* const filename); + +// -------------------------------------------------------------------------------------------------------------------- + /* * ... */ diff --git a/source/utils/CarlaMainLoop.hpp b/source/utils/CarlaMainLoop.hpp index b8852286d..9b9bf9053 100644 --- a/source/utils/CarlaMainLoop.hpp +++ b/source/utils/CarlaMainLoop.hpp @@ -40,7 +40,11 @@ bool runMainLoopOnce() for (;;) { event = [NSApp + #ifdef __MAC_10_12 + nextEventMatchingMask:NSEventMaskAny + #else nextEventMatchingMask:NSAnyEventMask + #endif untilDate:date inMode:NSDefaultRunLoopMode dequeue:YES];