platformthemes.pro
changeset 6 22214389caed
parent 3 8907a5743531
child 8 02a1dd166f2b
equal deleted inserted replaced
4:0765d19355bd 6:22214389caed
     1 #
     1 #
     2 # Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 # ============================================================================
     3 # All rights reserved.
     3 #  Name        : platformthemes.pro
     4 # This component and the accompanying materials are made available
     4 #  Part of     : platformthemes
     5 # under the terms of "Eclipse Public License v1.0"
     5 #  Description : Project definition file for project platformthemes
     6 # which accompanies this distribution, and is available
     6 #  Version     : %version: %
     7 # at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 #
     7 #
     9 # Initial Contributors:
     8 #  Copyright (c) 2008-2010 Nokia.  All rights reserved.
    10 # Nokia Corporation - initial contribution.
     9 #  This material, including documentation and any related computer
    11 #
    10 #  programs, is protected by copyright controlled by Nokia.  All
    12 # Contributors:
    11 #  rights are reserved.  Copying, including reproducing, storing,
    13 #
    12 #  adapting or translating, any or all of this material requires the
    14 # Description:  Project definition file for project platformthemes
    13 #  prior written consent of Nokia.  This material also contains
       
    14 #  confidential information which may not be disclosed to others
       
    15 #  without the prior written consent of Nokia.
       
    16 # ============================================================================
    15 #
    17 #
    16 
    18 
    17 NAME = platformthemes
    19 NAME = platformthemes
    18 TEMPLATE = subdirs
    20 TEMPLATE = subdirs
    19 !symbian {
    21 !symbian {
    28     nvg:ARGS += --nvg
    30     nvg:ARGS += --nvg
    29     no_nvg:ARGS += --no-nvg
    31     no_nvg:ARGS += --no-nvg
    30 }
    32 }
    31 ARGS += -v --input $$IN_PWD/src --output $$OUT_PWD/src --name $$NAME
    33 ARGS += -v --input $$IN_PWD/src --output $$OUT_PWD/src --name $$NAME
    32 ARGS += --exclude \"*distribution.policy.s60\"
    34 ARGS += --exclude \"*distribution.policy.s60\"
       
    35 ARGS += --exclude \"*.orig\"
    33 !system(python $$IN_PWD/bin/sync.py $$ARGS) {
    36 !system(python $$IN_PWD/bin/sync.py $$ARGS) {
    34     error(*** bin/sync.py reported an error. Stop.)
    37     error(*** bin/sync.py reported an error. Stop.)
    35 }
    38 }
    36 
    39 
    37 *symbian* {
    40 THEMEINDEXER = hbthemeindexer
    38     THEMEINDEXER = bin\hbthemeindexer_symbian.exe
    41 !symbian {
    39 } else {
       
    40 
       
    41     win32:!win32-g++ {
    42     win32:!win32-g++ {
    42         unixstyle = false
    43         unixstyle = false
    43     } else:win32-g++:isEmpty(QMAKE_SH) {
    44     } else:win32-g++:isEmpty(QMAKE_SH) {
       
    45         unixstyle = false
       
    46     } else:symbian {
    44         unixstyle = false
    47         unixstyle = false
    45     } else {
    48     } else {
    46         unixstyle = true
    49         unixstyle = true
    47     }
    50     }
    48 
    51 
    49     $$unixstyle {
    52     $$unixstyle {
    50         DEVNULL = /dev/null
    53         DEVNULL = /dev/null
    51     } else {
    54     } else {
    52         DEVNULL = nul
    55         DEVNULL = nul
    53     }
    56     }
    54     THEMEINDEXER = hbthemeindexer
    57 
    55     !system($$THEMEINDEXER > $$DEVNULL 2>&1) {
    58     !system($$THEMEINDEXER > $$DEVNULL 2>&1) {
    56         error('hbthemeindexer' must be in PATH.)
    59         error('hbthemeindexer' must be in PATH.)
    57     }
    60     }
    58 }
    61 }
    59 
    62 
    62 
    65 
    63     install.depends = default
    66     install.depends = default
    64     uninstall.depends = cleanexport
    67     uninstall.depends = cleanexport
    65     QMAKE_EXTRA_TARGETS += install uninstall
    68     QMAKE_EXTRA_TARGETS += install uninstall
    66 
    69 
    67     # central repository
    70     # central repository - exporting removed from platformthemes
    68     BLD_INF_RULES.prj_exports += "$$section(PWD, ":", 1)/centralrepository/20022E82.txt $${EPOCROOT}epoc32/data/z/private/10202BE9/20022E82.txt"
    71 #    BLD_INF_RULES.prj_exports += "$$section(PWD, ":", 1)/centralrepository/20022E82.txt $${EPOCROOT}epoc32/data/z/private/10202BE9/20022E82.txt"
    69     BLD_INF_RULES.prj_exports += "$$section(PWD, ":", 1)/centralrepository/20022E82.txt $${EPOCROOT}epoc32/release/winscw/udeb/z/private/10202BE9/20022E82.txt"
    72 #    BLD_INF_RULES.prj_exports += "$$section(PWD, ":", 1)/centralrepository/20022E82.txt $${EPOCROOT}epoc32/release/winscw/udeb/z/private/10202BE9/20022E82.txt"
    70     BLD_INF_RULES.prj_exports += "$$section(PWD, ":", 1)/centralrepository/20022E82.txt $${EPOCROOT}epoc32/release/winscw/urel/z/private/10202BE9/20022E82.txt"
    73 #    BLD_INF_RULES.prj_exports += "$$section(PWD, ":", 1)/centralrepository/20022E82.txt $${EPOCROOT}epoc32/release/winscw/urel/z/private/10202BE9/20022E82.txt"
    71 }
    74 }
    72 index.path = .
    75 index.path = .
    73 index.commands = $$THEMEINDEXER -f $$OUT_PWD/src/$${NAME}.txt
    76 index.commands = $$THEMEINDEXER -f $$OUT_PWD/src/$${NAME}.txt
    74 QMAKE_EXTRA_TARGETS += index
    77 QMAKE_EXTRA_TARGETS += index
    75 
    78