Browse Source

Introjucer: added workaround to AU install script for Xcode 3 builds

tags/2021-05-28
jules 13 years ago
parent
commit
003575fd99
3 changed files with 18 additions and 2 deletions
  1. +9
    -1
      extras/Introjucer/JuceLibraryCode/BinaryData.cpp
  2. +1
    -1
      extras/Introjucer/JuceLibraryCode/BinaryData.h
  3. +8
    -0
      extras/Introjucer/Source/BinaryData/AudioPluginXCodeScript.txt

+ 9
- 1
extras/Introjucer/JuceLibraryCode/BinaryData.cpp View File

@@ -31,6 +31,14 @@ static const unsigned char temp_43731c40[] =
" cp -r \"$original\" \"$AU\"\r\n" " cp -r \"$original\" \"$AU\"\r\n"
" sed -i \"\" -e 's/TDMwPTul/BNDLPTul/g' \"$AU/Contents/PkgInfo\"\r\n" " sed -i \"\" -e 's/TDMwPTul/BNDLPTul/g' \"$AU/Contents/PkgInfo\"\r\n"
" sed -i \"\" -e 's/TDMw/BNDL/g' \"$AU/Contents/$INFOPLIST_FILE\"\r\n" " sed -i \"\" -e 's/TDMw/BNDL/g' \"$AU/Contents/$INFOPLIST_FILE\"\r\n"
"\r\n"
" # Fix info.plist for AUs built with Xcode 3\r\n"
" if [ -f \"$DEVELOPER_DIR/Library/Developer/CoreAudio/AudioUnits/AUPublic/AUBase/AUPlugInDispatch.cpp\" ]; then\r\n"
" # (nothing)\r\n"
" else\r\n"
" echo \"Removing AudioComponents entry from Info.plist because this is not a new-format AU\"\r\n"
" /usr/libexec/PlistBuddy -c \"Delete AudioComponents\" \"$original/Contents/Info.plist\"\r\n"
" fi\r\n"
"fi\r\n" "fi\r\n"
"\r\n" "\r\n"
"if [ $copyVST -gt 0 ]; then\r\n" "if [ $copyVST -gt 0 ]; then\r\n"
@@ -1162,7 +1170,7 @@ const char* getNamedResource (const char* resourceNameUTF8, int& numBytes) throw
switch (hash) switch (hash)
{ {
case 0x44be9398: numBytes = 2101; return AudioPluginXCodeScript_txt;
case 0x44be9398: numBytes = 2477; return AudioPluginXCodeScript_txt;
case 0x4a0cfd09: numBytes = 151; return background_tile_png; case 0x4a0cfd09: numBytes = 151; return background_tile_png;
case 0x763d39dc: numBytes = 1050; return colourscheme_dark_xml; case 0x763d39dc: numBytes = 1050; return colourscheme_dark_xml;
case 0xe8b08520: numBytes = 1050; return colourscheme_light_xml; case 0xe8b08520: numBytes = 1050; return colourscheme_light_xml;


+ 1
- 1
extras/Introjucer/JuceLibraryCode/BinaryData.h View File

@@ -7,7 +7,7 @@
namespace BinaryData namespace BinaryData
{ {
extern const char* AudioPluginXCodeScript_txt; extern const char* AudioPluginXCodeScript_txt;
const int AudioPluginXCodeScript_txtSize = 2101;
const int AudioPluginXCodeScript_txtSize = 2477;
extern const char* background_tile_png; extern const char* background_tile_png;
const int background_tile_pngSize = 151; const int background_tile_pngSize = 151;


+ 8
- 0
extras/Introjucer/Source/BinaryData/AudioPluginXCodeScript.txt View File

@@ -20,6 +20,14 @@ if [ $copyAU -gt 0 ]; then
cp -r "$original" "$AU" cp -r "$original" "$AU"
sed -i "" -e 's/TDMwPTul/BNDLPTul/g' "$AU/Contents/PkgInfo" sed -i "" -e 's/TDMwPTul/BNDLPTul/g' "$AU/Contents/PkgInfo"
sed -i "" -e 's/TDMw/BNDL/g' "$AU/Contents/$INFOPLIST_FILE" sed -i "" -e 's/TDMw/BNDL/g' "$AU/Contents/$INFOPLIST_FILE"
# Fix info.plist for AUs built with Xcode 3
if [ -f "$DEVELOPER_DIR/Library/Developer/CoreAudio/AudioUnits/AUPublic/AUBase/AUPlugInDispatch.cpp" ]; then
# (nothing)
else
echo "Removing AudioComponents entry from Info.plist because this is not a new-format AU"
/usr/libexec/PlistBuddy -c "Delete AudioComponents" "$original/Contents/Info.plist"
fi
fi fi
if [ $copyVST -gt 0 ]; then if [ $copyVST -gt 0 ]; then


Loading…
Cancel
Save