Skip to content

Commit

Permalink
Merge pull request #27 from Wasted-Audio/update/hvcc
Browse files Browse the repository at this point in the history
update hvcc and add dpf-widgets
  • Loading branch information
timothyschoen authored Oct 11, 2024
2 parents 505d611 + a706955 commit b31577a
Show file tree
Hide file tree
Showing 7 changed files with 49 additions and 33 deletions.
36 changes: 26 additions & 10 deletions .github/workflows/run_script.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,32 @@ jobs:
runs-on: macos-latest
steps:

- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive

- name: Install dependencies
working-directory: ${{github.workspace}}
run: brew install dfu-util

- name: Setup Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Run Packaging Script
working-directory: ${{github.workspace}}
run:
CLEAR_INTL=1 ./build.sh

- name: Archive Artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: Heavy-MacOS-Universal
path: ${{github.workspace}}/Heavy

- name: Release Artifacts
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
prerelease: true
Expand All @@ -42,23 +47,28 @@ jobs:
- name: Install Packages
run: choco install make -y

- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive

- name: Setup Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Run Packaging Script
working-directory: ${{github.workspace}}
run:
./build.bat

- name: Archive Artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: Heavy-Win64
path: ${{github.workspace}}/Heavy

- name: Release Artifacts
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
prerelease: true
Expand All @@ -70,27 +80,33 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Install Dependencies (apt)
run: sudo add-apt-repository ppa:deadsnakes/ppa && sudo apt update && sudo apt install -y git binutils python3.11-full curl tar gzip xz-utils make patchelf libusb-dev build-essential rsync wget dfu-util
run: sudo apt update && sudo apt install -y git binutils curl tar gzip xz-utils make patchelf libusb-dev build-essential rsync wget dfu-util
#deps for build-anywhere: csh gawk autoconf automake autotools-dev wget m4 flex bison texinfo unzip help2man meson gperf lzip libtool-bin patch ninja-build libstdc++6 libncurses5-dev
- uses: actions/checkout@v3

- uses: actions/checkout@v4
with:
submodules: recursive
env:
PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

- name: Setup Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Run Packaging Script
working-directory: ${{github.workspace}}
run:
bash ./build.sh

- name: Archive Artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: Heavy-Linux-x64
path: ${{github.workspace}}/Heavy

- name: Release Artifacts
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
prerelease: true
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@
[submodule "dpf"]
path = dpf
url = https://github.com/DISTRHO/DPF.git
[submodule "dpf-widgets"]
path = dpf-widgets
url = [email protected]:DISTRHO/DPF-Widgets.git
16 changes: 7 additions & 9 deletions build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,19 @@ cd ..

xcopy /E /H /C /I libdaisy Heavy\usr\lib\libdaisy
xcopy /E /H /C /I dpf Heavy\usr\lib\dpf
xcopy /E /H /C /I dpf-widgets Heavy\usr\lib\dpf-widgets

:: Package heavy using pyinstaller
python -m ensurepip
python -m pip install hvcc\.
python -m pip install pyinstaller
python -m pip install poetry poetry-pyinstaller-plugin

FOR /F "tokens=*" %%g IN ('python -m site --user-site') do (SET PYTHON_SITE=%%g)

python resources\run_pyinstaller.py -n Heavy --noconfirm --windowed --paths %PYTHON_SITE% .\hvcc\hvcc\__init__.py --collect-data json2daisy --add-data=".\hvcc\hvcc\generators;.\generators" --add-data=".\hvcc\hvcc\core;.\hvcc\core" --add-data=".\hvcc\hvcc\generators;.\hvcc\generators" --add-data=".\hvcc\hvcc\interpreters;.\hvcc\interpreters"
cd hvcc
poetry build
cd ..

copy .\dist\Heavy\json2daisy\resources\component_defs.json .\dist\Heavy\json2daisy\resources\seed.json
move .\dist\Heavy .\Heavy\usr\bin\
mkdir .\Heavy\usr\bin\Heavy\

