hb.pro
changeset 0 16d8024aca5e
child 1 f7ac710697a9
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/hb.pro	Mon Apr 19 14:02:13 2010 +0300
@@ -0,0 +1,89 @@
+#
+#############################################################################
+##
+## 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 = subdirs
+CONFIG += root
+
+SUBDIRS += src
+!contains(HB_NOMAKE_PARTS, tutorials):exists(tutorials) {
+    tutorials.depends = src
+    SUBDIRS += tutorials
+}
+
+feature.files += $$HB_SOURCE_DIR/hb.prf
+feature.files += $$HB_BUILD_DIR/hb_install.prf
+feature.path = $$[QMAKE_MKSPECS]/features
+INSTALLS += feature
+
+QMAKE_DISTCLEAN += $$hbNativePath($$HB_BUILD_DIR/.qmake.cache)
+QMAKE_DISTCLEAN += $$hbNativePath($$HB_BUILD_DIR/hb_install.prf)
+
+symbian {
+    exists(rom):include(rom/rom.pri)
+    install.depends += index
+    install.commands += $$QMAKE_COPY $$hbNativePath($$HB_SOURCE_DIR/hb.prf) $$hbNativePath($$[QMAKE_MKSPECS]/features)
+    install.commands += && $$QMAKE_COPY $$hbNativePath($$HB_BUILD_DIR/hb_install.prf) $$hbNativePath($$[QMAKE_MKSPECS]/features)
+    QMAKE_EXTRA_TARGETS += install
+}
+
+# indexing
+symbian {
+    THEMEINDEXER  = $$hbNativePath($$HB_SOURCE_DIR/bin/themeindexer_symbian)
+    HB_THEMES_DIR = $${EPOCROOT}epoc32/data/z/resource/hb/themes
+} else {
+    THEMEINDEXER  = $$hbNativePath($$HB_BUILD_DIR/bin/themeindexer)
+    HB_THEMES_DIR = $(HB_THEMES_DIR)/themes
+}
+isEmpty(HB_THEMES_DIR):index.commands += echo HB_THEMES_DIR environment variable not set
+else {
+    index.name = hbdefault
+    index.source = $$PWD/src/hbcore/resources/themes/icons/hbdefault
+    index.targets = $$HB_THEMES_DIR
+    symbian {
+        index.targets += $${EPOCROOT}epoc32/release/winscw/urel/z/resource/hb/themes
+        index.targets += $${EPOCROOT}epoc32/release/winscw/udeb/z/resource/hb/themes
+    }
+    for(index.target, index.targets) {
+        !isEmpty(index.commands):index.commands += &&
+        index.commands += $$THEMEINDEXER -n $$index.name -s $$index.source -t $$index.target
+    }
+}
+QMAKE_EXTRA_TARGETS += index
+INSTALLS += index
+
+!contains(HB_NOMAKE_PARTS, tests):exists(tsrc) {
+    test.depends = sub-src
+    test.commands += cd tsrc && $(MAKE) test
+    autotest.depends = sub-src
+    autotest.commands += cd tsrc && $(MAKE) autotest
+    loctest.depends = sub-src
+    loctest.commands += cd tsrc/loc && $(MAKE) loctest
+    QMAKE_EXTRA_TARGETS += test autotest loctest
+}
+
+exists(doc):include(doc/doc.pri)
+include(src/hbcommon.pri)