src/hbcore/hbcore.pro
changeset 0 16d8024aca5e
child 1 f7ac710697a9
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/hbcore/hbcore.pro	Mon Apr 19 14:02:13 2010 +0300
@@ -0,0 +1,181 @@
+#
+#############################################################################
+##
+## Copyright (C) 2008-2010 Nokia Corporation and/or its subsidiary(-ies).
+## All rights reserved.
+## Contact: Nokia Corporation (developer.feedback@nokia.com)
+##
+## This file is part of the UI Extensions for Mobile.
+##
+## GNU Lesser General Public License Usage
+## This file may be used under the terms of the GNU Lesser General Public
+## License version 2.1 as published by the Free Software Foundation and
+## appearing in the file LICENSE.LGPL included in the packaging of this file.
+## Please review the following information to ensure the GNU Lesser General
+## Public License version 2.1 requirements will be met:
+## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+##
+## In addition, as a special exception, Nokia gives you certain additional
+## rights.  These rights are described in the Nokia Qt LGPL Exception
+## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+##
+## If you have questions regarding the use of this file, please contact
+## Nokia at developer.feedback@nokia.com.
+##
+#############################################################################
+
+TEMPLATE = lib
+TARGET = $$hbLibraryTarget(HbCore)
+QT = core gui svg network xml
+DEFINES += BUILD_HB_CORE
+DEFINES += HB_BIN_DIR=\"\\\"$${HB_BIN_DIR}\\\"\"
+DEFINES += HB_PLUGINS_DIR=\"\\\"$${HB_PLUGINS_DIR}\\\"\"
+DEFINES += HB_RESOURCES_DIR=\"\\\"$${HB_RESOURCES_DIR}\\\"\"
+DEFINES += HB_BUILD_DIR=\"\\\"$${HB_BUILD_DIR}\\\"\"
+DEFINES += HB_INSTALL_DIR=\"\\\"$${HB_INSTALL_DIR}\\\"\"
+developer:DEFINES += BUILD_HB_INTERNAL
+*-maemo*:DEFINES += HB_Q_WS_MAEMO
+
+# directories
+DESTDIR = $${HB_BUILD_DIR}/lib
+win32:DLLDESTDIR = $${HB_BUILD_DIR}/bin
+
+!symbian:CONFIG += settingswindow
+settingswindow:DEFINES += HB_SETTINGS_WINDOW
+
+# NVGDECODER
+symbian:CONFIG += nvg
+
+
+# components
+include(core/core.pri)
+include(cssparser/hbcssparser.pri)
+include(decorators/decorators.pri)
+include(devicedialogbase/devicedialogbase.pri)
+effects {
+    include(effects/effects.pri)
+    include(ovgeffects/ovgeffects.pri)
+}
+include(gui/gui.pri)
+include(i18n/i18n.pri)
+include(image/image.pri)
+include(indicatorplugins/indicatorplugins.pri)
+include(inputfw/inputfw.pri)
+include(feedback/feedback.pri) 
+include(layouts/layouts.pri)
+include(primitives/primitives.pri)
+include(resources/resources.pri)
+include(style/style.pri)
+include(theme/theme.pri)
+include(utils/utils.pri)
+include(vkbhosts/vkbhosts.pri)
+include(gestures/gestures.pri)
+include(activity/activity.pri)
+
+CONVENIENCE_HEADERS += $${HB_BUILD_DIR}/include/hbcore/hbcore.h
+CONVENIENCE_HEADERS += $$files($${HB_BUILD_DIR}/include/hbcore/Hb*)
+HEADERS += $$PUBLIC_HEADERS $$INTERNAL_HEADERS $$CONVENIENCE_HEADERS
+
+# installation
+!local {
+    target.path = $${HB_LIB_DIR}
+    win32:dlltarget.path = $${HB_BIN_DIR}
+
+    pubheaders.files = $$PUBLIC_HEADERS
+    pubheaders.path = $${HB_INCLUDE_DIR}/hbcore
+
+    privheaders.files = $$INTERNAL_HEADERS
+    privheaders.path = $${HB_INCLUDE_DIR}/hbcore/private
+    convheaders.files = $$CONVENIENCE_HEADERS
+    convheaders.path = $${HB_INCLUDE_DIR}/hbcore
+
+    INSTALLS += target pubheaders privheaders convheaders
+    win32:INSTALLS += dlltarget
+}
+
+#QMAKE_DISTCLEAN += $$hbNativePath($${HB_BUILD_DIR}/include/hbcore/*)
+#QMAKE_DISTCLEAN += $$hbNativePath($${HB_BUILD_DIR}/include/hbcore/private/*)
+
+TRANSLATIONS += i18n/translations/directorylocalizer_en_GB.ts
+TRANSLATIONS += i18n/translations/directorylocalizer_de_DE.ts
+
+symbian {
+    defFilePath = ..
+    TARGET.EPOCALLOWDLLDATA = 1
+    TARGET.CAPABILITY = CAP_GENERAL_DLL
+    TARGET.UID3=0x20022EDC
+    #DEPLOYMENT_PLUGIN += qjpeg # TODO: Removed because this is already in qt.sis and that caused problems
+    DEFINES += SYMBIAN_TARGET_ICON_CACHE_SIZE # TODO: what's this? why not use Q_OS_SYMBIAN?
+
+    # Executable section is now over 4MB in Symbian. Extend it to 8MB
+    QMAKE_LFLAGS.ARMCC += --rw-base 0x800000
+
+    INCLUDEPATH += /epoc32/include/osextensions/stdapis/stlport # TODO: depends on S60 version?
+    INCLUDEPATH += /epoc32/include/hwrm # TODO: depends on S60 version?
+    nvg:DEFINES += HB_NVG_CS_ICON
+    sgimage:DEFINES += HB_SGIMAGE_ICON
+
+    nvg {
+    	include(svgext/svgext.pri)
+        LIBS += -llibOpenVG
+        LIBS += -llibOpenVGU
+        LIBS += -lsvgengine
+        LIBS += -llibegl
+    }
+    sgimage {
+	INCLUDEPATH += /epoc32/include/platform #For SGImage Support
+	 LIBS += -lsgresource #For SGImage Support
+}
+
+    # For avkon code in HbApplication event handling
+    exists(/epoc32/include/domain/middleware) {
+        INCLUDEPATH += /epoc32/include/domain/middleware
+    }
+    exists(/epoc32/include/middleware) {
+        INCLUDEPATH += /epoc32/include/middleware
+    }
+    exists(/epoc32/include/platform/mw) {
+        INCLUDEPATH += /epoc32/include/platform/mw
+    }
+    exists(/epoc32/include/mw) {
+        INCLUDEPATH += /epoc32/include/mw
+    }
+
+    hbExportHeaders(hbcore)
+
+    # HbDirectoryNameLocalizer .qm files export
+    exportqm.path = /epoc32/winscw/c/resource/hbi18n/translations
+    exportqm.sources = $$TRANSLATIONS
+    for(file, exportqm.sources) {
+        file2 = $$replace(file, .ts, .qm)
+        file3 = $${PWD}/$$file2
+        BLD_INF_RULES.prj_exports += "$$section(file3, ":", 1) $$exportqm.path/$$basename(file2)"
+    }
+
+    LIBS += -lapparc
+    LIBS += -lavkon
+    LIBS += -lbafl
+    LIBS += -lalfdecoderserverclient
+    LIBS += -lSensrvClient
+    LIBS += -lsensrvutil
+    LIBS += -lcentralrepository
+    LIBS += -lefsrv
+    LIBS += -lfbscli
+    LIBS += -lgdi
+    LIBS += -lws32
+    LIBS += -lapgrfx
+		
+    # central repository
+    BLD_INF_RULES.prj_exports += "$$section(PWD, ":", 1)/resources/centralrepository/2002C304.txt /epoc32/data/z/private/10202BE9/2002C304.txt"
+    BLD_INF_RULES.prj_exports += "$$section(PWD, ":", 1)/resources/centralrepository/2002C304.txt /epoc32/release/winscw/udeb/z/private/10202BE9/2002C304.txt"
+    BLD_INF_RULES.prj_exports += "$$section(PWD, ":", 1)/resources/centralrepository/2002C304.txt /epoc32/release/winscw/urel/z/private/10202BE9/2002C304.txt"
+    
+    BLD_INF_RULES.prj_exports += "$$section(PWD, ":", 1)/resources/centralrepository/2002C384.txt /epoc32/data/z/private/10202BE9/2002C384.txt"
+    BLD_INF_RULES.prj_exports += "$$section(PWD, ":", 1)/resources/centralrepository/2002C384.txt /epoc32/release/winscw/udeb/z/private/10202BE9/2002C384.txt"
+    BLD_INF_RULES.prj_exports += "$$section(PWD, ":", 1)/resources/centralrepository/2002C384.txt /epoc32/release/winscw/urel/z/private/10202BE9/2002C384.txt"
+    BLD_INF_RULES.prj_exports += "$$section(PWD, ":", 1)/resources/centralrepository/2002C3AE.txt /epoc32/data/z/private/10202BE9/2002C3AE.txt"
+    BLD_INF_RULES.prj_exports += "$$section(PWD, ":", 1)/resources/centralrepository/2002C3AE.txt /epoc32/release/winscw/udeb/z/private/10202BE9/2002C3AE.txt"
+    BLD_INF_RULES.prj_exports += "$$section(PWD, ":", 1)/resources/centralrepository/2002C3AE.txt /epoc32/release/winscw/urel/z/private/10202BE9/2002C3AE.txt"
+}
+
+include($${HB_SOURCE_DIR}/src/hbcommon.pri)