{"id":51032990,"url":"https://github.com/celtera/score-addon-avnd-demo","last_synced_at":"2026-06-22T02:33:13.513Z","repository":{"id":363459637,"uuid":"1263327789","full_name":"celtera/score-addon-avnd-demo","owner":"celtera","description":"Validation addon: one CMakeLists builds both an ossia/score plugin and a standalone Avendish object","archived":false,"fork":false,"pushed_at":"2026-06-09T01:17:37.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-09T03:14:00.084Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/celtera.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-08T21:08:12.000Z","updated_at":"2026-06-09T01:17:41.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/celtera/score-addon-avnd-demo","commit_stats":null,"previous_names":["celtera/score-addon-avnd-demo"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/celtera/score-addon-avnd-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/celtera%2Fscore-addon-avnd-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/celtera%2Fscore-addon-avnd-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/celtera%2Fscore-addon-avnd-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/celtera%2Fscore-addon-avnd-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/celtera","download_url":"https://codeload.github.com/celtera/score-addon-avnd-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/celtera%2Fscore-addon-avnd-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34632711,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-22T02:00:06.391Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-22T02:33:11.317Z","updated_at":"2026-06-22T02:33:13.499Z","avatar_url":"https://github.com/celtera.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# score-addon-avnd-demo\n\nValidation addon for the **unified Avendish addon CMake** technique: a single\n`CMakeLists.txt` that builds the same object both as\n\n- an **ossia/score** add-on (only the ossia back-end), and\n- a **standalone Avendish** object (Max/MSP, Pure Data, Python, TouchDesigner, Godot, …).\n\nThe rule: when the addon is built as `add_subdirectory` of ossia/score, only the ossia\nback-end is produced; built on its own, all the standalone back-ends are.\n\n## How it works\n\nThe addon has **no knowledge of the host**. It just asks for Avendish:\n\n```cmake\nfind_package(Avendish QUIET)        # use the host's Avendish (e.g. score) if present\nif(NOT Avendish_FOUND)              # otherwise fetch it\n  include(FetchContent)\n  FetchContent_Declare(Avendish GIT_REPOSITORY https://github.com/celtera/avendish GIT_TAG …)\n  FetchContent_Populate(Avendish)\n  list(APPEND CMAKE_PREFIX_PATH \"${avendish_SOURCE_DIR}\")\n  find_package(Avendish REQUIRED)\nendif()\n\navnd_addon_init(NAME score_addon_avnd_demo)\navnd_addon_object(BASE score_addon_avnd_demo C_NAME avnd_addon_demo CLASS DemoProcessor\n                  SOURCES src/Demo.hpp src/Demo.cpp)\navnd_addon_finalize(NAME score_addon_avnd_demo UUID \u003cuuid\u003e VERSION 1.0.0)\n```\n\n`find_package(Avendish)` (via `AvendishConfig.cmake`) is host-aware: when a host already\nprovides the `avnd_*` commands (score puts its in-tree copy on the prefix path) it reuses\nthem; otherwise it builds Avendish from the fetched sources. Either way it loads\n`AvendishAddon.cmake`, which detects the context and exposes the three `avnd_addon_*`\nmacros:\n\n| Context | Detection | Back-ends |\n|---|---|---|\n| as / against ossia score | `avnd_score_plugin_add` exists | ossia only, via `avnd_score_plugin_*` |\n| pure Avendish | otherwise | Max/Pd/Python/TD/Godot/… via `avnd_make_object` |\n\nThe object in `src/Demo.hpp` is framework-agnostic (halp + `std` only) so it compiles in\nboth.\n\n## Two objects, two ways of choosing back-ends\n\n- `src/Demo.hpp` — a message object built with the default **preset** (`CATEGORY object`):\n  Max / Pd / Python / TD-CHOP / Godot / ossia.\n- `src/Geometry.hpp` — a mesh generator built with an **explicit back-end list**:\n  `BACKENDS ossia max:GEOMETRY touchdesigner:POP godot:GEOMETRY` — i.e. a TouchDesigner\n  **POP but not a SOP**, the Godot mesh node and the Max obj3d external. Each entry is\n  `\u003cbackend\u003e[:\u003cPROCESSOR_TYPE\u003e]` and maps straight to `avnd_make_\u003cbackend\u003e`.\n\nUse `CATEGORY` for a whole family at once, or `BACKENDS` for exact control. In a score\nbuild both are ignored — score introspects the object and builds only its ossia process.\n\n## Building\n\nStandalone (downloads Avendish, builds every back-end whose SDK is present):\n\n```bash\ncmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release\ncmake --build build\n```\n\nAs a score add-on: drop it in score's addon folder (or point `SCORE_SOURCE_DIR` /\n`SCORE_SDK` at score) — only `score_addon_avnd_demo` is built.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fceltera%2Fscore-addon-avnd-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fceltera%2Fscore-addon-avnd-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fceltera%2Fscore-addon-avnd-demo/lists"}