author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Mon, 15 Mar 2010 12:43:09 +0200 | |
branch | RCL_3 |
changeset 6 | dee5afe5301f |
parent 4 | 3b1da2848fc7 |
permissions | -rw-r--r-- |
0 | 1 |
# /**************************************************************************** |
2 |
# ** |
|
4
3b1da2848fc7
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
3 |
# ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
0 | 4 |
# ** Contact: Nokia Corporation (qt-info@nokia.com) |
5 |
# ** |
|
6 |
# ** This file is part of symbian-sbsv2 mkspec. |
|
7 |
# ** |
|
8 |
# ****************************************************************************/ |
|
9 |
||
10 |
||
11 |
SINGLETON:=$(call sanitise,TARGET_$(DEPLOY_TARGET)) |
|
12 |
CLEAN_TARGET:= |
|
13 |
||
6
dee5afe5301f
Revision: 201008
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
4
diff
changeset
|
14 |
# add EPOCROOT if missing (not if drive letters are present) |
4
3b1da2848fc7
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
15 |
ifeq ($(findstring :,$(firstword $(DEPLOY_TARGET))), :) |
3b1da2848fc7
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
16 |
DEPLOY_TARGET:=$(DEPLOY_TARGET) |
3b1da2848fc7
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
17 |
else |
6
dee5afe5301f
Revision: 201008
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
4
diff
changeset
|
18 |
ifeq ($(findstring $(EPOCROOT), $(firstword $(DEPLOY_TARGET))), $(EPOCROOT)) |
dee5afe5301f
Revision: 201008
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
4
diff
changeset
|
19 |
DEPLOY_TARGET:=$(DEPLOY_TARGET) |
dee5afe5301f
Revision: 201008
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
4
diff
changeset
|
20 |
else |
dee5afe5301f
Revision: 201008
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
4
diff
changeset
|
21 |
DEPLOY_TARGET:=$(EPOCROOT)$(DEPLOY_TARGET) |
dee5afe5301f
Revision: 201008
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
4
diff
changeset
|
22 |
endif |
4
3b1da2848fc7
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
23 |
endif |
3b1da2848fc7
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
24 |
|
0 | 25 |
define qmake_emulator_deployment |
26 |
$(ALLTARGET):: $(1) |
|
27 |
||
28 |
# Prevent duplicate targets from being created |
|
29 |
$(SINGLETON):=1 |
|
30 |
||
31 |
CLEAN_TARGET:=$(1) |
|
32 |
||
33 |
$(1): $(2) |
|
34 |
$(call startrule,qmake_emulator_deployment) \ |
|
35 |
$(GNUCP) --no-preserve=mode $(2) "$$@" && \ |
|
36 |
$(GNUCHMOD) a+rw "$$@" \ |
|
37 |
$(call endrule,qmake_emulator_deployment) |
|
38 |
endef |
|
39 |
||
40 |
ifeq ($($(SINGLETON)),) |
|
41 |
$(eval $(call qmake_emulator_deployment, $(subst $(CHAR_SPACE),\$(CHAR_SPACE),$(DEPLOY_TARGET)), $(subst $(CHAR_SPACE),\$(CHAR_SPACE),$(DEPLOY_SOURCE)))) |
|
42 |
$(call makepath,$(dir $(DEPLOY_TARGET))) |
|
43 |
$(eval $(call GenerateStandardCleanTarget,$(CLEAN_TARGET),'')) |
|
44 |
endif |
|
45 |
||
46 |
||
47 |
||
48 |