# HG changeset patch # User timothy.murphy@nokia.com # Date 1270730640 -3600 # Node ID 8786668610aecdde3dbf696c802158596106af82 # Parent f45853a5ce36433b2b70db4347c555759566bbba fix: revert -iquote since older cpps don't understand it fix: remove stupid repetition of for loop. tt: Enter commit message. Lines beginning with 'HG:' are removed. diff -r f45853a5ce36 -r 8786668610ae sbsv2/raptor/lib/flm/resource.flm --- a/sbsv2/raptor/lib/flm/resource.flm Wed Apr 07 20:48:13 2010 +0100 +++ b/sbsv2/raptor/lib/flm/resource.flm Thu Apr 08 13:44:00 2010 +0100 @@ -112,8 +112,13 @@ $(call makepath,$(INTERBASE)) # common pre-processor options + +# We really should be using -iquote with a recent cpp. This is a note for when we do update: +#CPPOPT:=-nostdinc -undef -Wno-trigraphs -D_UNICODE -include $(PRODUCT_INCLUDE)\ +# -I$(dir $(SOURCE)) $(foreach I, $(USERINCLUDE),-iquote $(I) ) $(foreach J,$(SYSTEMINCLUDE),-I $(J) ) + CPPOPT:=-nostdinc -undef -Wno-trigraphs -D_UNICODE -include $(PRODUCT_INCLUDE)\ - -I$(dir $(SOURCE)) $(foreach I, $(USERINCLUDE),-iquote $(I) ) $(foreach J,$(SYSTEMINCLUDE),-I $(J) ) + -I$(dir $(SOURCE)) $(foreach I, $(USERINCLUDE),-I$(I) ) -I- $(foreach J,$(SYSTEMINCLUDE),-I$(J) ) CREATABLEPATHS:=$(RSCDIR) $(RSGDIR) $(OUTPUTPATH) @@ -236,13 +241,13 @@ $(call endrule,resourcecompile) endif + # Whether or not we have generated this resource for some other variant, check if there # are any new copies to be made for this variant. e.g. winscw requires that we make # some extra copies. $(if $(FLMDEBUG),$(info resource copies of $(notdir $1) in: $(RSCCOPYDIRS))) $(foreach F,$(sort $(patsubst %,%/$(notdir $(1)),$(RSCCOPYDIRS))),$(call copyresource,$(1),$(F))) - $(foreach F,$(sort $(patsubst %,%/$(notdir $(1)),$(RSCCOPYDIRS))),$(call copyresource,$(1),$(F))) # individual source file compilation SOURCETARGET_$(call sanitise,$(SOURCE)): $(1)