From: John L. <jla...@gm...> - 2005-12-14 20:14:04
|
What's the best way to add multiple samples to wxCode's bakefiles? I was thinking that we could add the ability for 4 samples using the bakefiles. We'll keep the current naming scheme the same, but just append 2,3,4,... for addition samples. We just need to add this code duplicate of existing code). build/bakefiles/templates.bkl <set var=3D"PCOMP_SAMPLE_HDR2">$(''.join([(COMP_SAMPLE_DIR2 + DIRSEP + '%s ') % (x) for x in COMP_SAMPLE_HDR2.split()]))</set> <set var=3D"PCOMP_SAMPLE_SRC2">$(''.join([(COMP_SAMPLE_DIR2 + DIRSEP + '%s ') % (x) for x in COMP_SAMPLE_SRC2.split()]))</set> <template id=3D"compsample2" template=3D"compsamplebasic"> <app-type>gui</app-type> <headers>$(PCOMP_SAMPLE_HDR2)</headers> <sources>$(PCOMP_SAMPLE_SRC2)</sources> <dirname>$(COMP_SAMPLE_DIR2)</dirname> <res-include>$(COMP_SAMPLE_DIR2)</res-include> <!-- this template needs to be completed by the "library" tag which cannot be placed here since we don't know the name of the lib target for this component --> </template> repeat for 3 and 4. --------------------------------------- build/bakefiles/defaults.bkl <set var=3D"COMP_SAMPLE_DIR2">$(COMP_BASEPATH)$(DIRSEP)samples</set> <set var=3D"COMP_SAMPLE_DIR3">$(COMP_BASEPATH)$(DIRSEP)samples</set> <set var=3D"COMP_SAMPLE_DIR4">$(COMP_BASEPATH)$(DIRSEP)samples</set> ------------------- If there's a better way, let me know, otherwise I'll commit this in the next day or so. Regards, John Labenski |