Commit 0db1560b authored by Benjamin Heisch's avatar Benjamin Heisch
Browse files

Removed dload from pluginval and moved it to install script.

parent e9ac8991
Pipeline #19060 passed with stages
in 4 minutes and 8 seconds
......@@ -447,4 +447,5 @@ MigrationBackup/
# End of https://www.gitignore.io/api/git,c++,cmake,qtcreator,visualstudio
out/
build/
\ No newline at end of file
build/
/scripts/pluginval_dload.zip
find_path(LV2_INCLUDE_DIR
NAMES core/lv2.h
PATH_SUFFIXES include lv2 include/lv2
PATH_SUFFIXES include lv2 include/lv2 lv2/include/lv2
)
find_package(PackageHandleStandardArgs)
......
#TortureTester_EXECUTABLE
find_program(TortureTester_EXECUTABLE NAMES plugin-torture torture TortureTester DOC "Path to torture-plugin tester Executable"
PATHS bin)
PATH_SUFFIXES bin/ plugin-torture/bin/)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(TortureTester
......
find_program(pluginval_EXECUTABLE NAMES pluginval DOC "Path to pluginval tester Executable")
find_program(pluginval_EXECUTABLE NAMES pluginval DOC "Path to pluginval tester Executable"
PATH_SUFFIXES bin/ pluginval/bin/)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(pluginval
......
......@@ -127,34 +127,3 @@ function(run_lv2_tests TARGET)
add_test(NAME ${TARGET}_xvalidate_lv2_test COMMAND XValidate -lv2 -l 10 -p ${LV2_TEMP_PACKAGE}/$<TARGET_FILE_NAME:${TARGET}> )
endfunction(run_lv2_tests TARGET)
macro(DLOAD_PLUGINVAL)
if(NOT TARGET pluginval)
if(WIN32)
set(PLUGINVAL_DOWNLOAD_URL https://github.com/Tracktion/pluginval/releases/download/latest_release/pluginval_Windows.zip)
set(EXE_NAME pluginval.exe)
elseif(APPLE)
set(PLUGINVAL_DOWNLOAD_URL https://github.com/Tracktion/pluginval/releases/download/latest_release/pluginval_macOS.zip)
set(EXE_NAME pluginval.app/Contents/MacOS/pluginval)
elseif(UNIX AND NOT APPLE)
set(PLUGINVAL_DOWNLOAD_URL https://github.com/Tracktion/pluginval/releases/download/latest_release/pluginval_Linux.zip)
set(EXE_NAME pluginval)
endif(WIN32)
set(PLUGINVAL_EXE_PATH ${CMAKE_BINARY_DIR}/${EXE_NAME}) # Path to extracted executable
set(PLUGINVAL_TEMP_ZIP_PATH ${CMAKE_BINARY_DIR}/pluginval_dload.zip) #Path to downloaded zipfile
if(NOT EXISTS ${PLUGINVAL_EXE_PATH})
if(NOT EXISTS ${PLUGINVAL_TEMP_ZIP_PATH})
file(DOWNLOAD ${PLUGINVAL_DOWNLOAD_URL} ${PLUGINVAL_TEMP_ZIP_PATH})
endif(NOT EXISTS ${PLUGINVAL_TEMP_ZIP_PATH})
execute_process(COMMAND ${CMAKE_COMMAND} -E tar -xf ${PLUGINVAL_TEMP_ZIP_PATH} WORKING_DIRECTORY ${CMAKE_BINARY_DIR})
endif(NOT EXISTS ${PLUGINVAL_EXE_PATH})
add_executable(pluginval IMPORTED GLOBAL)
set_target_properties(pluginval PROPERTIES IMPORTED_LOCATION "${PLUGINVAL_EXE_PATH}")
if(XPLUG_INSTALL)
install(PROGRAMS "${PLUGINVAL_EXE_PATH}" DESTINATION bin)
endif(XPLUG_INSTALL)
endif(NOT TARGET pluginval)
endmacro(DLOAD_PLUGINVAL)
......@@ -19,7 +19,6 @@ endif(XPLUG_LV2_SUPPORT)
if(XPLUG_BUILD_TESTS)
include(xplug)
DLOAD_PLUGINVAL()
if(XPLUG_VST2_SUPPORT)
RUN_VST2_TEST(MidiForwarder)
endif(XPLUG_VST2_SUPPORT)
......
......@@ -19,7 +19,6 @@ endif(XPLUG_LV2_SUPPORT)
if(XPLUG_BUILD_TESTS)
include(xplug)
DLOAD_PLUGINVAL()
if(XPLUG_VST2_SUPPORT)
RUN_VST2_TEST(VolumePlugin)
endif(XPLUG_VST2_SUPPORT)
......
......@@ -7,6 +7,7 @@ endif(NOT BUILD_DIR)
SET(SKIP_VST3 OFF)
SET(SKIP_TORTURE OFF)
SET(SKIP_LV2 OFF)
SET(SKIP_PLUGINVAL OFF)
if(WIN32)
if(NOT INSTALL_PREFIX)
SET(INSTALL_PREFIX "c:/Program Files" )
......@@ -14,6 +15,7 @@ if(WIN32)
SET(TORTURE_INSTALL_PREFIX ${INSTALL_PREFIX}/plugin-torture)
SET(LV2_INSTALL_PREFIX ${INSTALL_PREFIX}/lv2)
SET(VST3_INSTALL_PREFIX ${INSTALL_PREFIX}/vst3sdk)
SET(PLUGINVAL_INSTALL_PREFIX ${INSTALL_PREFIX}/pluginval)
elseif(UNIX)
if(NOT INSTALL_PREFIX)
SET(INSTALL_PREFIX "/usr/local")
......@@ -21,6 +23,7 @@ elseif(UNIX)
SET(TORTURE_INSTALL_PREFIX ${INSTALL_PREFIX})
SET(LV2_INSTALL_PREFIX ${INSTALL_PREFIX})
SET(VST3_INSTALL_PREFIX ${INSTALL_PREFIX})
SET(PLUGINVAL_INSTALL_PREFIX ${INSTALL_PREFIX})
endif(WIN32)
......@@ -68,6 +71,7 @@ endfunction(xinstall)
##################### INSTALLING TortureTester ###################
if(NOT SKIP_TORTURE)
execute_process(COMMAND git clone https://github.com/CapRat/plugin-torture.git ${BUILD_DIR}/TortureTesterSrc)
......@@ -114,3 +118,28 @@ if(NOT SKIP_VST3)
file(REMOVE_RECURSE ${BUILD_DIR}/Vst3SdkSrc)
file(REMOVE_RECURSE ${BUILD_DIR}/Vst3SdkBuild)
endif(NOT SKIP_VST3)
#################INSTALLING PLUGINVAL######################
if(NOT SKIP_PLUGINVAL)
if(WIN32)
set(PLUGINVAL_DOWNLOAD_URL https://github.com/Tracktion/pluginval/releases/download/latest_release/pluginval_Windows.zip)
set(EXE_NAME pluginval.exe)
elseif(APPLE)
set(PLUGINVAL_DOWNLOAD_URL https://github.com/Tracktion/pluginval/releases/download/latest_release/pluginval_macOS.zip)
set(EXE_NAME pluginval.app/Contents/MacOS/pluginval)
elseif(UNIX AND NOT APPLE)
set(PLUGINVAL_DOWNLOAD_URL https://github.com/Tracktion/pluginval/releases/download/latest_release/pluginval_Linux.zip)
set(EXE_NAME pluginval)
endif(WIN32)
set(PLUGINVAL_EXE_PATH ${BUILD_DIR}/${EXE_NAME}) # Path to extracted executable
set(PLUGINVAL_TEMP_ZIP_PATH ${BUILD_DIR}/pluginval_dload.zip) #Path to downloaded zipfile
if(NOT EXISTS ${PLUGINVAL_EXE_PATH})
if(NOT EXISTS ${PLUGINVAL_TEMP_ZIP_PATH})
file(DOWNLOAD ${PLUGINVAL_DOWNLOAD_URL} ${PLUGINVAL_TEMP_ZIP_PATH})
endif(NOT EXISTS ${PLUGINVAL_TEMP_ZIP_PATH})
execute_process(COMMAND ${CMAKE_COMMAND} -E tar -xf ${PLUGINVAL_TEMP_ZIP_PATH} WORKING_DIRECTORY ${BUILD_DIR})
endif(NOT EXISTS ${PLUGINVAL_EXE_PATH})
xinstall(INSTALL_PREFIX ${PLUGINVAL_INSTALL_PREFIX} DESTINATION bin/ FILE_PATTERNS ${PLUGINVAL_EXE_PATH})
endif(NOT SKIP_PLUGINVAL)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment