platformthemes.pro
changeset 1 28e8d4c0e55e
child 2 ee79fe77b3c7
equal deleted inserted replaced
0:4ee42872ac7b 1:28e8d4c0e55e
       
     1 #
       
     2 # Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies).
       
     3 # All rights reserved.
       
     4 # This component and the accompanying materials are made available
       
     5 # under the terms of "Eclipse Public License v1.0"
       
     6 # which accompanies this distribution, and is available
       
     7 # at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 #
       
     9 # Initial Contributors:
       
    10 # Nokia Corporation - initial contribution.
       
    11 #
       
    12 # Contributors:
       
    13 #
       
    14 # Description:  Project definition file for project platformthemes
       
    15 #
       
    16 
       
    17 NAME = platformthemes
       
    18 TEMPLATE = subdirs
       
    19 !symbian {
       
    20     HB_THEMES_DIR = $$(HB_THEMES_DIR)
       
    21     isEmpty(HB_THEMES_DIR) {
       
    22         win32:ENV_HELP = eg. set HB_THEMES_DIR=C:\hb\themes
       
    23         else:ENV_HELP = eg. export HB_THEMES_DIR=/usr/local/hb/themes
       
    24         error(HB_THEMES_DIR environment variable is not set. ($$ENV_HELP))
       
    25     }
       
    26 } else {
       
    27     ARGS += --symbian
       
    28     nvg:ARGS += --nvg
       
    29     no_nvg:ARGS += --no-nvg
       
    30 }
       
    31 ARGS += -v --input $$IN_PWD/src --output $$OUT_PWD/src --name $$NAME
       
    32 ARGS += --exclude \"*distribution.policy.s60\"
       
    33 !system(python $$IN_PWD/bin/sync.py $$ARGS) {
       
    34     error(*** bin/sync.py reported an error. Stop.)
       
    35 }
       
    36 
       
    37 *symbian* {
       
    38     THEMEINDEXER = bin\themeindexer_symbian.exe
       
    39 } else {
       
    40 
       
    41     win32:!win32-g++ {
       
    42         unixstyle = false
       
    43     } else:win32-g++:isEmpty(QMAKE_SH) {
       
    44         unixstyle = false
       
    45     } else {
       
    46         unixstyle = true
       
    47     }
       
    48 
       
    49     $$unixstyle {
       
    50         DEVNULL = /dev/null
       
    51     } else {
       
    52         DEVNULL = nul
       
    53     }
       
    54     THEMEINDEXER = themeindexer
       
    55     !system($$THEMEINDEXER > $$DEVNULL 2>&1) {
       
    56         error('themeindexer' must be in PATH.)
       
    57     }
       
    58 }
       
    59 
       
    60 *symbian* {
       
    61     # NOTE: temporarily disabled due to:
       
    62     #       "Qt: INTERNALL ERROR: failed to install GetMessage hook"
       
    63     # BLD_INF_RULES.prj_mmpfiles += "gnumakefile makeindex.mk"
       
    64 
       
    65     install.depends = default
       
    66     uninstall.depends = cleanexport
       
    67     QMAKE_EXTRA_TARGETS += install uninstall
       
    68 }
       
    69 index.path = .
       
    70 index.commands = $$THEMEINDEXER -f $$OUT_PWD/src/$${NAME}.txt
       
    71 QMAKE_EXTRA_TARGETS += index
       
    72 
       
    73 message(Run \'make install\')
       
    74 
       
    75 include($$OUT_PWD/src/$${NAME}.pri)
       
    76 
       
    77 # NOTE: must be after .pri include above!
       
    78 INSTALLS += index