author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Mon, 03 May 2010 13:17:34 +0300 | |
changeset 19 | fcece45ef507 |
parent 18 | 2f34d5167611 |
child 37 | 758a864f9613 |
permissions | -rw-r--r-- |
0 | 1 |
# /**************************************************************************** |
2 |
# ** |
|
18
2f34d5167611
Revision: 201011
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,TSTORE_SINGLETON_$(EXTENSION_ROOT)) |
|
12 |
||
13 |
ifeq ($($(SINGLETON)),) |
|
14 |
# Prevent duplicate targets from being created, as that can lead to build breaks |
|
15 |
# in multiprocessor systems if two or more targets try to write to .make.cache at |
|
16 |
# the same time. |
|
17 |
$(SINGLETON):=1 |
|
18 |
||
19 |
STORE_BUILD_TARGET:=$(call sanitise,TSTORE_BUILD_$(PLATFORM_PATH)_$(CFG_PATH)_$(EXTENSION_ROOT)) |
|
20 |
CACHE_FILENAME:=$(EXTENSION_ROOT)/.make.cache |
|
21 |
||
22 |
ifeq "$(CFG_PATH)" "udeb" |
|
23 |
VISUAL_CFG:=DEBUG |
|
24 |
else |
|
25 |
VISUAL_CFG:=RELEASE |
|
26 |
endif |
|
27 |
||
28 |
define qmake_store_build |
|
19
fcece45ef507
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
18
diff
changeset
|
29 |
$(ALLTARGET):: $(STORE_BUILD_TARGET) |
0 | 30 |
|
31 |
$(STORE_BUILD_TARGET): |
|
32 |
$(call startrule,qmake_store_build) \ |
|
33 |
echo "# ==============================================================================" > $(CACHE_FILENAME) && \ |
|
34 |
echo "# This file is generated by make and should not be modified by the user" >> $(CACHE_FILENAME) && \ |
|
35 |
echo "# Name : .make.cache" >> $(CACHE_FILENAME) && \ |
|
36 |
echo "# Part of : " >> $(CACHE_FILENAME) && \ |
|
37 |
echo "# Description : This file is used to cache last build target for" >> $(CACHE_FILENAME) && \ |
|
38 |
echo "# make sis target." >> $(CACHE_FILENAME) && \ |
|
39 |
echo "# Version : " >> $(CACHE_FILENAME) && \ |
|
40 |
echo "# ==============================================================================" >> $(CACHE_FILENAME) && \ |
|
41 |
echo QT_SIS_TARGET ?= $(VISUAL_CFG)-$(PLATFORM_PATH) >> $(CACHE_FILENAME) \ |
|
42 |
$(call endrule,qmake_store_build) |
|
43 |
endef |
|
44 |
||
45 |
$(eval $(qmake_store_build)) |
|
46 |
$(eval $(call GenerateStandardCleanTarget,$(CACHE_FILENAME),'')) |
|
47 |
endif |
|
48 |