src/s60installs/deviceconfiguration/qtconfig.mk
branchRCL_3
changeset 5 d3bac044e0f0
child 6 dee5afe5301f
equal deleted inserted replaced
4:3b1da2848fc7 5:d3bac044e0f0
       
     1 #
       
     2 # Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
       
     3 # All rights reserved.
       
     4 #
       
     5 # Description:  
       
     6 #
       
     7 
       
     8 # All paths used in this file end with the path delimiter '/'
       
     9 
       
    10 include $(EPOCROOT)epoc32/tools/shell/$(notdir $(basename $(SHELL))).mk
       
    11 
       
    12 COPY := $(call ecopy)
       
    13 
       
    14 EPOC_ROOT := $(subst \,/,$(EPOCROOT))
       
    15 QT_ROOT := $(subst src/s60installs/deviceconfiguration,,$(subst \,/,$(EXTENSION_ROOT)))
       
    16 INSTALLPATH := epoc32/tools/qt/
       
    17 
       
    18 # Determine which platform we are building on
       
    19 ifeq ($(OSTYPE),unix)
       
    20 CONF_PLATFORM := linux-g++-32
       
    21 DOTEXE :=
       
    22 else
       
    23 CONF_PLATFORM := win32-g++-symbian
       
    24 DOTEXE := .exe
       
    25 endif
       
    26 
       
    27 # This variable is needed to do the 'cd' on Windows
       
    28 CONFIGURE_ROOT := $(subst src\s60installs\deviceconfiguration,,$(EXTENSION_ROOT))
       
    29 
       
    30 
       
    31 TARGETDIR := $(EPOC_ROOT)$(INSTALLPATH)
       
    32 SOURCEDIR := $(QT_ROOT)bin/
       
    33 TARGET_TOOLS := $(TARGETDIR)qmake$(DOTEXE) $(TARGETDIR)moc$(DOTEXE) $(TARGETDIR)rcc$(DOTEXE) $(TARGETDIR)uic$(DOTEXE)
       
    34 SOURCE_TOOLS := $(SOURCEDIR)qmake$(DOTEXE) $(SOURCEDIR)moc$(DOTEXE) $(SOURCEDIR)rcc$(DOTEXE) $(SOURCEDIR)uic$(DOTEXE)
       
    35 
       
    36 XPLATFORM:=symbian-abld
       
    37 
       
    38 $(TARGETDIR):
       
    39 	$(call makepath,$(TARGETDIR))
       
    40 
       
    41 $(SOURCEDIR)qmake$(DOTEXE): $(QT_ROOT)configure$(DOTEXE)
       
    42 	echo Configuring Qt for build on $(CONF_PLATFORM) with $(XPLATFORM) as build setup
       
    43 	cd $(CONFIGURE_ROOT) && $(QT_ROOT)configure$(DOTEXE) -platform $(CONF_PLATFORM) -xplatform $(XPLATFORM) $(OPTIONS)
       
    44 	$(COPY) $(QT_ROOT).qmake.cache $(EPOC_ROOT)$(INSTALLPATH)qmake.cache
       
    45 	$(COPY) $(EPOC_ROOT)epoc32/gcc_mingw/bin/mingwm10.dll $(EPOC_ROOT)$(INSTALLPATH)mingwm10.dll
       
    46 	$(COPY) $(EPOC_ROOT)epoc32/gcc_mingw/bin/mingwm10.dll $(QT_ROOT)bin/mingwm10.dll
       
    47 	
       
    48 $(TARGET_TOOLS): $(SOURCE_TOOLS)
       
    49 	$(COPY) $(SOURCEDIR)$(notdir $@) $@
       
    50 	
       
    51 do_nothing:
       
    52 	
       
    53 MAKMAKE : do_nothing
       
    54 
       
    55 BLD : $(TARGETDIR) $(TARGET_TOOLS)
       
    56 
       
    57 FINAL : do_nothing
       
    58 
       
    59 CLEAN :
       
    60 	perl $(EPOCROOT)epoc32/tools/ermdir.pl $(TARGETDIR)
       
    61 	perl -e "foreach(split(/ /, \"$(SOURCE_TOOLS)\")) {unlink \"$$_\";}"
       
    62 
       
    63 RELEASABLES :  do_nothing 
       
    64 
       
    65 SAVESPACE : BLD
       
    66 
       
    67 FREEZE : do_nothing
       
    68 
       
    69 LIB : do_nothing
       
    70 
       
    71 CLEANLIB : do_nothing
       
    72 
       
    73 RESOURCE : do_nothing
       
    74 
       
    75 
       
    76