Skip to content

Commit

Permalink
Merge pull request #9 from martinfinke/single-merged-plugin
Browse files Browse the repository at this point in the history
Single merged plugin build
  • Loading branch information
Tremus authored Jan 31, 2025
2 parents fc4fd2f + 742786d commit 315d157
Show file tree
Hide file tree
Showing 7 changed files with 153 additions and 322 deletions.
241 changes: 85 additions & 156 deletions CMakeLists.txt

Large diffs are not rendered by default.

65 changes: 65 additions & 0 deletions example/Info.plist.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>@PRODUCT_NAME@</string>
<key>CFBundleGetInfoString</key>
<string>@MACOSX_BUNDLE_INFO_STRING@</string>
<key>CFBundleIconFile</key>
<string>@MACOSX_BUNDLE_ICON_FILE@</string>
<key>CFBundleIdentifier</key>
<string>@bundle_identifier@</string>
<key>CFBundleName</key>
<string>@PRODUCT_NAME@</string>
<key>CFBundleDisplayName</key>
<string>@PRODUCT_NAME@</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleVersion</key>
<string>@PROJECT_VERSION@</string>
<key>CFBundleLongVersionString</key>
<string>@PROJECT_VERSION@</string>
<key>CFBundleShortVersionString</key>
<string>@PROJECT_VERSION@</string>
<key>CFBundlePackageType</key>
<string>@bundle_type@</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>NSHumanReadableCopyright</key>
<string>@PRODUCT_COPYRIGHT@</string>
<key>LSMultipleInstancesProhibited</key>
<true/>
<key>NSHighResolutionCapable</key>
<true/>
<key>CSResourcesFileMapped</key>
<true/>
<key>AudioComponents</key>
<array>
<dict>
<key>name</key>
<string>@PRODUCT_COPYRIGHT@: @PRODUCT_NAME@</string>
<key>description</key>
<string>@PRODUCT_DESCRIPTION@</string>
<key>factoryFunction</key>
<string>GetAUv2PluginFactory</string>
<key>manufacturer</key>
<string>@MACOSX_BUNDLE_MANUFACTURER@</string>
<key>sandboxSafe</key>
<true/>
<key>subtype</key>
<string>@MACOSX_BUNDLE_SUBTYPE@</string>
<key>tags</key>
<array>
@MACOSX_BUNDLE_TAGS@
</array>
<key>type</key>
<string>@MACOSX_BUNDLE_TYPE@</string>
<key>version</key>
<integer>@MACOSX_BUNDLE_VERSION_INT@</integer>
</dict>
</array>
</dict>
</plist>
34 changes: 0 additions & 34 deletions example/app.plist.in

This file was deleted.

57 changes: 0 additions & 57 deletions example/auv2.plist.in

This file was deleted.

36 changes: 0 additions & 36 deletions example/clap.plist.in

This file was deleted.

36 changes: 0 additions & 36 deletions example/vst3.plist.in

This file was deleted.

6 changes: 3 additions & 3 deletions src/cplug_auv2.c
Original file line number Diff line number Diff line change
Expand Up @@ -1322,9 +1322,9 @@ OSStatus ComponentBase_AP_Close(AUv2Plugin* auv2)
return noErr;
}

__attribute__((visibility("default"))) void* GetPluginFactory(const AudioComponentDescription* inDesc)
__attribute__((visibility("default"))) void* GetAUv2PluginFactory(const AudioComponentDescription* inDesc)
{
cplug_log("GetPluginFactory");
cplug_log("GetAUv2PluginFactory");

int numInstances = __atomic_fetch_add(&g_auv2InstanceCount, 1, __ATOMIC_SEQ_CST);
if (numInstances == 0)
Expand All @@ -1343,4 +1343,4 @@ __attribute__((visibility("default"))) void* GetPluginFactory(const AudioCompone
auv2->mMaxFramesPerSlice = kAUDefaultMaxFramesPerSlice;
auv2->sampleRate = kAUDefaultSampleRate;
return auv2;
}
}

0 comments on commit 315d157

Please sign in to comment.