5 # ** |
5 # ** |
6 # ****************************************************************************/ |
6 # ****************************************************************************/ |
7 |
7 |
8 # FLM to build Qt tools. |
8 # FLM to build Qt tools. |
9 |
9 |
10 QT_ROOT=../../.. |
10 QT_ROOT:=../../.. |
11 TARGETDIR:=$(EPOCROOT)/$(INSTALLPATH) |
11 TARGETDIR:=$(EPOCROOT)/$(INSTALLPATH) |
12 SOURCEDIR:=$(EXTENSION_ROOT)/$(QT_ROOT)/bin |
12 SOURCEDIR:=$(EXTENSION_ROOT)/$(QT_ROOT)/bin |
13 TOOLSSRCDIR:=$(EXTENSION_ROOT)/$(QT_ROOT)/src/tools |
13 TOOLSSRCDIR:=$(EXTENSION_ROOT)/$(QT_ROOT)/src/tools |
14 CONFIGURE_APP=configure$(DOTEXE) |
14 LANGUAGETOOLSDIR:=$(EXTENSION_ROOT)/$(QT_ROOT)/tools/linguist |
|
15 CONFIGURE_APP:=configure$(DOTEXE) |
15 |
16 |
16 $(call makepath,$(TARGETDIR)) |
17 $(call makepath,$(TARGETDIR)) |
17 |
18 |
18 ifeq ($(OSTYPE),unix) |
19 ifeq ($(OSTYPE),unix) |
19 PLATFORM:=$(PLATFORM.LINUX) |
20 PLATFORM:=$(PLATFORM.LINUX) |
20 ifeq ($(XPLATFORM), symbian-sbsv2) |
21 ifeq ($(XPLATFORM), symbian-sbsv2) |
21 CONFIGURE_APP=configure_symbian |
22 CONFIGURE_APP:=configure_symbian |
22 endif |
23 endif |
23 else |
24 else |
24 PLATFORM:=$(PLATFORM.WIN32) |
25 PLATFORM:=$(PLATFORM.WIN32) |
25 endif |
26 endif |
26 |
27 |
27 TARGET_TOOLS:=$(TARGETDIR)/qmake$(DOTEXE) $(TARGETDIR)/moc$(DOTEXE) $(TARGETDIR)/rcc$(DOTEXE) $(TARGETDIR)/uic$(DOTEXE) |
28 TARGET_TOOLS:=$(TARGETDIR)/qmake$(DOTEXE) $(TARGETDIR)/moc$(DOTEXE) $(TARGETDIR)/rcc$(DOTEXE) $(TARGETDIR)/uic$(DOTEXE) $(TARGETDIR)/lrelease$(DOTEXE) |
28 QT_TOOLS:= $(TOOLSSRCDIR)/uic $(TOOLSSRCDIR)/moc $(TOOLSSRCDIR)/rcc |
29 QT_TOOLS:= $(TOOLSSRCDIR)/uic $(TOOLSSRCDIR)/moc $(TOOLSSRCDIR)/rcc $(LANGUAGETOOLSDIR)/lrelease |
29 TARGET_LIB:=$(TARGETDIR)/mingwm10.dll |
30 SOURCE_TOOLS:=$(SOURCEDIR)/qmake$(DOTEXE) $(SOURCEDIR)/moc$(DOTEXE) $(SOURCEDIR)/rcc$(DOTEXE) $(SOURCEDIR)/uic$(DOTEXE) $(SOURCEDIR)/lrelease$(DOTEXE) |
30 SOURCE_TOOLS:=$(SOURCEDIR)/qmake$(DOTEXE) $(SOURCEDIR)/moc$(DOTEXE) $(SOURCEDIR)/rcc$(DOTEXE) $(SOURCEDIR)/uic$(DOTEXE) |
|
31 |
31 |
32 define QtConfiguration |
32 define QtConfiguration |
33 $(TARGET_LIB): $(SOURCEDIR)/qmake$(DOTEXE) |
|
34 $(call startrule,mingw_deploy) \ |
|
35 $(GNUCP) $(EPOCROOT)/epoc32/gcc_mingw/bin/mingwm10.dll $$@ ; \ |
|
36 $(GNUCP) $(EPOCROOT)/epoc32/gcc_mingw/bin/mingwm10.dll $(SOURCEDIR) \ |
|
37 $(call endrule,mingw_deploy) |
|
38 |
|
39 ifeq ($(OSTYPE),unix) |
33 ifeq ($(OSTYPE),unix) |
40 $(TARGET_TOOLS): $(QT_TOOLS) |
34 $(TARGET_TOOLS): $(QT_TOOLS) |
41 else |
35 else |
42 $(TARGET_TOOLS): $(SOURCEDIR)/qmake$(DOTEXE) |
36 $(TARGET_TOOLS): $(SOURCEDIR)/qmake$(DOTEXE) |
43 endif |
37 endif |
62 endif |
56 endif |
63 |
57 |
64 |
58 |
65 $(SOURCEDIR)/qmake$(DOTEXE): $(EXTENSION_ROOT)/$(QT_ROOT)/$(CONFIGURE_APP) |
59 $(SOURCEDIR)/qmake$(DOTEXE): $(EXTENSION_ROOT)/$(QT_ROOT)/$(CONFIGURE_APP) |
66 $(call startrule,qtconf) \ |
60 $(call startrule,qtconf) \ |
67 cd $(EXTENSION_ROOT)/$(QT_ROOT) && \ |
61 cd $(EXTENSION_ROOT)/$(QT_ROOT) && unset INCLUDE && unset LIB && $(EXTENSION_ROOT)/$(QT_ROOT)/$(CONFIGURE_APP) -platform $(PLATFORM) -xplatform $(XPLATFORM) $(OPTIONS) \ |
68 $(EXTENSION_ROOT)/$(QT_ROOT)/$(CONFIGURE_APP) -platform $(PLATFORM) -xplatform $(XPLATFORM) $(OPTIONS) \ |
|
69 $(call endrule,qtconf) |
62 $(call endrule,qtconf) |
|
63 $(call startrule,syncqt) \ |
|
64 cd $(EXTENSION_ROOT)/$(QT_ROOT)/bin/ && \ |
|
65 perl syncqt -base-dir $(EXTENSION_ROOT)/$(QT_ROOT) -copy -oneway -outdir $(EPOCROOT)/epoc32/include/ -outsubdir mw |
|
66 $(call endrule,syncqt) |
|
67 $(call startrule,mkspecexport) \ |
|
68 $(GNUCP) -R $(EXTENSION_ROOT)/$(QT_ROOT)/mkspecs $(TARGETDIR) |
|
69 $(call endrule,mkspecexport) |
70 endef |
70 endef |
71 |
71 |
72 # Here a variable named "done_<sanitised $SISFILE>" gets created |
72 # Here a variable named "done_<sanitised $SISFILE>" gets created |
73 GUARD:=done_$(call sanitise,$(TARGETDIR)/qmake$(DOTEXE)) |
73 GUARD:=done_$(call sanitise,$(TARGETDIR)/qmake$(DOTEXE)) |
74 # If variable "done_..." not set, set it to 1, so that |
74 # If variable "done_..." not set, set it to 1, so that |
75 # UREL and UDEB do not execute makesis twice on the same target |
75 # UREL and UDEB do not execute makesis twice on the same target |
76 ifeq ($($(GUARD)),) |
76 ifeq ($($(GUARD)),) |
77 $(GUARD):=1 |
77 $(GUARD):=1 |
78 ifeq ($(OSTYPE),unix) |
78 ifeq ($(OSTYPE),unix) |
79 ALL:: $(QT_TOOLS) $(TARGET_TOOLS) $(TARGET_LIB) |
79 ALL:: $(QT_TOOLS) $(TARGET_TOOLS) |
80 else |
80 else |
81 ALL:: $(TARGET_TOOLS) $(TARGET_LIB) |
81 ALL:: $(TARGET_TOOLS) |
82 endif |
82 endif |
83 $(eval $(call QtConfiguration)) |
83 $(eval $(call QtConfiguration)) |
84 $(eval $(call whatmacro,$(TARGET_TOOLS))) |
84 $(eval $(call whatmacro,$(TARGET_TOOLS))) |
85 ifeq ($(OSTYPE),unix) |
85 ifeq ($(OSTYPE),unix) |
86 $(eval $(call GenerateStandardCleanTarget,$(QT_TOOLS) $(TARGET_TOOLS) $(SOURCE_TOOLS),$(TARGETDIR))) |
86 $(eval $(call GenerateStandardCleanTarget,$(QT_TOOLS) $(TARGET_TOOLS) $(SOURCE_TOOLS),$(TARGETDIR))) |