scripting - Build systems for resource-heavy scripted projects -


i work in projects scripted , resource heavy, , fraction of resources generated.

examples of files include:

  1. script files (no compilation needed)
  2. binary files (eg images, sounds)
  3. 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:

  1. scatter generated files around , have impossible maintain 'make clean' (and impossible maintain version control ignore file)
  2. 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.
  3. 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