2021-02-08 20:39:24 +01:00
|
|
|
add_library(plugins-common STATIC EXCLUDE_FROM_ALL
|
2021-04-14 06:36:17 +02:00
|
|
|
"common/plugin/RMSFollower.h"
|
2021-02-08 20:39:24 +01:00
|
|
|
"common/plugin/MessageUtils.h"
|
2021-04-01 21:48:31 +02:00
|
|
|
"common/plugin/MessageUtils.cpp"
|
|
|
|
|
"common/plugin/InstrumentDescription.h"
|
2021-04-08 20:30:19 +02:00
|
|
|
"common/plugin/InstrumentDescription.cpp"
|
|
|
|
|
"common/plugin/NativeHelpers.h"
|
|
|
|
|
"common/plugin/NativeHelpers.cpp"
|
|
|
|
|
"common/plugin/SfizzFileScan.h"
|
|
|
|
|
"common/plugin/SfizzFileScan.cpp"
|
|
|
|
|
"common/plugin/FileTrie.h"
|
|
|
|
|
"common/plugin/FileTrie.cpp"
|
|
|
|
|
"common/plugin/SfizzForeignPaths.h"
|
|
|
|
|
"common/plugin/SfizzForeignPaths.cpp"
|
|
|
|
|
"common/plugin/SfizzSettings.h"
|
|
|
|
|
"common/plugin/SfizzSettings.cpp")
|
|
|
|
|
if(APPLE)
|
|
|
|
|
target_sources(plugins-common PRIVATE
|
|
|
|
|
"common/plugin/SfizzForeignPaths.mm"
|
|
|
|
|
"common/plugin/SfizzSettings.mm"
|
|
|
|
|
"common/plugin/NativeHelpers.mm")
|
|
|
|
|
set_property(
|
|
|
|
|
SOURCE "common/plugin/SfizzForeignPaths.mm"
|
|
|
|
|
"common/plugin/SfizzSettings.mm"
|
|
|
|
|
"common/plugin/NativeHelpers.mm"
|
|
|
|
|
APPEND_STRING
|
|
|
|
|
PROPERTY COMPILE_FLAGS " -fobjc-arc")
|
|
|
|
|
endif()
|
2021-02-08 20:39:24 +01:00
|
|
|
target_include_directories(plugins-common PUBLIC "common")
|
|
|
|
|
target_link_libraries(plugins-common
|
|
|
|
|
PUBLIC sfizz::spin_mutex
|
2021-04-14 06:36:17 +02:00
|
|
|
PUBLIC sfizz::simde sfizz::filesystem absl::strings
|
2021-04-09 01:33:47 +02:00
|
|
|
PRIVATE sfizz::pugixml
|
2021-04-02 04:05:14 +02:00
|
|
|
PRIVATE sfizz::internal sfizz::sfizz)
|
2021-02-08 20:39:24 +01:00
|
|
|
add_library(sfizz::plugins-common ALIAS plugins-common)
|
|
|
|
|
|
2021-04-08 20:30:19 +02:00
|
|
|
# Link system dependencies
|
|
|
|
|
if(WIN32)
|
2021-04-10 11:52:13 +02:00
|
|
|
elseif(ANDROID)
|
2021-04-08 20:30:19 +02:00
|
|
|
elseif(APPLE)
|
2021-04-08 20:32:29 +02:00
|
|
|
target_link_libraries(plugins-common PRIVATE
|
|
|
|
|
"${APPLE_FOUNDATION_LIBRARY}")
|
2021-04-08 20:30:19 +02:00
|
|
|
else()
|
|
|
|
|
endif()
|
|
|
|
|
|
2021-04-10 01:35:36 +02:00
|
|
|
if((SFIZZ_LV2 AND SFIZZ_LV2_UI) OR SFIZZ_VST OR SFIZZ_AU OR SFIZZ_VST2)
|
2021-02-08 20:39:24 +01:00
|
|
|
add_subdirectory(editor)
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
if(SFIZZ_LV2)
|
|
|
|
|
add_subdirectory(lv2)
|
|
|
|
|
endif()
|
|
|
|
|
|
2021-07-05 23:57:09 +02:00
|
|
|
if((SFIZZ_VST OR SFIZZ_AU OR SFIZZ_VST2) AND NOT (SFIZZ_SYSTEM_PROCESSOR MATCHES "^(powerpc|ppc).*"))
|
2021-02-08 20:39:24 +01:00
|
|
|
add_subdirectory(vst)
|
|
|
|
|
endif()
|
2021-04-29 19:28:29 +02:00
|
|
|
|
|
|
|
|
if(SFIZZ_PUREDATA)
|
|
|
|
|
add_subdirectory(puredata)
|
|
|
|
|
endif()
|