Skip to content

Commit

Permalink
updating for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
rorywalsh committed Mar 16, 2020
1 parent 4b6cfae commit b534a25
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions buildLocal.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
C:\tools\msys64\msys2_shell.cmd -defterm -mingw64 -no-start -full-path -here -c "make -f Makefile.win dist"
Copy-Item "C:/Users/rory/sourcecode/Rack-SDK/CabbageRack/CabbageRack.csd" -Destination "C:/Users/rory/sourcecode/Rack-SDK/CabbageRack/dist/CabbageRack/CabbageRack.csd"
Copy-Item "C:/Users/rory/sourcecode/Rack-SDK/CabbageRack/dist/CabbageRack" -Destination "C:/Users/rory/sourcecode/Rack/plugins/CabbageRack" -Recurse
5 changes: 4 additions & 1 deletion src/plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@

Plugin *pluginInstance;


#ifdef ARCH_WIN
__declspec(dllexport) void init(Plugin *p) {
#else
void init(Plugin *p) {
#endif
pluginInstance = p;
const std::string pluginName = pluginInstance->path.substr(pluginInstance->path.find_last_of("/")+1);
std::cout << pluginName;
Expand Down

0 comments on commit b534a25

Please sign in to comment.