0
|
1 |
#
|
|
2 |
# Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
# All rights reserved.
|
|
4 |
# This component and the accompanying materials are made available
|
|
5 |
# under the terms of the License "Symbian Foundation License v1.0"
|
|
6 |
# which accompanies this distribution, and is available
|
|
7 |
# at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
|
|
8 |
#
|
|
9 |
# Initial Contributors:
|
|
10 |
# Nokia Corporation - initial contribution.
|
|
11 |
#
|
|
12 |
# Contributors:
|
|
13 |
#
|
|
14 |
# Description:
|
|
15 |
#
|
|
16 |
|
|
17 |
# All paths used in this file end with the path delimiter '/'
|
|
18 |
|
|
19 |
include $(EPOCROOT)epoc32/tools/shell/$(notdir $(basename $(SHELL))).mk
|
|
20 |
|
|
21 |
COPY := $(call ecopy)
|
|
22 |
|
|
23 |
EPOC_ROOT := $(subst \,/,$(EPOCROOT))
|
|
24 |
QT_ROOT := $(subst group,,$(subst \,/,$(EXTENSION_ROOT)))
|
|
25 |
INSTALLPATH := epoc32/tools/qt/
|
|
26 |
|
|
27 |
# Determine which platform we are building on
|
|
28 |
ifeq ($(OSTYPE),unix)
|
|
29 |
CONF_PLATFORM := linux-g++-32
|
|
30 |
DOTEXE :=
|
|
31 |
else
|
|
32 |
CONF_PLATFORM := win32-g++-symbian
|
|
33 |
DOTEXE := .exe
|
|
34 |
endif
|
|
35 |
|
|
36 |
# This variable is needed to do the 'cd' on Windows
|
|
37 |
CONFIGURE_ROOT := $(subst group,,$(EXTENSION_ROOT))
|
|
38 |
|
|
39 |
TARGETDIR := $(EPOC_ROOT)$(INSTALLPATH)
|
|
40 |
SOURCEDIR := $(QT_ROOT)bin/
|
|
41 |
TARGET_TOOLS := $(TARGETDIR)qmake$(DOTEXE) $(TARGETDIR)moc$(DOTEXE) $(TARGETDIR)rcc$(DOTEXE) $(TARGETDIR)uic$(DOTEXE)
|
|
42 |
SOURCE_TOOLS := $(SOURCEDIR)qmake$(DOTEXE) $(SOURCEDIR)moc$(DOTEXE) $(SOURCEDIR)rcc$(DOTEXE) $(SOURCEDIR)uic$(DOTEXE)
|
|
43 |
|
|
44 |
XPLATFORM:=symbian-abld
|
|
45 |
|
|
46 |
$(TARGETDIR):
|
|
47 |
$(call makepath,$(TARGETDIR))
|
|
48 |
|
|
49 |
$(SOURCEDIR)qmake$(DOTEXE): $(QT_ROOT)configure$(DOTEXE)
|
|
50 |
echo Configuring Qt for build on $(CONF_PLATFORM) with $(XPLATFORM) as build setup
|
|
51 |
cd $(CONFIGURE_ROOT) && $(QT_ROOT)configure$(DOTEXE) -platform $(CONF_PLATFORM) -xplatform $(XPLATFORM) $(OPTIONS)
|
|
52 |
$(COPY) $(QT_ROOT).qmake.cache $(EPOC_ROOT)$(INSTALLPATH)qmake.cache
|
|
53 |
$(COPY) $(EPOC_ROOT)epoc32/gcc_mingw/bin/mingwm10.dll $(EPOC_ROOT)$(INSTALLPATH)mingwm10.dll
|
|
54 |
$(COPY) $(EPOC_ROOT)epoc32/gcc_mingw/bin/mingwm10.dll $(QT_ROOT)bin/mingwm10.dll
|
|
55 |
|
|
56 |
$(TARGET_TOOLS): $(SOURCE_TOOLS)
|
|
57 |
$(COPY) $(SOURCEDIR)$(notdir $@) $@
|
|
58 |
|
|
59 |
do_nothing:
|
|
60 |
|
|
61 |
MAKMAKE : do_nothing
|
|
62 |
|
|
63 |
BLD : $(TARGETDIR) $(TARGET_TOOLS)
|
|
64 |
|
|
65 |
FINAL : do_nothing
|
|
66 |
|
|
67 |
CLEAN :
|
|
68 |
perl $(EPOCROOT)epoc32/tools/ermdir.pl $(TARGETDIR)
|
|
69 |
perl -e "foreach(split(/ /, \"$(SOURCE_TOOLS)\")) {unlink \"$$_\";}"
|
|
70 |
|
|
71 |
RELEASABLES : do_nothing
|
|
72 |
|
|
73 |
SAVESPACE : BLD
|
|
74 |
|
|
75 |
FREEZE : do_nothing
|
|
76 |
|
|
77 |
LIB : do_nothing
|
|
78 |
|
|
79 |
CLEANLIB : do_nothing
|
|
80 |
|
|
81 |
RESOURCE : do_nothing
|
|
82 |
|
|
83 |
|
|
84 |
|