Skip to content

Commit 678090d

Browse files
committed
Support JUCE 6
1 parent c6151c5 commit 678090d

File tree

7 files changed

+409
-5
lines changed

7 files changed

+409
-5
lines changed

Dependencies/JUCE

Submodule JUCE updated 2382 files

GLSLPlugIn/GLSLPlugIn.jucer

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@
88
pluginCode="X25u" pluginChannelConfigs="" pluginIsSynth="0" pluginWantsMidiIn="1"
99
pluginProducesMidiOut="0" pluginIsMidiEffectPlugin="0" pluginEditorRequiresKeys="1"
1010
pluginAUExportPrefix="GLSLPlugInAU" pluginRTASCategory="" aaxIdentifier="com.yourcompany.GLSLPlugIn"
11-
pluginAAXCategory="2" jucerVersion="5.4.7" companyName="JUCE JAPAN"
12-
displaySplashScreen="0" reportAppUsage="0" splashScreenColour="Dark"
13-
buildStandalone="1" enableIAA="0" cppLanguageStandard="14" companyCopyright="JUCE JAPAN"
14-
pluginFormats="buildStandalone,buildVST3" pluginCharacteristicsValue="pluginWantsMidiIn,pluginEditorRequiresKeys">
11+
pluginAAXCategory="2" companyName="JUCE JAPAN" displaySplashScreen="0"
12+
reportAppUsage="0" splashScreenColour="Dark" buildStandalone="1"
13+
enableIAA="0" cppLanguageStandard="14" companyCopyright="JUCE JAPAN"
14+
pluginFormats="buildStandalone,buildVST3" pluginCharacteristicsValue="pluginWantsMidiIn,pluginEditorRequiresKeys"
15+
jucerFormatVersion="1">
1516
<MAINGROUP id="WmusS6" name="GLSLPlugIn">
1617
<GROUP id="{62F07D67-6522-5A3F-73EE-B626DF753D2B}" name="Source">
1718
<GROUP id="{13078132-C348-9757-A5BA-6A2A889F0CDE}" name="Resources">

GLSLPlugIn/Scripts/build_vs2019.bat

