Adding mkspecs.
[ptas] / zouba / qt4-maemo5 / mkspecs / symbian-sbsv2 / flm / qt / qmake_post_link.flm
1 # /****************************************************************************
2 # **
3 # ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
4 # ** Contact: Nokia Corporation (qt-info@nokia.com)
5 # **
6 # ** This file is part of symbian-sbsv2 mkspec.
7 # **
8 # ****************************************************************************/
9
10 include $(FLMHOME)/metaflm.mk
11
12 POST_LINK_TARGET:=POST_LINK_$(PLATFORM_PATH)_$(CFG_PATH)_$(call sanitise,$(LINK_TARGET))
13 POST_LINK_DEP:=$(EPOCROOT)/epoc32/release/$(PLATFORM_PATH)/$(CFG_PATH)/$(LINK_TARGET)
14
15 # Passing $(PLATFORM_PATH) etc. variables in FLM options makes sbsv2 toolchain to double the dollar signs, 
16 # requiring evaluating them twice in order to get desired values, 
17 # so do an extra evaluation before using the command.
18 define command_fixer
19         THE_COMMAND:=$(POST_LINK_CMD)
20 endef
21
22 define qmake_post_link
23 $(ALLTARGET):: $(POST_LINK_TARGET)
24 FINAL:: $(POST_LINK_TARGET)
25
26 $(POST_LINK_TARGET): $(POST_LINK_DEP)
27         $(call startrule,qmake_post_link) \
28         $(THE_COMMAND) \
29         $(call endrule,qmake_post_link)
30 endef
31
32 $(eval $(command_fixer))
33 $(eval $(qmake_post_link))
34