Author Topic: Windows V Unix project file query about the ExtraCommands usage for plugins  (Read 2812 times)

Offline AndrewCot

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 678
The windows project files use the ExtraCommands to create the plugin zip files and then when you run the update batch files they are created again.The unix project file does not use ExtraCommands and instead the plugin zip files are created in the update script.
Where should the plugin zip file be created? It seems more logical to me to have it in the project file with the rest of the plugin build details and source files.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5910
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Long time ago, the plugin zip file is only created by the update script. (method A)

Several years ago, some developers are adding the zip command to the cbp files, so once the project is built, the zip file get created. (Method B)

I prefer Method B.   :)

Because for a plugin developer, it should prepare the dll and the zip file for its own plugin.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline AndrewCot

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 678
Thanks for the response.