Skip to content

Commit

Permalink
take 4
Browse files Browse the repository at this point in the history
  • Loading branch information
ofsjoerdk committed Mar 26, 2023
1 parent 66e4578 commit c7dfdf3
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 23 deletions.
41 changes: 21 additions & 20 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,14 @@ target_include_directories(infernal.vst.base PRIVATE ${INF_BASE_SRC_DIR})
target_include_directories(infernal.vst.base PRIVATE ${INF_VST_BASE_SRC_DIR})
target_include_directories(infernal.vst.base SYSTEM PRIVATE ${VST_SDK_377_SRC_DIR})
target_include_directories(infernal.vst.base SYSTEM PRIVATE ${VST_SDK_377_SRC_DIR}/vstgui4)
target_link_libraries(infernal.vst.base PRIVATE infernal.base)
target_link_libraries(infernal.vst.base PUBLIC debug "${VST3_SDK_LIB_Debug}" optimized "${VST3_SDK_LIB_Release}")
target_link_libraries(infernal.vst.base PUBLIC debug "${VST3_SDK_COMMON_LIB_Debug}" optimized "${VST3_SDK_COMMON_LIB_Release}")
target_link_libraries(infernal.vst.base PUBLIC debug "${VST3_BASE_LIB_Debug}" optimized "${VST3_BASE_LIB_Release}")
target_link_libraries(infernal.vst.base PUBLIC debug "${VST3_PLUGINTERFACES_LIB_Debug}" optimized "${VST3_PLUGINTERFACES_LIB_Release}")
target_link_libraries(infernal.vst.base PRIVATE debug "${VST3_VSTGUI_SUPPORT_LIB_Debug}" optimized "${VST3_VSTGUI_SUPPORT_LIB_Release}")
target_link_libraries(infernal.vst.base PRIVATE debug "${VST3_VSTGUI_UIDESCRIPTION_LIB_Debug}" optimized "${VST3_VSTGUI_UIDESCRIPTION_LIB_Release}")
target_link_libraries(infernal.vst.base PRIVATE debug "${VST3_VSTGUI_LIB_Debug}" optimized "${VST3_VSTGUI_LIB_Release}")
target_link_libraries(infernal.vst.base infernal.base)
target_link_libraries(infernal.vst.base debug "${VST3_SDK_LIB_Debug}" optimized "${VST3_SDK_LIB_Release}")
target_link_libraries(infernal.vst.base debug "${VST3_SDK_COMMON_LIB_Debug}" optimized "${VST3_SDK_COMMON_LIB_Release}")
target_link_libraries(infernal.vst.base debug "${VST3_BASE_LIB_Debug}" optimized "${VST3_BASE_LIB_Release}")
target_link_libraries(infernal.vst.base debug "${VST3_PLUGINTERFACES_LIB_Debug}" optimized "${VST3_PLUGINTERFACES_LIB_Release}")
target_link_libraries(infernal.vst.base debug "${VST3_VSTGUI_SUPPORT_LIB_Debug}" optimized "${VST3_VSTGUI_SUPPORT_LIB_Release}")
target_link_libraries(infernal.vst.base debug "${VST3_VSTGUI_UIDESCRIPTION_LIB_Debug}" optimized "${VST3_VSTGUI_UIDESCRIPTION_LIB_Release}")
target_link_libraries(infernal.vst.base debug "${VST3_VSTGUI_LIB_Debug}" optimized "${VST3_VSTGUI_LIB_Release}")
if (MSVC)
source_group(TREE "../../${INF_VST_BASE_SRC_DIR}" FILES ${INF_VST_BASE_SRC})
target_compile_options(infernal.vst.base PRIVATE /external:I ${VST_SDK_377_SRC_DIR_WIN32})
Expand All @@ -104,27 +104,28 @@ endif()
set(INF_VST_SYNTH_INSTRUMENT_GENERIC_SRC_DIR "src/inf.vst.synth.instrument")
file(GLOB_RECURSE INF_VST_SYNTH_INSTRUMENT_GENERIC_SRC "${INF_VST_SYNTH_INSTRUMENT_GENERIC_SRC_DIR}/*.*")
add_library(infernal.vst.synth.instrument.generic SHARED ${INF_VST_SYNTH_INSTRUMENT_GENERIC_SRC})
#set_property(TARGET infernal.vst.synth.instrument.generic PROPERTY POSITION_INDEPENDENT_CODE ON)
target_compile_definitions(infernal.vst.synth.instrument.generic PRIVATE -DINF_VERSIONED=0)
target_include_directories(infernal.vst.synth.instrument.generic PRIVATE ${INF_BASE_SRC_DIR})
target_include_directories(infernal.vst.synth.instrument.generic PRIVATE ${INF_SYNTH_SRC_DIR})
target_include_directories(infernal.vst.synth.instrument.generic PRIVATE ${INF_VST_BASE_SRC_DIR})
target_include_directories(infernal.vst.synth.instrument.generic PRIVATE ${INF_VST_SYNTH_INSTRUMENT_GENERIC_SRC_DIR})
target_include_directories(infernal.vst.synth.instrument.generic SYSTEM PRIVATE ${VST_SDK_377_SRC_DIR})
target_include_directories(infernal.vst.synth.instrument.generic SYSTEM PRIVATE ${VST_SDK_377_SRC_DIR}/vstgui4)
target_link_libraries(infernal.vst.synth.instrument.generic PRIVATE infernal.base)
target_link_libraries(infernal.vst.synth.instrument.generic PRIVATE infernal.synth)
target_link_libraries(infernal.vst.synth.instrument.generic PRIVATE infernal.vst.base)
target_link_libraries(infernal.vst.synth.instrument.generic PUBLIC debug "${VST3_SDK_LIB_Debug}" optimized "${VST3_SDK_LIB_Release}")
target_link_libraries(infernal.vst.synth.instrument.generic PUBLIC debug "${VST3_SDK_COMMON_LIB_Debug}" optimized "${VST3_SDK_COMMON_LIB_Release}")
target_link_libraries(infernal.vst.synth.instrument.generic PUBLIC debug "${VST3_BASE_LIB_Debug}" optimized "${VST3_BASE_LIB_Release}")
target_link_libraries(infernal.vst.synth.instrument.generic PUBLIC debug "${VST3_PLUGINTERFACES_LIB_Debug}" optimized "${VST3_PLUGINTERFACES_LIB_Release}")
target_link_libraries(infernal.vst.synth.instrument.generic PRIVATE debug "${VST3_VSTGUI_SUPPORT_LIB_Debug}" optimized "${VST3_VSTGUI_SUPPORT_LIB_Release}")
target_link_libraries(infernal.vst.synth.instrument.generic PRIVATE debug "${VST3_VSTGUI_UIDESCRIPTION_LIB_Debug}" optimized "${VST3_VSTGUI_UIDESCRIPTION_LIB_Release}")
target_link_libraries(infernal.vst.synth.instrument.generic PRIVATE debug "${VST3_VSTGUI_LIB_Debug}" optimized "${VST3_VSTGUI_LIB_Release}")
target_link_libraries(infernal.vst.synth.instrument.generic debug "${VST3_SDK_LIB_Debug}" optimized "${VST3_SDK_LIB_Release}")
target_link_libraries(infernal.vst.synth.instrument.generic debug "${VST3_SDK_COMMON_LIB_Debug}" optimized "${VST3_SDK_COMMON_LIB_Release}")
target_link_libraries(infernal.vst.synth.instrument.generic debug "${VST3_BASE_LIB_Debug}" optimized "${VST3_BASE_LIB_Release}")
target_link_libraries(infernal.vst.synth.instrument.generic debug "${VST3_PLUGINTERFACES_LIB_Debug}" optimized "${VST3_PLUGINTERFACES_LIB_Release}")
target_link_libraries(infernal.vst.synth.instrument.generic debug "${VST3_VSTGUI_SUPPORT_LIB_Debug}" optimized "${VST3_VSTGUI_SUPPORT_LIB_Release}")
target_link_libraries(infernal.vst.synth.instrument.generic debug "${VST3_VSTGUI_UIDESCRIPTION_LIB_Debug}" optimized "${VST3_VSTGUI_UIDESCRIPTION_LIB_Release}")
target_link_libraries(infernal.vst.synth.instrument.generic debug "${VST3_VSTGUI_LIB_Debug}" optimized "${VST3_VSTGUI_LIB_Release}")
target_link_libraries(infernal.vst.synth.instrument.generic infernal.vst.base)
target_link_libraries(infernal.vst.synth.instrument.generic infernal.synth)
target_link_libraries(infernal.vst.synth.instrument.generic infernal.base)
set_target_properties(infernal.vst.synth.instrument.generic PROPERTIES OUTPUT_NAME "InfernalSynth")
set_target_properties(infernal.vst.synth.instrument.generic PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/InfernalSynth/Generic/InfernalSynth.vst3/Contents/x86_64-linux")
add_custom_target(copy-ui-synth-instrument-generic-release ALL DEPENDS infernal.vst.synth.instrument.generic COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/ui ${CMAKE_BINARY_DIR}/InfernalSynth/Generic/InfernalSynth.vst3/Contents/Resources/UI)
add_custom_target(copy-presets-synth-instrument-generic-release ALL DEPENDS infernal.vst.synth.instrument.generic COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/presets/instrument ${CMAKE_BINARY_DIR}/InfernalSynth/Generic/InfernalSynth.vst3/Contents/Resources/Presets)
add_custom_target(copy-ui-synth-instrument-generic ALL DEPENDS infernal.vst.synth.instrument.generic COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/ui ${CMAKE_BINARY_DIR}/InfernalSynth/Generic/InfernalSynth.vst3/Contents/Resources/UI)
add_custom_target(copy-presets-synth-instrument-generic ALL DEPENDS infernal.vst.synth.instrument.generic COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/presets/instrument ${CMAKE_BINARY_DIR}/InfernalSynth/Generic/InfernalSynth.vst3/Contents/Resources/Presets)

if (MSVC)
source_group(TREE "../../${INF_VST_SYNTH_INSTRUMENT_GENERIC_SRC_DIR}" FILES ${INF_VST_SYNTH_INSTRUMENT_GENERIC_SRC})
Expand Down
6 changes: 3 additions & 3 deletions scripts/make_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ cd build
mkdir -p linux
cd linux

mkdir -p release
cd release
cmake ../../../ -DCMAKE_BUILD_TYPE=Release -DVST_SDK_377_SRC_DIR=/media/sf_vst-sdk_3.7.7/linux/vst3sdk_dynamic -DVST_SDK_377_BUILD_DEBUG_DIR=/media/sf_vst-sdk_3.7.7/linux/vst3sdk_dynamic/build/debug/lib/Debug -DVST_SDK_377_BUILD_RELEASE_DIR=/media/sf_vst-sdk_3.7.7/linux/vst3sdk_dynamic/build/release/lib/Release -DHIIR_140_SRC_DIR=/media/sf_hiir_1.40
mkdir -p debug
cd debug
cmake ../../../ -DCMAKE_BUILD_TYPE=Debug -DVST_SDK_377_SRC_DIR=/media/sf_vst-sdk_3.7.7/linux/vst3sdk_dynamic -DVST_SDK_377_BUILD_DEBUG_DIR=/media/sf_vst-sdk_3.7.7/linux/vst3sdk_dynamic/build/debug/lib -DVST_SDK_377_BUILD_RELEASE_DIR=/media/sf_vst-sdk_3.7.7/linux/vst3sdk_dynamic/build/release/lib -DHIIR_140_SRC_DIR=/media/sf_hiir_1.40
make
cd ..

Expand Down

0 comments on commit c7dfdf3

Please sign in to comment.