del /s /q .\dist\*
del /s /q .\build\*
del /s /q .\__init__.spec
move .\hvcc\dist\pyinstaller\win_amd64\Heavy.exe .\Heavy\usr\bin\Heavy\

cp VERSION Heavy\VERSION
22 changes: 10 additions & 12 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -152,24 +152,22 @@ popd

cp -rf ./libdaisy ./Heavy/lib/libdaisy
cp -rf ./dpf ./Heavy/lib/dpf
cp -rf ./dpf-widgets ./Heavy/lib/dpf-widgets

# Package Heavy with pyinstaller
python3 -m ensurepip
python3 -m pip install hvcc/.
python3 -m pip install pyinstaller
python3 -m pip install poetry poetry-pyinstaller-plugin

pushd hvcc
poetry build
popd

mkdir -p Heavy/bin/Heavy

if [[ "$OSTYPE" == "linux-gnu"* ]]; then
python3 ./resources/run_pyinstaller.py -n Heavy --noconfirm --paths $(python3 -m site --user-site) ./hvcc/hvcc/__init__.py --collect-data json2daisy --add-data="./hvcc/hvcc/generators:./generators" --add-data="./hvcc/hvcc/core:./hvcc/core" --add-data="./hvcc/hvcc/generators:./hvcc/generators" --add-data="./hvcc/hvcc/interpreters:./hvcc/interpreters"
mv ./hvcc/dist/pyinstaller/manylinux_2_31_x86_64/Heavy Heavy/bin/Heavy/
elif [[ "$OSTYPE" == "darwin"* ]]; then
python3 ./resources/run_pyinstaller.py -n Heavy --noconfirm --paths $(python3 -m site --user-site) --target-architecture x86_64 ./hvcc/hvcc/__init__.py --collect-data json2daisy --add-data="./hvcc/hvcc/generators:./generators" --add-data="./hvcc/hvcc/core:./hvcc/core" --add-data="./hvcc/hvcc/generators:./hvcc/generators" --add-data="./hvcc/hvcc/interpreters:./hvcc/interpreters"
mv ./hvcc/dist/pyinstaller/macosx_14_0_arm64/Heavy Heavy/bin/Heavy/
fi

cp ./dist/Heavy/json2daisy/resources/component_defs.json ./dist/Heavy/json2daisy/resources/seed.json

mv ./dist/Heavy Heavy/bin/Heavy

rm -rf ./dist
rm -rf ./build
rm -rf ./Heavy.spec

