summaryrefslogtreecommitdiffstats
path: root/mkspecs/symbian-sbsv2/flm/qt/qmake_post_link.flm
blob: 8ad89e7131dc9876781bfc892be9b5054199c87c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# /****************************************************************************
# **
# ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
# ** Contact: Nokia Corporation (qt-info@nokia.com)
# **
# ** This file is part of symbian-sbsv2 mkspec.
# **
# ****************************************************************************/

include $(FLMHOME)/metaflm.mk

POST_LINK_TARGET:=POST_LINK_$(PLATFORM_PATH)_$(CFG_PATH)_$(call sanitise,$(LINK_TARGET))
POST_LINK_DEP:=$(EPOCROOT)/epoc32/release/$(PLATFORM_PATH)/$(CFG_PATH)/$(LINK_TARGET)

# Passing $(PLATFORM_PATH) etc. variables in FLM options makes sbsv2 toolchain to double the dollar signs, 
# requiring evaluating them twice in order to get desired values, 
# so do an extra evaluation before using the command.
define command_fixer
	THE_COMMAND:=$(POST_LINK_CMD)
endef

define qmake_post_link
$(ALLTARGET):: $(POST_LINK_TARGET)
FINAL:: $(POST_LINK_TARGET)

$(POST_LINK_TARGET): $(POST_LINK_DEP)
	$(call startrule,qmake_post_link) \
	$(THE_COMMAND) \
	$(call endrule,qmake_post_link)
endef

$(eval $(command_fixer))
$(eval $(qmake_post_link))