translations/translations.pri
changeset 3 41300fa6a67c
parent 0 1918ee327afb
child 4 3b1da2848fc7
child 7 f7bc934e204c
equal deleted inserted replaced
2:56cd8111b7f7 3:41300fa6a67c
     6       result += $${prepend}$${a}$${append}
     6       result += $${prepend}$${a}$${append}
     7     }
     7     }
     8     return ($$result)
     8     return ($$result)
     9 }
     9 }
    10 
    10 
    11 defineReplace(fixPath) {
    11 LUPDATE = $$QT_BUILD_TREE/bin/lupdate -locations relative -no-ui-lines
    12     win32:1 ~= s|/|\\|
    12 LUPDATE ~= s,/,$$QMAKE_DIR_SEP,
    13     return ($$1)
       
    14 }
       
    15 
       
    16 LUPDATE = $$fixPath($$QT_BUILD_TREE/bin/lupdate) -locations relative -no-ui-lines
       
    17 LRELEASE = $$fixPath($$QT_BUILD_TREE/bin/lrelease)
       
    18 
    13 
    19 ###### Qt Libraries
    14 ###### Qt Libraries
    20 
    15 
    21 QT_TS        = ar da de es fr iw ja_JP pl pt ru sk sl sv uk zh_CN zh_TW
    16 QT_TS        = ar da de es fr iw ja_JP pl pt ru sk sl sv uk zh_CN zh_TW
    22 
    17 
    39                                     xml \
    34                                     xml \
    40                                     xmlpatterns \
    35                                     xmlpatterns \
    41                                 -ts $$prependAll($$QT_SOURCE_TREE/translations/qt_,$$QT_TS,.ts))
    36                                 -ts $$prependAll($$QT_SOURCE_TREE/translations/qt_,$$QT_TS,.ts))
    42 ts-qt.depends = sub-tools
    37 ts-qt.depends = sub-tools
    43 
    38 
    44 qm-qt.commands = $$LRELEASE $$prependAll($$QT_SOURCE_TREE/translations/qt_,$$QT_TS,.ts)
       
    45 qm-qt.depends = sub-tools
       
    46 
       
    47 ###### Designer
    39 ###### Designer
    48 
    40 
    49 ts-designer.commands = (cd $$QT_SOURCE_TREE/src && $$LUPDATE \
    41 ts-designer.commands = (cd $$QT_SOURCE_TREE/src && $$LUPDATE \
    50                                     ../tools/designer/translations/translations.pro)
    42                                     ../tools/designer/translations/translations.pro)
    51 ts-designer.depends = sub-tools
    43 ts-designer.depends = sub-tools
    52 
    44 
    53 qm-designer.commands = $$LRELEASE $$QT_SOURCE_TREE/tools/designer/translations/translations.pro
       
    54 qm-designer.depends = sub-tools
       
    55 
       
    56 ###### Linguist
    45 ###### Linguist
    57 
    46 
    58 ts-linguist.commands = (cd $$QT_SOURCE_TREE/src && $$LUPDATE \
    47 ts-linguist.commands = (cd $$QT_SOURCE_TREE/src && $$LUPDATE \
    59                                     ../tools/linguist/linguist/linguist.pro)
    48                                     ../tools/linguist/linguist/linguist.pro)
    60 ts-linguist.depends = sub-tools
    49 ts-linguist.depends = sub-tools
    61 
       
    62 qm-linguist.commands = $$LRELEASE $$QT_SOURCE_TREE/tools/linguist/linguist/linguist.pro
       
    63 qm-linguist.depends = sub-tools
       
    64 
    50 
    65 ###### Assistant
    51 ###### Assistant
    66 
    52 
    67 ts-assistant.commands = (cd $$QT_SOURCE_TREE/src && $$LUPDATE \
    53 ts-assistant.commands = (cd $$QT_SOURCE_TREE/src && $$LUPDATE \
    68                                     ../tools/assistant/translations/translations.pro \
    54                                     ../tools/assistant/translations/translations.pro \
    70                                     ../tools/assistant/translations/qt_help.pro \
    56                                     ../tools/assistant/translations/qt_help.pro \
    71                                     && $$LUPDATE \
    57                                     && $$LUPDATE \
    72                                     ../tools/assistant/translations/translations_adp.pro)
    58                                     ../tools/assistant/translations/translations_adp.pro)
    73 ts-assistant.depends = sub-tools
    59 ts-assistant.depends = sub-tools
    74 
    60 
    75 qm-assistant.commands = ($$LRELEASE $$QT_SOURCE_TREE/tools/assistant/translations/translations.pro \
       
    76                          && $$LRELEASE \
       
    77                             $$QT_SOURCE_TREE/tools/assistant/translations/qt_help.pro \
       
    78                          && $$LRELEASE \
       
    79                             $$QT_SOURCE_TREE/tools/assistant/translations/translations_adp.pro)
       
    80 qm-assistant.depends = sub-tools
       
    81 
       
    82 ###### Qtconfig
    61 ###### Qtconfig
    83 
    62 
    84 ts-qtconfig.commands = (cd $$QT_SOURCE_TREE/src && $$LUPDATE \
    63 ts-qtconfig.commands = (cd $$QT_SOURCE_TREE/src && $$LUPDATE \
    85                                     ../tools/qtconfig/translations/translations.pro)
    64                                     ../tools/qtconfig/translations/translations.pro)
    86 ts-qtconfig.depends = sub-tools
    65 ts-qtconfig.depends = sub-tools
    87 
       
    88 qm-qtconfig.commands = $$LRELEASE $$QT_SOURCE_TREE/tools/qtconfig/translations/translations.pro
       
    89 qm-qtconfig.depends = sub-tools
       
    90 
    66 
    91 ###### Qvfp
    67 ###### Qvfp
    92 
    68 
    93 ts-qvfb.commands = (cd $$QT_SOURCE_TREE/src && $$LUPDATE \
    69 ts-qvfb.commands = (cd $$QT_SOURCE_TREE/src && $$LUPDATE \
    94                                     ../tools/qvfb/translations/translations.pro)
    70                                     ../tools/qvfb/translations/translations.pro)
    95 ts-qvfb.depends = sub-tools
    71 ts-qvfb.depends = sub-tools
    96 
    72 
    97 qm-qvfb.commands = $$LRELEASE $$QT_SOURCE_TREE/tools/qvfb/translations/translations.pro
       
    98 qm-qvfb.depends = sub-tools
       
    99 
       
   100 ###### Overall Rules
    73 ###### Overall Rules
   101 
    74 
   102 ts.depends = ts-qt ts-designer ts-linguist ts-assistant ts-qtconfig ts-qvfb
    75 ts.depends = ts-qt ts-designer ts-linguist ts-assistant ts-qtconfig ts-qvfb
   103 qm.depends = qm-qt qm-designer qm-linguist qm-assistant qm-qtconfig qm-qvfb
       
   104 
    76 
   105 QMAKE_EXTRA_TARGETS += ts-qt ts-designer ts-linguist ts-assistant ts-qtconfig ts-qvfb \
    77 QMAKE_EXTRA_TARGETS += ts-qt ts-designer ts-linguist ts-assistant ts-qtconfig ts-qvfb \
   106                        qm-qt qm-designer qm-linguist qm-assistant qm-qtconfig qm-qvfb \
    78                        ts
   107                        ts qm