Merge pull request #922 from jpcima/vst3sdk-workaround

Other workaround to build with VST3 SDK 3.7.2
This commit is contained in:
JP Cimalando 2021-06-21 22:42:51 +02:00 committed by GitHub
commit 76c1f082a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -251,13 +251,19 @@ jobs:
run: |
cp -vf "$GITHUB_WORKSPACE"/scripts/mingw_dwrite_3.h \
/usr/i686-w64-mingw32/include/dwrite_3.h
- name: Fix VST sources
- name: Fix VST sources (case)
shell: bash
# need to convert some includes to lower case (as of VST 3.7.1)
run: |
find "$GITHUB_WORKSPACE"/plugins/vst/external/VST_SDK -type d -name source -exec \
find {} -type f -name '*.[hc]' -o -name '*.[hc]pp' -print0 \; | \
xargs -0 sed -i 's/<Windows.h>/<windows.h>/'
- name: Fix VST sources (includes)
shell: bash
# need to add include <limits> (as of VST 3.7.2)
run: |
sed -i '0,/#include </s//#include <limits>\n#include </' \
"$GITHUB_WORKSPACE"/plugins/vst/external/VST_SDK/VST3_SDK/public.sdk/source/main/moduleinit.h
- name: Create Build Environment
shell: bash
working-directory: ${{runner.workspace}}
@ -321,13 +327,19 @@ jobs:
run: |
cp -vf "$GITHUB_WORKSPACE"/scripts/mingw_dwrite_3.h \
/usr/x86_64-w64-mingw32/include/dwrite_3.h
- name: Fix VST sources
- name: Fix VST sources (case)
shell: bash
# need to convert some includes to lower case (as of VST 3.7.1)
run: |
find "$GITHUB_WORKSPACE"/plugins/vst/external/VST_SDK -type d -name source -exec \
find {} -type f -name '*.[hc]' -o -name '*.[hc]pp' -print0 \; | \
xargs -0 sed -i 's/<Windows.h>/<windows.h>/'
- name: Fix VST sources (includes)
shell: bash
# need to add include <limits> (as of VST 3.7.2)
run: |
sed -i '0,/#include </s//#include <limits>\n#include </' \
"$GITHUB_WORKSPACE"/plugins/vst/external/VST_SDK/VST3_SDK/public.sdk/source/main/moduleinit.h
- name: Create Build Environment
shell: bash
working-directory: ${{runner.workspace}}