cp VERSION ./Heavy/VERSION
2 changes: 1 addition & 1 deletion dpf
Submodule dpf updated 85 files
+23 −23 FEATURES.md
+11 −10 LICENSE
+10 −9 LICENSING.md
+101 −9 Makefile.base.mk
+103 −29 Makefile.plugins.mk
+62 −9 cmake/DPF-plugin.cmake
+20 −16 dgl/Base.hpp
+2 −2 dgl/EventHandlers.hpp
+20 −0 dgl/Makefile
+1 −0 dgl/StandaloneWindow.hpp
+1 −0 dgl/Window.hpp
+33 −9 dgl/src/ApplicationPrivateData.cpp
+6 −0 dgl/src/ApplicationPrivateData.hpp
+7 −7 dgl/src/Cairo.cpp
+5 −5 dgl/src/EventHandlers.cpp
+13 −13 dgl/src/Layout.cpp
+11 −11 dgl/src/OpenGL.cpp
+2 −2 dgl/src/SubWidget.cpp
+41 −21 dgl/src/Window.cpp
+14 −8 dgl/src/WindowPrivateData.cpp
+11 −7 dgl/src/WindowPrivateData.hpp
+1 −1 dgl/src/pugl-upstream
+35 −18 dgl/src/pugl.cpp
+56 −43 distrho/DistrhoDetails.hpp
+30 −1 distrho/DistrhoInfo.hpp
+19 −2 distrho/DistrhoPlugin.hpp
+6 −2 distrho/DistrhoPluginMain.cpp
+5 −3 distrho/DistrhoPluginUtils.hpp
+3 −0 distrho/DistrhoUI.hpp
+7 −2 distrho/DistrhoUIMain.cpp
+138 −19 distrho/DistrhoUtils.hpp
+38 −3 distrho/extra/FileBrowserDialogImpl.cpp
+89 −2 distrho/extra/RingBuffer.hpp
+7 −3 distrho/extra/Sleep.hpp
+4 −18 distrho/extra/String.hpp
+3 −0 distrho/src/DistrhoDefines.h
+2 −1 distrho/src/DistrhoPlugin.cpp
+3,173 −0 distrho/src/DistrhoPluginAU.cpp
+16 −24 distrho/src/DistrhoPluginCLAP.cpp
+94 −15 distrho/src/DistrhoPluginChecks.h
+281 −0 distrho/src/DistrhoPluginExport.cpp
+44 −10 distrho/src/DistrhoPluginInternal.hpp
+21 −6 distrho/src/DistrhoPluginJACK.cpp
+11 −23 distrho/src/DistrhoPluginLV2.cpp
+7 −5 distrho/src/DistrhoPluginLV2export.cpp
+27 −27 distrho/src/DistrhoPluginVST2.cpp
+41 −43 distrho/src/DistrhoPluginVST3.cpp
+3 −3 distrho/src/DistrhoUI.cpp
+502 −0 distrho/src/DistrhoUIAU.mm
+22 −4 distrho/src/DistrhoUIDSSI.cpp
+5 −2 distrho/src/DistrhoUIInternal.hpp
+4 −1 distrho/src/DistrhoUILV2.cpp
+31 −12 distrho/src/DistrhoUIPrivateData.hpp
+6 −4 distrho/src/DistrhoUIVST3.cpp
+19 −5 distrho/src/DistrhoUtils.cpp
+2 −2 distrho/src/jackbridge/JackBridge.cpp
+1 −1 examples/CairoUI/CMakeLists.txt
+1 −10 examples/CairoUI/CairoExamplePlugin.cpp
+17 −1 examples/CairoUI/DistrhoPluginInfo.h
+1 −1 examples/CairoUI/Makefile
+4 −1 examples/Info/DistrhoPluginInfo.h
+1 −10 examples/Info/InfoExamplePlugin.cpp
+16 −6 examples/Info/InfoExampleUI.cpp
+1 −0 examples/Info/Makefile
+4 −1 examples/Meters/DistrhoPluginInfo.h
+1 −10 examples/Meters/ExamplePluginMeters.cpp
+1 −0 examples/Meters/Makefile
+4 −1 examples/MidiThrough/DistrhoPluginInfo.h
+1 −0 examples/MidiThrough/Makefile
+1 −10 examples/MidiThrough/MidiThroughExamplePlugin.cpp
+4 −1 examples/Parameters/DistrhoPluginInfo.h
+1 −10 examples/Parameters/ExamplePluginParameters.cpp
+1 −0 examples/Parameters/Makefile
+4 −1 examples/SendNote/DistrhoPluginInfo.h
+1 −0 examples/SendNote/Makefile
+1 −10 examples/SendNote/SendNoteExamplePlugin.cpp
+4 −1 examples/States/DistrhoPluginInfo.h
+1 −10 examples/States/ExamplePluginStates.cpp
+1 −0 examples/States/Makefile
+3 −1 tests/tests.hpp
+7 −0 utils/au-services-restart.sh
+10 −4 utils/generate-ttl.sh
+64 −27 utils/package-osx-bundles.sh
+17 −16 utils/plugin.pkg/package.xml.in
+1 −0 utils/symbols/au.exp
1 change: 1 addition & 0 deletions dpf-widgets
Submodule dpf-widgets added at 0b67fb
2 changes: 1 addition & 1 deletion hvcc
Submodule hvcc updated 67 files
+3 −2 .bumpversion.cfg
+2 −2 .github/workflows/build.yml
+36 −0 CHANGELOG.md
+3 −3 docs/02.getting_started.md
+1 −3 docs/03.gen.daisy.md
+19 −6 docs/03.gen.dpf.md
+31 −0 docs/03.gen.javascript.md
+6 −254 docs/04.midi.md
+3 −0 docs/09.supported_vanilla_objects.md
+0 −2 docs/10.unsupported_vanilla_objects.md
+ docs/img/docs_archives.png
+ docs/img/docs_fabric_audiopool.png
+ docs/img/docs_fabric_oneshot.png
+ docs/img/docs_fabric_params.png
+ docs/img/docs_fabric_patches.png
+ docs/img/docs_fabric_uploader.png
+ docs/img/docs_new_patch.png
+ docs/img/docs_targets.png
+ docs/img/docs_tokens_adddelete.png
+ docs/img/docs_tokens_userprofile.png
+ docs/img/docs_tokens_usersettings.png
+3 −3 examples/dpf/dpf_example.json
+95 −9 hvcc/__init__.py
+1 −1 hvcc/core/hv2ir/HeavyLangObject.py
+18 −25 hvcc/generators/c2daisy/c2daisy.py
+36 −34 hvcc/generators/c2daisy/templates/HeavyDaisy.cpp
+4 −4 hvcc/generators/c2daisy/templates/Makefile
+5 −9 hvcc/generators/c2dpf/c2dpf.py
+12 −12 hvcc/generators/c2dpf/templates/DistrhoPluginInfo.h
+10 −4 hvcc/generators/c2dpf/templates/HeavyDPF.cpp
+7 −7 hvcc/generators/c2dpf/templates/HeavyDPF.hpp
+1 −1 hvcc/generators/c2dpf/templates/HeavyDPF_UI.cpp
+9 −9 hvcc/generators/c2dpf/templates/Makefile_plugin
+2 −2 hvcc/generators/c2dpf/templates/initParameter.cpp
+8 −2 hvcc/generators/c2dpf/templates/portGroups.cpp
+7 −1 hvcc/generators/c2js/c2js.py
+93 −2 hvcc/generators/c2js/template/hv_worklet.js
+127 −10 hvcc/generators/c2js/template/hv_wrapper.js
+28 −0 hvcc/generators/c2js/template/index.html
+58 −52 hvcc/generators/c2owl/templates/HeavyOwl.hpp
+1 −2 hvcc/generators/c2wwise/templates/SoundEnginePlugin/{{name}}{{plugin_type}}.cpp
+5 −3 hvcc/generators/ir2c/ir2c.py
+29 −0 hvcc/generators/ir2c/static/HvHeavy.cpp
+20 −0 hvcc/generators/ir2c/static/HvHeavy.h
+1 −1 hvcc/generators/ir2c/templates/Heavy_NAME.cpp
+0 −0 hvcc/generators/types/__init__.py
+59 −0 hvcc/generators/types/meta.py
+7 −9 hvcc/interpreters/pd2hv/Connection.py
+11 −3 hvcc/interpreters/pd2hv/PdGraph.py
+1 −5 hvcc/interpreters/pd2hv/PdMessageObject.py
+3 −0 hvcc/interpreters/pd2hv/PdObject.py
+58 −4 hvcc/interpreters/pd2hv/PdParser.py
+6 −0 hvcc/interpreters/pd2hv/libs/else/knob.pd
+48 −30 hvcc/interpreters/pd2hv/libs/pd/cos~.pd
+2 −2 hvcc/interpreters/pd2hv/libs/pd/poly.pd
+16 −0 hvcc/utils.py
+775 −0 poetry.lock
+57 −0 pyproject.toml
+20 −3 requirements-test.txt
+9 −1 requirements.txt
+0 −32 setup.cfg
+0 −3 setup.py
+4 −0 tests/pd/control/test-remote-msg.golden.txt
+15 −0 tests/pd/control/test-remote-msg.pd
+3 −1 tests/test_control.py
+0 −158 tests/test_unity.py
+9 −3 tox.ini

0 comments on commit b31577a

Please sign in to comment.