Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .github/workflows/builds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,15 @@ concurrency:
cancel-in-progress: true

jobs:
ci:
# Build in/against ossia score: dev tree, SDK, and JIT artifact tracks.
score:
uses: ossia/actions/.github/workflows/score-addon.yml@master
secrets: inherit
with:
release: false # the templates ship no release.sh

# Build the same object(s) standalone, one artifact per back-end.
standalone:
uses: ossia/actions/.github/workflows/avnd-addon.yml@master
secrets: inherit
with:
Expand Down
14 changes: 11 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@ cmake_minimum_required(VERSION 3.24 FATAL_ERROR)

project(MyProcessor CXX)

# Max/MSP externals link the static CRT (/MT) on Windows, as the official
# max-sdk-base requires. Set it for the whole addon -- before Avendish and the
# object library are created -- so every target shares one runtime; mixing /MT
# and /MD trips MSVC with LNK2038. (CMP0091 is NEW via cmake_minimum_required.)
if(MSVC)
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
endif()

# Use the Avendish the host already provides (e.g. ossia score); otherwise fetch it.
# The same CMakeLists builds this as an ossia/score add-on or as a standalone object.
find_package(Avendish QUIET)
Expand All @@ -16,13 +24,13 @@ if(NOT Avendish_FOUND)
find_package(Avendish REQUIRED)
endif()

avnd_addon_init(NAME MyProcessor)
avnd_addon_init(NAME MyAudioAddon)

# CATEGORY all: every back-end family -- audio plug-ins (VST3 / CLAP / VST2), the object
# bindings (Max / Pd / Python / TouchDesigner / Godot) and gstreamer. In a score build
# only the ossia process is produced. Back-ends whose SDK is absent are silently skipped.
avnd_addon_object(
BASE MyProcessor
BASE MyAudioAddon
C_NAME my_processor
CLASS MyProcessor
CATEGORY all
Expand All @@ -33,4 +41,4 @@ avnd_addon_object(
src/UI.hpp
src/Processor.hpp)

avnd_addon_finalize(NAME MyProcessor UUID a0ef0602-d1b2-46b7-9615-2049e1e97774 VERSION 1.0.0)
avnd_addon_finalize(NAME MyAudioAddon UUID a0ef0602-d1b2-46b7-9615-2049e1e97774 VERSION 1)
5 changes: 5 additions & 0 deletions src/Model.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,8 @@ inline void MyProcessor::operator()(int N)
}
}
}

// Pull in the UI so MyProcessor::ui is complete wherever this class header is
// included -- the score plugin generator includes the class header, not the
// MAIN_FILE, and needs the full ui type to build the process's layer.
#include "UI.hpp"
Loading