Move sfizz settings and paths to common plugin sources
This commit is contained in:
parent
9558be22d1
commit
8d68f50bac
17 changed files with 35 additions and 35 deletions
|
|
@ -2,7 +2,29 @@ add_library(plugins-common STATIC EXCLUDE_FROM_ALL
|
||||||
"common/plugin/MessageUtils.h"
|
"common/plugin/MessageUtils.h"
|
||||||
"common/plugin/MessageUtils.cpp"
|
"common/plugin/MessageUtils.cpp"
|
||||||
"common/plugin/InstrumentDescription.h"
|
"common/plugin/InstrumentDescription.h"
|
||||||
"common/plugin/InstrumentDescription.cpp")
|
"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()
|
||||||
target_include_directories(plugins-common PUBLIC "common")
|
target_include_directories(plugins-common PUBLIC "common")
|
||||||
target_link_libraries(plugins-common
|
target_link_libraries(plugins-common
|
||||||
PUBLIC sfizz::spin_mutex
|
PUBLIC sfizz::spin_mutex
|
||||||
|
|
@ -10,6 +32,16 @@ target_link_libraries(plugins-common
|
||||||
PRIVATE sfizz::internal sfizz::sfizz)
|
PRIVATE sfizz::internal sfizz::sfizz)
|
||||||
add_library(sfizz::plugins-common ALIAS plugins-common)
|
add_library(sfizz::plugins-common ALIAS plugins-common)
|
||||||
|
|
||||||
|
# Link system dependencies
|
||||||
|
if(WIN32)
|
||||||
|
elseif(APPLE)
|
||||||
|
else()
|
||||||
|
find_package(PkgConfig REQUIRED)
|
||||||
|
pkg_check_modules(GLIB REQUIRED glib-2.0)
|
||||||
|
target_include_directories(plugins-common PRIVATE ${GLIB_INCLUDE_DIRS})
|
||||||
|
target_link_libraries(plugins-common PRIVATE ${GLIB_LIBRARIES})
|
||||||
|
endif()
|
||||||
|
|
||||||
if((SFIZZ_LV2 AND SFIZZ_LV2_UI) OR SFIZZ_VST)
|
if((SFIZZ_LV2 AND SFIZZ_LV2_UI) OR SFIZZ_VST)
|
||||||
add_subdirectory(editor)
|
add_subdirectory(editor)
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -38,31 +38,9 @@ add_library(sfizz-vst3-core STATIC
|
||||||
SfizzVstUpdates.h
|
SfizzVstUpdates.h
|
||||||
SfizzVstUpdates.cpp
|
SfizzVstUpdates.cpp
|
||||||
SfizzVstIDs.h
|
SfizzVstIDs.h
|
||||||
SfizzFileScan.h
|
|
||||||
SfizzFileScan.cpp
|
|
||||||
SfizzForeignPaths.h
|
|
||||||
SfizzForeignPaths.cpp
|
|
||||||
SfizzSettings.h
|
|
||||||
SfizzSettings.cpp
|
|
||||||
FileTrie.h
|
|
||||||
FileTrie.cpp
|
|
||||||
NativeHelpers.h
|
|
||||||
NativeHelpers.cpp
|
|
||||||
IdleUpdateHandler.h
|
IdleUpdateHandler.h
|
||||||
X11RunLoop.h
|
X11RunLoop.h
|
||||||
X11RunLoop.cpp)
|
X11RunLoop.cpp)
|
||||||
if(APPLE)
|
|
||||||
target_sources(sfizz-vst3-core PRIVATE
|
|
||||||
SfizzForeignPaths.mm
|
|
||||||
SfizzSettings.mm
|
|
||||||
NativeHelpers.mm)
|
|
||||||
set_property(
|
|
||||||
SOURCE SfizzForeignPaths.mm
|
|
||||||
SfizzSettings.mm
|
|
||||||
NativeHelpers.mm
|
|
||||||
APPEND_STRING
|
|
||||||
PROPERTY COMPILE_FLAGS " -fobjc-arc")
|
|
||||||
endif()
|
|
||||||
target_include_directories(sfizz-vst3-core
|
target_include_directories(sfizz-vst3-core
|
||||||
PRIVATE "${CMAKE_CURRENT_BINARY_DIR}")
|
PRIVATE "${CMAKE_CURRENT_BINARY_DIR}")
|
||||||
target_link_libraries(sfizz-vst3-core
|
target_link_libraries(sfizz-vst3-core
|
||||||
|
|
@ -80,16 +58,6 @@ gw_target_warn(sfizz-vst3-core PRIVATE
|
||||||
"-Wno-unused-parameter")
|
"-Wno-unused-parameter")
|
||||||
add_library(sfizz::vst3-core ALIAS sfizz-vst3-core)
|
add_library(sfizz::vst3-core ALIAS sfizz-vst3-core)
|
||||||
|
|
||||||
# Link system dependencies
|
|
||||||
if(WIN32)
|
|
||||||
elseif(APPLE)
|
|
||||||
else()
|
|
||||||
find_package(PkgConfig REQUIRED)
|
|
||||||
pkg_check_modules(GLIB REQUIRED glib-2.0)
|
|
||||||
target_include_directories(sfizz-vst3-core PRIVATE ${GLIB_INCLUDE_DIRS})
|
|
||||||
target_link_libraries(sfizz-vst3-core PRIVATE ${GLIB_LIBRARIES})
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# Build the plugin
|
# Build the plugin
|
||||||
add_library(${VSTPLUGIN_PRJ_NAME} MODULE "VstPluginFactory.cpp")
|
add_library(${VSTPLUGIN_PRJ_NAME} MODULE "VstPluginFactory.cpp")
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
|
|
|
||||||
|
|
@ -8,9 +8,9 @@
|
||||||
#include "SfizzVstState.h"
|
#include "SfizzVstState.h"
|
||||||
#include "SfizzVstParameters.h"
|
#include "SfizzVstParameters.h"
|
||||||
#include "SfizzVstUpdates.h"
|
#include "SfizzVstUpdates.h"
|
||||||
#include "SfizzFileScan.h"
|
|
||||||
#include "editor/Editor.h"
|
#include "editor/Editor.h"
|
||||||
#include "editor/EditIds.h"
|
#include "editor/EditIds.h"
|
||||||
|
#include "plugin/SfizzFileScan.h"
|
||||||
#include "plugin/InstrumentDescription.h"
|
#include "plugin/InstrumentDescription.h"
|
||||||
#include "IdleUpdateHandler.h"
|
#include "IdleUpdateHandler.h"
|
||||||
#if !defined(__APPLE__) && !defined(_WIN32)
|
#if !defined(__APPLE__) && !defined(_WIN32)
|
||||||
|
|
|
||||||
|
|
@ -9,8 +9,8 @@
|
||||||
#include "SfizzVstState.h"
|
#include "SfizzVstState.h"
|
||||||
#include "SfizzVstParameters.h"
|
#include "SfizzVstParameters.h"
|
||||||
#include "SfizzVstIDs.h"
|
#include "SfizzVstIDs.h"
|
||||||
#include "SfizzFileScan.h"
|
|
||||||
#include "sfizz/import/ForeignInstrument.h"
|
#include "sfizz/import/ForeignInstrument.h"
|
||||||
|
#include "plugin/SfizzFileScan.h"
|
||||||
#include "plugin/InstrumentDescription.h"
|
#include "plugin/InstrumentDescription.h"
|
||||||
#include "base/source/fstreamer.h"
|
#include "base/source/fstreamer.h"
|
||||||
#include "pluginterfaces/vst/ivstevents.h"
|
#include "pluginterfaces/vst/ivstevents.h"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue