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.cpp"
|
||||
"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_link_libraries(plugins-common
|
||||
PUBLIC sfizz::spin_mutex
|
||||
|
|
@ -10,6 +32,16 @@ target_link_libraries(plugins-common
|
|||
PRIVATE sfizz::internal sfizz::sfizz)
|
||||
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)
|
||||
add_subdirectory(editor)
|
||||
endif()
|
||||
|
|
|
|||
|
|
@ -38,31 +38,9 @@ add_library(sfizz-vst3-core STATIC
|
|||
SfizzVstUpdates.h
|
||||
SfizzVstUpdates.cpp
|
||||
SfizzVstIDs.h
|
||||
SfizzFileScan.h
|
||||
SfizzFileScan.cpp
|
||||
SfizzForeignPaths.h
|
||||
SfizzForeignPaths.cpp
|
||||
SfizzSettings.h
|
||||
SfizzSettings.cpp
|
||||
FileTrie.h
|
||||
FileTrie.cpp
|
||||
NativeHelpers.h
|
||||
NativeHelpers.cpp
|
||||
IdleUpdateHandler.h
|
||||
X11RunLoop.h
|
||||
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
|
||||
PRIVATE "${CMAKE_CURRENT_BINARY_DIR}")
|
||||
target_link_libraries(sfizz-vst3-core
|
||||
|
|
@ -80,16 +58,6 @@ gw_target_warn(sfizz-vst3-core PRIVATE
|
|||
"-Wno-unused-parameter")
|
||||
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
|
||||
add_library(${VSTPLUGIN_PRJ_NAME} MODULE "VstPluginFactory.cpp")
|
||||
if(WIN32)
|
||||
|
|
|
|||
|
|
@ -8,9 +8,9 @@
|
|||
#include "SfizzVstState.h"
|
||||
#include "SfizzVstParameters.h"
|
||||
#include "SfizzVstUpdates.h"
|
||||
#include "SfizzFileScan.h"
|
||||
#include "editor/Editor.h"
|
||||
#include "editor/EditIds.h"
|
||||
#include "plugin/SfizzFileScan.h"
|
||||
#include "plugin/InstrumentDescription.h"
|
||||
#include "IdleUpdateHandler.h"
|
||||
#if !defined(__APPLE__) && !defined(_WIN32)
|
||||
|
|
|
|||
|
|
@ -9,8 +9,8 @@
|
|||
#include "SfizzVstState.h"
|
||||
#include "SfizzVstParameters.h"
|
||||
#include "SfizzVstIDs.h"
|
||||
#include "SfizzFileScan.h"
|
||||
#include "sfizz/import/ForeignInstrument.h"
|
||||
#include "plugin/SfizzFileScan.h"
|
||||
#include "plugin/InstrumentDescription.h"
|
||||
#include "base/source/fstreamer.h"
|
||||
#include "pluginterfaces/vst/ivstevents.h"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue