sbsv2/raptor/lib/flm/tracecompiler.mk
changeset 303 502501837ac4
parent 300 e87b08dc4b44
child 511 7581d432643a
equal deleted inserted replaced
297:7029b5be2b15 303:502501837ac4
    70 $(TRACE_HEADERS): $(TRACE_MARKER)
    70 $(TRACE_HEADERS): $(TRACE_MARKER)
    71 
    71 
    72 ifeq ($(GUARD_$(call sanitise,$(TRACE_MARKER))),)
    72 ifeq ($(GUARD_$(call sanitise,$(TRACE_MARKER))),)
    73 GUARD_$(call sanitise,$(TRACE_MARKER)):=1
    73 GUARD_$(call sanitise,$(TRACE_MARKER)):=1
    74 
    74 
    75 TRACE_DICTIONARY:=$(EPOCROOT)/epoc32/ost_dictionaries/$(TRACE_PRJNAME)_0x$(UID_TC)_Dictionary.xml
    75 # The trace compiler likes to change . into _ so we must do the same in the case of mmps with a name like
    76 AUTOGEN_HEADER:=$(EPOCROOT)/epoc32/include/internal/SymbianTraces/autogen/$(TRACE_PRJNAME)_0x$(UID_TC)_TraceDefinitions.h
    76 # fred.prd.mmp we want fred_prd
       
    77 TRACE_PRJNAME_SANITISED:=$(subst .,_,$(TRACE_PRJNAME))
       
    78 
       
    79 TRACE_DICTIONARY:=$(EPOCROOT)/epoc32/ost_dictionaries/$(TRACE_PRJNAME_SANITISED)_0x$(UID_TC)_Dictionary.xml
       
    80 AUTOGEN_HEADER:=$(EPOCROOT)/epoc32/include/internal/SymbianTraces/autogen/$(TRACE_PRJNAME_SANITISED)_0x$(UID_TC)_TraceDefinitions.h
    77 
    81 
    78 JAVA_COMMAND:=$(SBS_JAVATC)
    82 JAVA_COMMAND:=$(SBS_JAVATC)
    79 TRACE_COMPILER_PATH:=$(EPOCROOT)/epoc32/tools
    83 TRACE_COMPILER_PATH:=$(EPOCROOT)/epoc32/tools
    80 TRACE_COMPILER_START:=-classpath $(TRACE_COMPILER_PATH)/tracecompiler com.nokia.tracecompiler.TraceCompiler
    84 TRACE_COMPILER_START:=-classpath $(TRACE_COMPILER_PATH)/tracecompiler com.nokia.tracecompiler.TraceCompiler
    81 
    85 
    89 	( echo -en "$(TRACE_PRJNAME)\n$(PROJECT_META)\n"; \
    93 	( echo -en "$(TRACE_PRJNAME)\n$(PROJECT_META)\n"; \
    90 	  $(GNUCAT) $(TRACE_SOURCE_LIST); \
    94 	  $(GNUCAT) $(TRACE_SOURCE_LIST); \
    91 	  echo -en "*ENDOFSOURCEFILES*\n" ) | \
    95 	  echo -en "*ENDOFSOURCEFILES*\n" ) | \
    92 	$(JAVA_COMMAND) $(TRACE_COMPILER_START) $(UID_TC) &&  \
    96 	$(JAVA_COMMAND) $(TRACE_COMPILER_START) $(UID_TC) &&  \
    93 	$(GNUMD5SUM) $(TRACE_SOURCE_LIST) > $(TRACE_MARKER) && \
    97 	$(GNUMD5SUM) $(TRACE_SOURCE_LIST) > $(TRACE_MARKER) && \
    94 	{ $(GNUCAT) $(TRACE_SOURCE_LIST) ; true ; } \
    98 	{ $(GNUTOUCH) $(TRACE_DICTIONARY) $(AUTOGEN_HEADER); \
       
    99 	 $(GNUCAT) $(TRACE_SOURCE_LIST) ; true ; } \
    95 	$(call endrule,tracecompile)
   100 	$(call endrule,tracecompile)
    96 endef
   101 endef
    97 
   102 
    98 $(eval $(trace_compile))
   103 $(eval $(trace_compile))
    99 
   104