scripting - Build systems for resource-heavy scripted projects -
i work in projects scripted , resource heavy, , fraction of resources generated.
examples of files include:
- script files (no compilation needed)
- binary files (eg images, sounds)
- generated files (eg images created procedurally)
because of #3, typically have build system (gnumake) automates creation of of them, , resolves build dependencies - it's designed do. issue these generated files need scattered through project file structure (as not same purpose). there few solutions can see:
- scatter generated files around , have impossible maintain 'make clean' (and impossible maintain version control ignore file)
- copy entire project every build directory, , copy files place. defeats 1 of major advantages of scripting language in can no longer make change , test - have build project first. people used working in compiled languages don't see issue here, used working scripting langues increases iteration time.
- have 'generatedresource' folder in project directory generated resources go in. disrupts intended architecture of project, , means there 2 identical folder structures containing different resources, filling same role.
are there other ways of handling problem?
option #2 least painful normally, in case there snag. of non-generated binary files reference generated files. cannot set reference files when not exist, , #2 never has generated , non-generated files co-existing these references set up.
Comments
Post a Comment