sbsv2/raptor/lib/flm/stringtable.flm
changeset 13 c327db0664bb
parent 2 39c28ec933dd
child 28 b8fa7dfeeaa1
equal deleted inserted replaced
12:5e7562f67577 13:c327db0664bb
    31 # StringTable FLM
    31 # StringTable FLM
    32 
    32 
    33 
    33 
    34 EXPORT::
    34 EXPORT::
    35 
    35 
    36 
       
    37 CLEANTARGETS:=
    36 CLEANTARGETS:=
    38 CLEANEXPORTS:=
       
    39 RELEASEEXPORTS:=
    37 RELEASEEXPORTS:=
    40 CREATABLEPATHS:=$(OUTPUTPATH) $(EXPORTPATH)
    38 CREATABLEPATHS:=$(OUTPUTPATH) $(EXPORTPATH)
    41 
    39 
    42 # Work out the names of the various output files before
    40 # Work out the names of the various output files before
    43 # trying to use them in rules and dependencies. Cuts repetition
    41 # trying to use them in rules and dependencies. Cuts repetition
    58 $(EXPORTEDSTRINGTABLEHEADER): $(STRINGTABLEHEADER) 
    56 $(EXPORTEDSTRINGTABLEHEADER): $(STRINGTABLEHEADER) 
    59 	$(call startrule,exportstringtableheader,FORCESUCCESS) \
    57 	$(call startrule,exportstringtableheader,FORCESUCCESS) \
    60 	$(GNUCP) '$(STRINGTABLEHEADER)' '$$@'  \
    58 	$(GNUCP) '$(STRINGTABLEHEADER)' '$$@'  \
    61 	$(call endrule,exportstringtableheader) 
    59 	$(call endrule,exportstringtableheader) 
    62 
    60 
    63 CLEANEXPORTS:=$(EXPORTEDSTRINGTABLEHEADER)
       
    64 RELEASEEXPORTS:=$(EXPORTEDSTRINGTABLEHEADER)
    61 RELEASEEXPORTS:=$(EXPORTEDSTRINGTABLEHEADER)
    65 endef
    62 endef
    66 
    63 
    67 define genstringtable
    64 define genstringtable
    68 $(STRINGTABLECPP) : $(STRINGTABLEHEADER)
    65 $(STRINGTABLECPP) : $(STRINGTABLEHEADER)
    81 $(if $(EXPORTPATH),$(eval $(exportstringtableheader)),)
    78 $(if $(EXPORTPATH),$(eval $(exportstringtableheader)),)
    82 $(if $(EXPORTPATH),,$(eval EXPORT:: $(STRINGTABLEHEADER)))
    79 $(if $(EXPORTPATH),,$(eval EXPORT:: $(STRINGTABLEHEADER)))
    83 $(eval $(genstringtable))
    80 $(eval $(genstringtable))
    84 
    81 
    85 
    82 
    86 ## Clean up and log releasables (using eval to avoid target specific variables)
    83 ## Clean up and log releasables
    87 $(eval $(call GenerateStandardCleanTarget,$(CLEANTARGETS),$(CREATABLEPATHS),))
    84 $(call raptor_clean,$(CLEANTARGETS))
    88 $(eval $(call GenerateStandardCleanTarget,$(CLEANEXPORTS),,CLEANEXPORT))
       
    89 # make the output directories while reading makefile - some build engines prefer this
    85 # make the output directories while reading makefile - some build engines prefer this
    90 $(call makepath,$(CREATABLEPATHS))
    86 $(call makepath,$(CREATABLEPATHS))
    91 $(eval $(call whatmacro,$(RELEASEEXPORTS),WHATSTRINGTABLE))
    87 $(call raptor_release,$(RELEASEEXPORTS),STRINGTABLE)
    92 
    88 
    93 ########################
       
    94 # SBSv1 example:
       
    95 ########################
       
    96 # GENERATED_FILES= \
       
    97 #         $(EPOCROOT)epoc32\build\generated\http\WspParamConstants.cpp \
       
    98 #         $(EPOCROOT)epoc32\include\WspParamConstants.h
       
    99 # 
       
   100 # $(EPOCROOT)epoc32\build\generated\http\WspParamConstants.cpp : ..\strings\WspParamConstants.st
       
   101 #         perl -S ecopyfile.pl ..\strings\WspParamConstants.st $(EPOCROOT)epoc32\build\generated\http\WspParamConstants.st
       
   102 #         perl $(EPOCROOT)epoc32\tools\stringtable.pl $(EPOCROOT)epoc32\build\generated\http\WspParamConstants.st
       
   103 # 
       
   104 # $(EPOCROOT)epoc32\include\WspParamConstants.h : $(EPOCROOT)epoc32\build\generated\http\WspParamConstants.cpp
       
   105 #         perl -S ecopyfile.pl $(EPOCROOT)epoc32\build\generated\http\WspParamConstants.h $(EPOCROOT)epoc32\include\WspParamConstants.h
       
   106 #