phoneplugins/infowidgetplugin/infowidgetplugin.pri
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Wed, 23 Jun 2010 18:12:20 +0300
changeset 45 6b911d05207e
child 46 bc5a64e5bc3c
permissions -rw-r--r--
Revision: 201023 Kit: 2010125

#
# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
# All rights reserved.
# This component and the accompanying materials are made available
# under the terms of "Eclipse Public License v1.0"
# which accompanies this distribution, and is available
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
#
# Initial Contributors:
# Nokia Corporation - initial contribution.
#
# Contributors:
#
# Description:
#
#

HEADERS += ./inc/infowidgetplugin.h \
           ./inc/infowidgetlogging.h \
           ./infowidget/inc/infowidget.h \
           ./infowidget/inc/infowidgetlayoutmanager.h \
           ./infowidget/inc/infowidgetpreferences.h \
           ./infowidget/inc/infowidgetengine.h \
           ./infowidget/inc/infowidgetsathandlerprivate.h

symbian: {
    HEADERS += ./infowidget/inc/infowidgetnetworkhandler.h \
               ./infowidget/inc/infowidgetsathandler.h \
               ./infowidget/inc/infowidgetlinehandler.h
}
SOURCES += infowidget/src/infowidgetsathandlerprivate.cpp \
    ./src/infowidgetplugin.cpp \
    ./infowidget/src/infowidget.cpp \
    ./infowidget/src/infowidgetlayoutmanager.cpp \
    ./infowidget/src/infowidgetengine.cpp
    
symbian: {
    SOURCES += ./infowidget/src/infowidgetpreferences.cpp \
               ./infowidget/src/infowidgetnetworkhandler.cpp \
               ./infowidget/src/infowidgetsathandler.cpp \
               ./infowidget/src/infowidgetlinehandler.cpp 
} else: { 
    SOURCES += ./infowidget/src/infowidgetengine_s.cpp \
               ./infowidget/src/infowidgetpreferences_s.cpp
}

defineTest(exportResources) {
    symbian {
        for(subdirs, 1) {
            entries = $$files($$subdirs)
            for(entry, entries) : BLD_INF_RULES.prj_exports += "./$$entry z:/$$replace(2, ^/,)/$$basename(entry)"
        }
        export ( BLD_INF_RULES.prj_exports)
    }
}

symbian: plugin { # copy qtstub and manifest

    pluginstub.sources = $${TARGET}.dll
    pluginstub.path = $$PLUGIN_SUBDIR

    DEPLOYMENT += pluginstub

    qtplugins.path = $$PLUGIN_SUBDIR
    qtplugins.sources += qmakepluginstubs/$${TARGET}.qtplugin
    contains(MOBILITY, serviceframework):BLD_INF_RULES.prj_exports += "resource/$${TARGET}.xml z:$$qtplugins.path/$${TARGET}.xml"
    
    for(qtplugin, qtplugins.sources):BLD_INF_RULES.prj_exports += "./$$qtplugin z:$$qtplugins.path/$$basename(qtplugin)"
}