controlpanelplugins/aboutplugin/aboutplugin.pro
author hgs
Thu, 30 Sep 2010 16:15:53 +0800
changeset 41 ab0490982943
parent 36 2fee987ebaff
permissions -rw-r--r--
201039

#
# Copyright (c) 2010 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: 
#

TEMPLATE = lib
TARGET = cpaboutplugin

LIBS += -lcpframework

symbian {
    LIBS += -lsysversioninfo \
            -lsysutil \
            -lxqutils 
}        
        
TRANSLATIONS = control_panel.ts
CONFIG += hb plugin 

include (aboutplugin.pri)
include (rom/aboutplugin_rom.pri)

CONFIG += debug_and_release 
MOC_DIR = moc
OBJECT_DIR = obj
RCC_DIR = rcc
# On win32 and mac, debug and release libraries are named differently.
# We must follow the debug and release settings Qt was compiled with:
# build debug iff Qt built debug, build release iff Qt built release.

win32|mac {
    !contains(QT_CONFIG,debug)|!contains(QT_CONFIG,release) {
        CONFIG -= debug_and_release debug release
        contains(QT_CONFIG,debug):  CONFIG+=debug
        contains(QT_CONFIG,release):CONFIG+=release
    }
}

CONFIG(debug, debug|release) {
    SUBDIRPART = debug
} else {
    SUBDIRPART = release
}

win32 { 
    DESTDIR = C:/ControlPanel/$$SUBDIRPART/bin
    OBJECTS_DIR = $$PWD/$$SUBDIRPART/tmp/$$TARGET
    # add platfrom API for windows
    INCLUDEPATH += $$PWD/../../../controlpanel_plat/inc
}

# Add the output dirs to the link path too
LIBS += -L$$DESTDIR
symbian { 
    INCLUDEPATH += $$MW_LAYER_SYSTEMINCLUDE
    INCLUDEPATH += $$MOC_DIR
    TARGET.CAPABILITY = ALL -TCB
    TARGET.EPOCALLOWDLLDATA = 1
    TARGET.UID3 = 0X2002873B
}

symbian: plugin { # copy qtstub and manifest
	
    PLUGIN_STUB_PATH = /resource/qt/plugins/controlpanel
		
    deploy.path = C:
    pluginstub.sources = $${TARGET}.dll
    pluginstub.path = $$PLUGIN_STUB_PATH
    DEPLOYMENT += pluginstub

    qtplugins.path = $$PLUGIN_STUB_PATH
    qtplugins.sources += qmakepluginstubs/$${TARGET}.qtplugin
     
    for(qtplugin, qtplugins.sources):BLD_INF_RULES.prj_exports += "./$$qtplugin  $$deploy.path$$qtplugins.path/$$basename(qtplugin)" 
}
symbian:MMP_RULES += SMPSAFE
# End of file   --Don't remove this.