0
|
1 |
# /****************************************************************************
|
|
2 |
# **
|
|
3 |
# ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
4 |
# ** Contact:
|
|
5 |
# **
|
|
6 |
# ****************************************************************************/
|
|
7 |
|
|
8 |
# FLM to build Qt tools.
|
|
9 |
|
|
10 |
TARGETDIR:=$(EPOCROOT)/$(INSTALLPATH)
|
|
11 |
SOURCEDIR:=$(EXTENSION_ROOT)/$(QT_ROOT)/bin
|
|
12 |
|
|
13 |
$(call makepath,$(TARGETDIR))
|
|
14 |
|
|
15 |
ifeq ($(OSTYPE),unix)
|
|
16 |
PLATFORM:=$(PLATFORM.LINUX)
|
|
17 |
else
|
|
18 |
PLATFORM:=$(PLATFORM.WIN32)
|
|
19 |
endif
|
|
20 |
|
|
21 |
TARGET_TOOLS:=$(TARGETDIR)/qmake$(DOTEXE) $(TARGETDIR)/moc$(DOTEXE) $(TARGETDIR)/rcc$(DOTEXE) $(TARGETDIR)/uic$(DOTEXE)
|
|
22 |
TARGET_LIB:=$(TARGETDIR)/mingwm10.dll
|
|
23 |
SOURCE_TOOLS:=$(SOURCEDIR)/qmake$(DOTEXE) $(SOURCEDIR)/moc$(DOTEXE) $(SOURCEDIR)/rcc$(DOTEXE) $(SOURCEDIR)/uic$(DOTEXE)
|
|
24 |
|
|
25 |
define QtConfiguration
|
|
26 |
$(TARGET_LIB): $(SOURCEDIR)/qmake$(DOTEXE)
|
|
27 |
$(call startrule,mingw_deploy) \
|
|
28 |
$(GNUCP) $(EPOCROOT)/epoc32/gcc_mingw/bin/mingwm10.dll $$@ ; \
|
|
29 |
$(GNUCP) $(EPOCROOT)/epoc32/gcc_mingw/bin/mingwm10.dll $(SOURCEDIR) \
|
|
30 |
$(call endrule,mingw_deploy)
|
|
31 |
|
|
32 |
$(TARGET_TOOLS): $(SOURCEDIR)/qmake$(DOTEXE)
|
|
33 |
$(call startrule,qtconf_deploy) \
|
|
34 |
$(GNUCP) $(SOURCEDIR)/$$(notdir $$@) $$@ \
|
|
35 |
$(call endrule,qtconf_deploy)
|
|
36 |
|
|
37 |
$(SOURCEDIR)/qmake$(DOTEXE): $(EXTENSION_ROOT)/$(QT_ROOT)/configure$(DOTEXE)
|
|
38 |
$(call startrule,qtconf) \
|
|
39 |
cd $(EXTENSION_ROOT)/$(QT_ROOT) && \
|
|
40 |
$(EXTENSION_ROOT)/$(QT_ROOT)/configure$(DOTEXE) -platform $(PLATFORM) -xplatform $(XPLATFORM) $(OPTIONS) \
|
|
41 |
$(call endrule,qtconf)
|
|
42 |
endef
|
|
43 |
|
|
44 |
# Here a variable named "done_<sanitised $SISFILE>" gets created
|
|
45 |
GUARD:=done_$(call sanitise,$(TARGETDIR)/qmake$(DOTEXE))
|
|
46 |
# If variable "done_..." not set, set it to 1, so that
|
|
47 |
# UREL and UDEB do not execute makesis twice on the same target
|
|
48 |
ifeq ($($(GUARD)),)
|
|
49 |
$(GUARD):=1
|
|
50 |
ALL:: $(TARGET_TOOLS) $(TARGET_LIB)
|
|
51 |
$(eval $(call QtConfiguration))
|
|
52 |
$(eval $(call whatmacro,$(TARGET_TOOLS)))
|
|
53 |
$(eval $(call GenerateStandardCleanTarget,$(TARGET_TOOLS) $(SOURCE_TOOLS),$(TARGETDIR)))
|
|
54 |
endif
|