I have a Pure Data project that I would put on a Git repository. The project is…
Jump to turn (8)
- 1I have a Pure Data project that I would put on a Git repository. The project is
- 2Ok, in this case I have to add a .gitsubmodule plus at least once I must run: gi
- 3Ok, but I can provide to the user directly the file .gitsubmodle within the repo
- 4Ok, the file .gitmodules is done by Git when I type: git submodule add , or I ha
- 5Ok, in: git submodule add , the repository-url is clear, the path is where the p
- 6Ok, suppose I do a mistake, for example: git submodule add https://example.com/r
- 7Please provide me feedback about the following scenarios. I commit an update on
- 8Do you see any other alternatives to git submodule or CMake? Something easier I
- User
I have a Pure Data project that I would put on a Git repository. The project is organized in the following way: / main.pd / abs/ / lib/ / doc/ README.md main.pd is the main Pd patch, and is specific for this project. doc folder contains the documentation for this project, and is specific for it. README.md is specific. Then, abs/ folder contains other Pd patches, however this folder contains a library of patches and it is common to different repository (it is not part of this project but the project needs it as a dependency). lib/ folder contains binaries necessary for this project plus the source code, however this library is shared between different projects and this project needs it. My main concern is about how to structure this project. Indeed, main.pd, doc/ and README.md are local to this project. abs/ and lib/ should be imported inside it then the project is cloned. For this reason, I am considering to add CMake such that when you clone the repo, then you build it and I use Fetch Content to retrieve abs/ folder from its git repository (there is nothing to build here, just an import), then for lib/ I would distribute the binaries for different OS such that the user does not need to build them (the user is Pd user, so he has skill in patching Pd, but he can not have skill in compiling). lib/ is built using a Makefile, no CMake. Alternatively, I can use git submodule to import the two libraries. Please provide feedback about this proposal.