diff --git a/.github/workflows/pullreq.yml b/.github/workflows/pullreq.yml index c298ed40..beb2e1c4 100644 --- a/.github/workflows/pullreq.yml +++ b/.github/workflows/pullreq.yml @@ -133,6 +133,10 @@ jobs: with: submodules: recursive + - name: Apt Update + if: ${{ matrix.run_aptget }} + run: sudo apt-get update + - name: Get Deps if: ${{ matrix.run_aptget }} run: sudo apt-get install -y alsa alsa-tools libasound2-dev libjack-dev libgtk-3-dev diff --git a/CMakeLists.txt b/CMakeLists.txt index 81ab375d..8e717f51 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -39,6 +39,7 @@ project(clap-wrapper VERSION 0.7.1 DESCRIPTION "CLAP-as-X wrappers" ) +set(CLAP_WRAPPER_VERSION "${CMAKE_PROJECT_VERSION}" CACHE STRING "Version of the wrapper project") if (APPLE) enable_language(OBJC) diff --git a/cmake/shared_prologue.cmake b/cmake/shared_prologue.cmake index e6a27f37..e79ed0f5 100644 --- a/cmake/shared_prologue.cmake +++ b/cmake/shared_prologue.cmake @@ -36,7 +36,7 @@ endif() add_library(clap-wrapper-compile-options INTERFACE) add_library(clap-wrapper-sanitizer-options INTERFACE) -target_compile_options(clap-wrapper-compile-options INTERFACE -D${CLAP_WRAPPER_PLATFORM}=1) +target_compile_options(clap-wrapper-compile-options INTERFACE -D${CLAP_WRAPPER_PLATFORM}=1 -DCLAP_WRAPPER_VERSION="${CLAP_WRAPPER_VERSION}") if (APPLE) target_link_libraries(clap-wrapper-compile-options INTERFACE macos_filesystem_support) endif() diff --git a/src/clap_proxy.cpp b/src/clap_proxy.cpp index ac98600b..36074673 100644 --- a/src/clap_proxy.cpp +++ b/src/clap_proxy.cpp @@ -158,7 +158,7 @@ Plugin::Plugin(IHost* host) host->host_get_name(), "defiant nerd", "https://www.defiantnerd.com", - "0.0.1", + CLAP_WRAPPER_VERSION, Plugin::clapExtension, Plugin::clapRequestRestart, Plugin::clapRequestProcess,