Lines changed: 177 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,177 @@
1+
@echo off
2+
3+
rem --- Define script directory ---
4+
set SCRIPT_DIRECTORY=%~dp0
5+
cd %SCRIPT_DIRECTORY%
6+
7+
rem --- Set variables for MSVC ---
8+
set PROJECT_NAME=GLSLPlugIn
9+
set EXPORTER_NAME=VisualStudio2019
10+
set MSVC_VERSION=2019
11+
set MSVC_OFFERING=Community
12+
set ARCHITECTURE=x64
13+
set BUILD_CONFIG=Debug
14+
15+
rem --- Set variables for enabling each plugin format type ---
16+
set ENABLE_VST=false
17+
set VST_LEGACY_SDK_PATH=
18+
set ENABLE_VST3=false
19+
set VST3_SDK_PATH=
20+
set ENABLE_AAX=false
21+
set AAX_SDK_PATH=
22+
23+
rem --- Set enable/disable concatet version number for binary file ---
24+
set CONCAT_VERSION_NUMBER=false
25+
26+
rem --- Set Projucer's global search path ---
27+
cd %SCRIPT_DIRECTORY%
28+
if %ENABLE_VST%==true (
29+
if not "%VST_LEGACY_SDK_PATH%"=="" (
30+
..\..\Projucer\Projucer.exe --set-global-search-path windows vstLegacyPath %VST_LEGACY_SDK_PATH%
31+
) else (
32+
echo "Please set a value to the variable VST_LEGACY_SDK_PATH"
33+
goto FAILURE
34+
)
35+
)
36+
if %ENABLE_VST3%==true (
37+
rem --- Because plugin client property "JUCE_VST3_CAN_REPLACE_VST2" is set to "Enabled, it makes have to link with VST legacy SDK." ---
38+
if not "%VST_LEGACY_SDK_PATH%"=="" (
39+
..\..\Projucer\Projucer.exe --set-global-search-path windows vstLegacyPath %VST_LEGACY_SDK_PATH%
40+
) else (
41+
echo "Please set a value to the variable VST_LEGACY_SDK_PATH"
42+
goto FAILURE
43+
)
44+
45+
if not "%VST3_SDK_PATH%"=="" (
46+
..\..\Projucer\Projucer.exe --set-global-search-path windows vst3Path %VST3_SDK_PATH%
47+
) else (
48+
..\..\Projucer\Projucer.exe --set-global-search-path windows vst3Path ..\..\Dependencies\JUCE\modules\juce_audio_processors\format_types\VST3_SDK
49+
)
50+
)
51+
if %ENABLE_AAX%==true (
52+
if not "%AAX_SDK_PATH%"=="" (
53+
..\..\Projucer\Projucer.exe --set-global-search-path windows aaxPath %AAX_SDK_PATH%
54+
) else (
55+
echo "Please set a value to the variable AAX_SDK_PATH"
56+
goto FAILURE
57+
)
58+
)
59+
60+
rem --- Generate IDE project file(.sln) by Projucer ---
61+
cd %SCRIPT_DIRECTORY%
62+
..\..\Projucer\Projucer.exe --resave ..\%PROJECT_NAME%.jucer
63+
64+
rem --- Get solution file name from Projucer ---
65+
cd %SCRIPT_DIRECTORY%
66+
for /f "usebackq delims=" %%a in (`..\..\Projucer\Projucer.exe --status ..\%PROJECT_NAME%.jucer ^| find "Name:"`) do set SOLUTION_NAME=%%a
67+
for /f "tokens=1,2 delims= " %%a in ("%SOLUTION_NAME%") do set SOLUTION_NAME=%%b
68+
69+
rem --- Get project version number from Projucer ---
70+
for /f "usebackq delims=" %%a in (`..\..\Projucer\Projucer.exe --get-version ..\%PROJECT_NAME%.jucer`) do set VERSION_NUMBER=%%a
71+
72+
rem --- Start Visual Studio Developer Command Line Tool ---
73+
if "%MSVC_OFFERING%"=="" (
74+
echo "Please set a value to the variable MSVC_OFFERING like Community, Professional, Enterprise"
75+
goto FAILURE
76+
)
77+
call "C:\Program Files (x86)\Microsoft Visual Studio\%MSVC_VERSION%\%MSVC_OFFERING%\Common7\Tools\VsDevCmd.bat"
78+
79+
rem --- Build by MSBuild ---
80+
cd %SCRIPT_DIRECTORY%
81+
call :CLEAN_SOLUTION
82+
if %ERRORLEVEL% neq 0 goto FAILURE
83+
84+
call :BUILD_STANDALONE
85+
if %ERRORLEVEL% neq 0 goto FAILURE
86+
87+
call :BUILD_VST
88+
if %ERRORLEVEL% neq 0 goto FAILURE
89+
90+
call :BUILD_VST3
91+
if %ERRORLEVEL% neq 0 goto FAILURE
92+
93+
call :BUILD_AAX
94+
if %ERRORLEVEL% neq 0 goto FAILURE
95+
96+
:BUILD_FINISH
97+
echo "BUILD_FINISH"
98+
goto SUCCESS
99+
100+
:CLEAN_SOLUTION
101+
rem --- Clean solution ---
102+
MSBuild ..\Builds\%EXPORTER_NAME%\%SOLUTION_NAME%.sln /t:Clean
103+
if %ERRORLEVEL% neq 0 exit /B %ERRORLEVEL%
104+
exit /B 0
105+
106+
:BUILD_STANDALONE
107+
rem --- Build Standalone format ---
108+
MSBuild ..\Builds\%EXPORTER_NAME%\%SOLUTION_NAME%.sln /t:"%SOLUTION_NAME% - Standalone Plugin":Rebuild /p:Configuration=%BUILD_CONFIG%;Platform=%ARCHITECTURE%
109+
if %ERRORLEVEL% neq 0 exit /B %ERRORLEVEL%
110+
111+
if %CONCAT_VERSION_NUMBER%==true (
112+
rem --- Rename to adding version number for Standalone file --
113+
move /y "..\Builds\%EXPORTER_NAME%\%ARCHITECTURE%\%BUILD_CONFIG%\Standalone Plugin\%SOLUTION_NAME%.exe" ^
114+
"..\Builds\%EXPORTER_NAME%\%ARCHITECTURE%\%BUILD_CONFIG%\Standalone Plugin\%SOLUTION_NAME%-%VERSION_NUMBER%.exe"
115+
if %ERRORLEVEL% neq 0 exit /B %ERRORLEVEL%
116+
)
117+
exit /B 0
118+
119+
:BUILD_VST
120+
rem --- Build VST format ---
121+
if %ENABLE_VST%==true (
122+
MSBuild ..\Builds\%EXPORTER_NAME%\%SOLUTION_NAME%.sln /t:"%SOLUTION_NAME% - VST":Rebuild /p:Configuration=%BUILD_CONFIG%;Platform=%ARCHITECTURE%
123+
if %ERRORLEVEL% neq 0 exit /B %ERRORLEVEL%
124+
125+
if %CONCAT_VERSION_NUMBER%==true (
126+
rem --- Rename to adding version number for VST file --
127+
if exist "..\Builds\%EXPORTER_NAME%\%ARCHITECTURE%\%BUILD_CONFIG%\VST\%SOLUTION_NAME%.dll" (
128+
move /y "..\Builds\%EXPORTER_NAME%\%ARCHITECTURE%\%BUILD_CONFIG%\VST\%SOLUTION_NAME%.dll" ^
129+
"..\Builds\%EXPORTER_NAME%\%ARCHITECTURE%\%BUILD_CONFIG%\VST\%SOLUTION_NAME%-%VERSION_NUMBER%.dll"
130+
)
131+
if %ERRORLEVEL% neq 0 exit /B %ERRORLEVEL%
132+
)
133+
)
134+
exit /B 0
135+
136+
:BUILD_VST3
137+
rem --- Build VST3 format ---
138+
if %ENABLE_VST3%==true (
139+
MSBuild ..\Builds\%EXPORTER_NAME%\%SOLUTION_NAME%.sln /t:"%SOLUTION_NAME% - VST3":Rebuild /p:Configuration=%BUILD_CONFIG%;Platform=%ARCHITECTURE%
140+
if %ERRORLEVEL% neq 0 exit /B %ERRORLEVEL%
141+
142+
if %CONCAT_VERSION_NUMBER%==true (
143+
rem --- Rename to adding version number for VST3 file --
144+
if exist "..\Builds\%EXPORTER_NAME%\%ARCHITECTURE%\%BUILD_CONFIG%\VST3\%SOLUTION_NAME%.vst3" (
145+
move /y "..\Builds\%EXPORTER_NAME%\%ARCHITECTURE%\%BUILD_CONFIG%\VST3\%SOLUTION_NAME%.vst3" ^
146+
"..\Builds\%EXPORTER_NAME%\%ARCHITECTURE%\%BUILD_CONFIG%\VST3\%SOLUTION_NAME%-%VERSION_NUMBER%.vst3"
147+
)
148+
if %ERRORLEVEL% neq 0 exit /B %ERRORLEVEL%
149+
)
150+
)
151+
exit /B 0
152+
153+
:BUILD_AAX
154+
rem --- Build AAX format ---
155+
if %ENABLE_AAX%==true (
156+
MSBuild ..\Builds\%EXPORTER_NAME%\%SOLUTION_NAME%.sln /t:"%SOLUTION_NAME% - AAX":Rebuild /p:Configuration=%BUILD_CONFIG%;Platform=%ARCHITECTURE%
157+
if %ERRORLEVEL% neq 0 exit /B %ERRORLEVEL%
158+
159+
if %CONCAT_VERSION_NUMBER%==true (
160+
rem --- Rename to adding version number for AAX file --
161+
if exist "..\Builds\%EXPORTER_NAME%\%ARCHITECTURE%\%BUILD_CONFIG%\AAX\%SOLUTION_NAME%.aaxplugin" (
162+
move /y "..\Builds\%EXPORTER_NAME%\%ARCHITECTURE%\%BUILD_CONFIG%\AAX\%SOLUTION_NAME%.aaxplugin" ^
163+
"..\Builds\%EXPORTER_NAME%\%ARCHITECTURE%\%BUILD_CONFIG%\AAX\%SOLUTION_NAME%-%VERSION_NUMBER%.aaxplugin"
164+
)
165+
if %ERRORLEVEL% neq 0 exit /B %ERRORLEVEL%
166+
)
167+
)
168+
exit /B 0
169+
170+
:FAILURE
171+
echo ErrorLevel:%ERRORLEVEL%
172+
echo ***Build Failed***
173+
exit 1
174+
175+
:SUCCESS
176+
echo ***Build Success***
177+
exit /B 0
Lines changed: 201 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,201 @@
1+
#!/bin/sh
2+
3+
echo '--- Define script directory ---'
4+
SCRIPT_DIRECTORY=$(cd $(dirname $0);pwd)
5+
cd ${SCRIPT_DIRECTORY}
6+
7+
# Script job will terminate when error occured.
8+
set -e
9+
10+
# Prepare function
11+
function FAILURE() {
12+
echo "*** Build Failed ***"
13+
exit
14+
}
15+
16+
function SUCCESS() {
17+
echo "*** Build Success ***"
18+
exit
19+
}
20+
21+
echo '--- Set variables ---'
22+
PROJECT_NAME=GLSLPlugIn
23+
ARCHITECTURE=x86_64
24+
BUILD_CONFIG=Release
25+
EXPORTER_NAME=MacOSX
26+
27+
echo '--- Set variables for enabling each plugin format type ---'
28+
ENABLE_VST=true
29+
VST_LEGACY_SDK_PATH="${SCRIPT_DIRECTORY}/../../3rd-party/VST3 SDK"
30+
ENABLE_VST3=false
31+
VST3_SDK_PATH=
32+
ENABLE_AAX=false
33+
AAX_SDK_PATH=
34+
ENABLE_AU=true
35+
36+
echo '--- Set enable/disable concatet version number for binary file ---'
37+
CONCAT_VERSION_NUMBER=false
38+
39+
PROJUCER_EXE="${SCRIPT_DIRECTORY}/../../Projucer/Projucer.app/Contents/MacOS/Projucer"
40+
41+
echo '--- Set Projucer global search path ---'
42+
if test "${ENABLE_VST}" = "true"; then
43+
if test "${VST_LEGACY_SDK_PATH}" != ""; then
44+
"${PROJUCER_EXE}" --set-global-search-path osx vstLegacyPath "${VST_LEGACY_SDK_PATH}"
45+
echo "${VST_LEGACY_SDK_PATH}"
46+
else
47+
echo "*** Please set a value to the variable VST_LEGACY_SDK_PATH ***"
48+
FAILURE
49+
fi
50+
fi
51+
52+
if test "${ENABLE_VST3}" = "true"; then
53+
# --- Because plugin client property "JUCE_VST3_CAN_REPLACE_VST2" is set to "Enabled, it makes have to link with VST legacy SDK." ---
54+
if test "${VST_LEGACY_SDK_PATH}" != ""; then
55+
"${PROJUCER_EXE}" --set-global-search-path osx vstLegacyPath "${VST_LEGACY_SDK_PATH}"
56+
else
57+
echo "*** Please set a value to the variable VST_LEGACY_SDK_PATH ***"
58+
FAILURE
59+
fi
60+
61+
if test "${VST3_SDK_PATH}" != ""; then
62+
"${PROJUCER_EXE}" --set-global-search-path osx vst3Path "${VST3_SDK_PATH}"
63+
else
64+
"${PROJUCER_EXE}" --set-global-search-path osx vst3Path "${SCRIPT_DIRECTORY}/../../Dependencies/JUCE/modules/juce_audio_processors/format_types/VST3_SDK"
65+
fi
66+
fi
67+
68+
if test "${ENABLE_AAX}" = "true"; then
69+
if test "${AAX_SDK_PATH}" != ""; then
70+
"${PROJUCER_EXE}" --set-global-search-path osx aaxPath "${AAX_SDK_PATH}"
71+
else
72+
echo "*** Please set a value to the variable AAX_SDK_PATH ***"
73+
FAILURE
74+
fi
75+
fi
76+
77+
echo '--- Generate IDE project file by Projucer ---'
78+
"${PROJUCER_EXE}" --resave "${SCRIPT_DIRECTORY}/../${PROJECT_NAME}.jucer"
79+
80+
echo '--- Get solution file name from Projucer ---'
81+
SOLUTION_NAME=`${PROJUCER_EXE} --status ${SCRIPT_DIRECTORY}/../${PROJECT_NAME}.jucer | grep "Name:" | awk '{ print $2 }'`
82+
83+
echo '--- Get project version number from Projucer ---'
84+
VERSION_NUMBER=`${PROJUCER_EXE} --get-version ${SCRIPT_DIRECTORY}/../${PROJECT_NAME}.jucer`
85+
86+
echo '--- Show variables ---'
87+
echo 'SCRIPT_DIRECTORY: '${SCRIPT_DIRECTORY}
88+
echo 'PROJECT_NAME: '${PROJECT_NAME}
89+
echo 'VERSION_NUMBER:'${VERSION_NUMBER}
90+
echo 'ARCHITECTURE: '${ARCHITECTURE}
91+
echo 'BUILD_CONFIG: '${BUILD_CONFIG}
92+
echo 'SOLUTION_NAME: '${SOLUTION_NAME}
93+
echo 'EXPORTER_NAME: '${EXPORTER_NAME}
94+
95+
echo '--- Show list of '${SOLUTION_NAME}'.xcodeproj ---'
96+
xcodebuild -project "${SCRIPT_DIRECTORY}/../Builds/${EXPORTER_NAME}/${SOLUTION_NAME}.xcodeproj" -list
97+
98+
echo '--- Show Xcode build settings ---'
99+
xcodebuild -project "${SCRIPT_DIRECTORY}/../Builds/${EXPORTER_NAME}/${SOLUTION_NAME}.xcodeproj" \
100+
-alltargets \
101+
-configuration ${BUILD_CONFIG} \
102+
-arch ${ARCHITECTURE} \
103+
-showBuildSettings
104+
105+
echo '--- Run Xcode build Standalone Plugin ---'
106+
xcodebuild -project "${SCRIPT_DIRECTORY}/../Builds/${EXPORTER_NAME}/${SOLUTION_NAME}.xcodeproj" \
107+
-target "${SOLUTION_NAME} - Standalone Plugin" \
108+
-configuration ${BUILD_CONFIG} \
109+
-arch ${ARCHITECTURE}
110+
111+
if test "${CONCAT_VERSION_NUMBER}" = "true"; then
112+
echo '--- Rename to adding version number for Standalone Plugin --'
113+
SRC_FILE="${SCRIPT_DIRECTORY}/../Builds/${EXPORTER_NAME}/build/${BUILD_CONFIG}/${SOLUTION_NAME}"
114+
DEST_FILE="${SCRIPT_DIRECTORY}/../Builds/${EXPORTER_NAME}/build/${BUILD_CONFIG}/${SOLUTION_NAME}-${VERSION_NUMBER}"
115+
if test -e "${DEST_FILE}"; then
116+
rm -rf "${DEST_FILE}"
117+
fi
118+
if test -e "${SRC_FILE}"; then
119+
mv -f "${SRC_FILE}" "${DEST_FILE}"
120+
fi
121+
fi
122+
123+
if test "${ENABLE_VST}" = "true"; then
124+
echo '--- Run Xcode build VST ---'
125+
xcodebuild -project "${SCRIPT_DIRECTORY}/../Builds/${EXPORTER_NAME}/${SOLUTION_NAME}.xcodeproj" \
126+
-target "${SOLUTION_NAME} - VST" \
127+
-configuration ${BUILD_CONFIG} \
128+
-arch ${ARCHITECTURE}
129+
130+
if test "${CONCAT_VERSION_NUMBER}" = "true"; then
131+
echo '--- Rename to adding version number for VST file --'
132+
SRC_FILE="${SCRIPT_DIRECTORY}/../Builds/${EXPORTER_NAME}/build/${BUILD_CONFIG}/${SOLUTION_NAME}.vst"
133+
DEST_FILE="${SCRIPT_DIRECTORY}/../Builds/${EXPORTER_NAME}/build/${BUILD_CONFIG}/${SOLUTION_NAME}-${VERSION_NUMBER}.vst"
134+
if test -e "${DEST_FILE}"; then
135+
rm -rf "${DEST_FILE}"
136+
fi
137+
if test -e "${SRC_FILE}"; then
138+
mv -f "${SRC_FILE}" "${DEST_FILE}"
139+
fi
140+
fi
141+
fi
142+
143+
if test "${ENABLE_VST3}" = "true"; then
144+
echo '--- Run Xcode build VST3 ---'
145+
xcodebuild -project "${SCRIPT_DIRECTORY}/../Builds/${EXPORTER_NAME}/${SOLUTION_NAME}.xcodeproj" \
146+
-target "${SOLUTION_NAME} - VST3" \
147+
-configuration ${BUILD_CONFIG} \
148+
-arch ${ARCHITECTURE}
149+
150+
if test "${CONCAT_VERSION_NUMBER}" = "true"; then
151+
echo '--- Rename to adding version number for VST3 file --'
152+
SRC_FILE="${SCRIPT_DIRECTORY}/../Builds/${EXPORTER_NAME}/build/${BUILD_CONFIG}/${SOLUTION_NAME}.vst3"
153+
DEST_FILE="${SCRIPT_DIRECTORY}/../Builds/${EXPORTER_NAME}/build/${BUILD_CONFIG}/${SOLUTION_NAME}-${VERSION_NUMBER}.vst3"
154+
if test -e "${DEST_FILE}"; then
155+
rm -rf "${DEST_FILE}"
156+
fi
157+
if test -e "${SRC_FILE}"; then
158+
mv -f "${SRC_FILE}" "${DEST_FILE}"
159+
fi
160+
fi
161+
fi
162+
163+
if test "${ENABLE_AAX}" = "true"; then
164+
echo '--- Run Xcode build AAX ---'
165+
xcodebuild -project "${SCRIPT_DIRECTORY}/../Builds/${EXPORTER_NAME}/${SOLUTION_NAME}.xcodeproj" \
166+
-target "${SOLUTION_NAME} - AAX" \
167+
-configuration ${BUILD_CONFIG} \
168+
-arch ${ARCHITECTURE}
169+
170+
if test "${CONCAT_VERSION_NUMBER}" = "true"; then
171+
echo '--- Rename to adding version number for AAX file --'
172+
SRC_FILE="${SCRIPT_DIRECTORY}/../Builds/${EXPORTER_NAME}/build/${BUILD_CONFIG}/${SOLUTION_NAME}.aaxplugin"
173+
DEST_FILE="${SCRIPT_DIRECTORY}/../Builds/${EXPORTER_NAME}/build/${BUILD_CONFIG}/${SOLUTION_NAME}-${VERSION_NUMBER}.aaxplugin"
174+
if test -e "${DEST_FILE}"; then
175+
rm -rf "${DEST_FILE}"
176+
fi
177+
if test -e "${SRC_FILE}"; then
178+
mv -f "${SRC_FILE}" "${DEST_FILE}"
179+
fi
180+
fi
181+
fi
182+
183+
if test "${ENABLE_AU}" = "true"; then
184+
echo '--- Run Xcode build AU ---'
185+
xcodebuild -project "${SCRIPT_DIRECTORY}/../Builds/${EXPORTER_NAME}/${SOLUTION_NAME}.xcodeproj" \
186+
-target "${SOLUTION_NAME} - AU" \
187+
-configuration ${BUILD_CONFIG} \
188+
-arch ${ARCHITECTURE}
189+
190+
if test "${CONCAT_VERSION_NUMBER}" = "true"; then
191+
echo '--- Rename to adding version number for AU file --'
192+
SRC_FILE="${SCRIPT_DIRECTORY}/../Builds/${EXPORTER_NAME}/build/${BUILD_CONFIG}/${SOLUTION_NAME}.component"
193+
DEST_FILE="${SCRIPT_DIRECTORY}/../Builds/${EXPORTER_NAME}/build/${BUILD_CONFIG}/${SOLUTION_NAME}-${VERSION_NUMBER}.component"
194+
if test -e "${DEST_FILE}"; then
195+
rm -rf "${DEST_FILE}"
196+
fi
197+
if test -e "${SRC_FILE}"; then
198+
mv -f "${SRC_FILE}" "${DEST_FILE}"
199+
fi
200+
fi
201+
fi

0 commit comments

Comments
 (0)