JanWilczek / audio-plugin-template

A template repository that you can use for creating audio plugins with the JUCE C++ framework. It is based on CMake, uses CPM package manager, the JUCE C++ framework (obviously), and the GoogleTest framework. All of these are easy to change on demand. You can also base off your new repo off this template because the setup is very simple.
The Unlicense
95 stars 7 forks source link

CMake copy file when plugin is build #2

Open LasseMunk opened 11 months ago

LasseMunk commented 11 months ago

Hi Jan,

You could include to your ./CMakeLists.txt e.g.

configure_file("./build/plugin/AudioPlugin_artefacts/Debug/VST3/YourPluginName.vst3/Contents/x86_64-win/YourPluginName.vst3" "C:/Users/[USERNAME]/Desktop/myplugin" COPYONLY)

This way CMake will create a link between the files, and how I understand it, update the plugin in myplugin folder when ever the changes to the plugin is re compiled :)

(And thank you for the template, it saved me a ton of work)

JanWilczek commented 11 months ago

Hi Lasse,

Many thanks for the suggestion. I have explicitly not put copying into the CMake file because it requires elevated priviledges. Thus, it typically fails as a “build error”. That’s why I’m against including it as a default. Maybe as a commented CMake line then? How do you feel about it?

From: Lasse Munk Sent: Thursday, October 12, 2023 11:14 PM To: JanWilczek/audio-plugin-template @.> Cc: Subscribed @.> Subject: [JanWilczek/audio-plugin-template] CMake copy file when plugin is build (Issue #2)

Hi Jan,

You could include e.g.

configure_file("./build/plugin/AudioPlugin_artefacts/Debug/VST3/YourPluginName.vst3/Contents/x86_64-win/YourPluginName.vst3" "C:/Users/[USERNAME]/Desktop/myplugin" COPYONLY)

This way CMake will create a link between the files, and how I understand it, update the plugin in myplugin folder when ever the changes to the plugin is re compiled :)

— Reply to this email directly, view it on GitHub https://github.com/JanWilczek/audio-plugin-template/issues/2 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AF6TC47GQUNLE36X2D6SETLX7BMS5ANCNFSM6AAAAAA56GRA2M . You are receiving this because you are subscribed to this thread.Message ID: @.***>

LasseMunk commented 11 months ago

Hi Jan,

I am still very new to c++ and cmake, so I don't have any wise words. I just used your template (thanks again) and spent some time understanding how to auto copy the compiled vst :) I think a commented cmake line would make a lot of sense, maybe where you also write that it can lead to build errors with the description you just wrote :)

JanWilczek commented 11 months ago

Hi Lasse,

Great, could you then, please, post a related PR? 😊

From: Lasse Munk Sent: Saturday, October 14, 2023 2:40 PM To: JanWilczek/audio-plugin-template @.> Cc: Jan Wilczek @.>; Comment @.***> Subject: Re: [JanWilczek/audio-plugin-template] CMake copy file when plugin is build (Issue #2)

Hi Jan,

I am still very new to c++ and cmake, so I don't have any wise words. I just used your template (thanks again) and spent some time understanding how to auto copy the compiled vst :) I think a commented cmake line would make a lot of sense, maybe where you also write that it can lead to build errors with the description you just wrote :)

— Reply to this email directly, view it on GitHub https://github.com/JanWilczek/audio-plugin-template/issues/2#issuecomment-1762884012 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AF6TC4Y53YYG63AY67LJHUDX7KBZHANCNFSM6AAAAAA56GRA2M . You are receiving this because you commented.Message ID: @.***>

LasseMunk commented 11 months ago

I'm not sure how to do it. I just cloned your repo, made a new branch but get a 403 error when I try to push and create a PR :)

remote: Permission to JanWilczek/audio-plugin-template.git denied to LasseMunk.

LasseMunk commented 11 months ago

ah i think i figured it out. Never tried to fork a repo before :)