# HG changeset patch # User timothy.murphy@nokia.com # Date 1270577279 -3600 # Node ID a6aa62a0998d7b8123dd4e5aff1eac27f3818a67 # Parent 92c43194abb5bc073a5fe987e59057c02c41cfae fix: prevent regeneration of resources for winscw after an armv5 build diff -r 92c43194abb5 -r a6aa62a0998d sbsv2/raptor/lib/flm/resource.flm --- a/sbsv2/raptor/lib/flm/resource.flm Mon Apr 05 17:04:25 2010 +0100 +++ b/sbsv2/raptor/lib/flm/resource.flm Tue Apr 06 19:07:59 2010 +0100 @@ -64,7 +64,7 @@ endif # we create intermediate .rpp and .d files -INTERBASE:=$(OUTPUTPATH)/$(TARGET_lower)$(if $(TARGETPATH),_$(subst /,_,$(TARGETPATH)),) +INTERBASE:=$(OUTPUTPATH)/$(TARGET_lower) ################################## localisation ###########################$(GNUMKDIR)############# # Only make copies for full resource builds @@ -117,12 +117,14 @@ CREATABLEPATHS:=$(RSCDIR) $(RSGDIR) $(OUTPUTPATH) +# We intend to generate the resource in an intermediate locationand copy to the final destination to +# ensure that when the "same" resource is built into separare locations it is +RSCCOPYDIRS:=$(RESBASE) # additional binary resource copies performed based on BINCOPYDIRS -RSCCOPYDIRS:= ifneq ($(BINCOPYDIRS),) - RSCCOPYDIRS:=$(subst //,/,$(patsubst %,%/$(if $(TARGETPATH),/z/$(TARGETPATH),),$(BINCOPYDIRS))) - CREATABLEPATHS:=$(CREATABLEPATHS) $(RSCCOPYDIRS) + RSCCOPYDIRS:=$(RSCCOPYDIRS) $(subst //,/,$(patsubst %,%/$(if $(TARGETPATH),/z/$(TARGETPATH),),$(BINCOPYDIRS))) endif +CREATABLEPATHS:=$(CREATABLEPATHS) $(RSCCOPYDIRS) ############################################################################### define preprocessresource @@ -261,8 +263,8 @@ ifeq ($(HEADERONLY),) # generate a resource file for each language # For sc we generate $(RESBASE).rsc and define LANGUAGE_SC and LANGUAGE_sc. - $(foreach L,$(LANGUAGES:SC=sc),$(eval $(call preprocessresource,$(INTERBASE)_$(L).rpp,$(RESBASE).r$(L),$(L)))) - $(foreach L,$(LANGUAGES:SC=sc),$(eval $(call generateresource,$(RESBASE).r$(L),$(INTERBASE)_$(L).rpp,$(L)))) + $(foreach L,$(LANGUAGES:SC=sc),$(eval $(call preprocessresource,$(INTERBASE)_$(L).rpp,$(INTERBASE).r$(L),$(L)))) + $(foreach L,$(LANGUAGES:SC=sc),$(eval $(call generateresource,$(INTERBASE).r$(L),$(INTERBASE)_$(L).rpp,$(L)))) else # No resources are going to be made so unless we specifically ask for it, there will be no # preprocessed file from which to create the header: