49 BLD_INF_RULES.prj_exports += "hb_install.prf $$HB_SYMBIAN_PRF_EXPORT_DIR/hb_install.prf" |
49 BLD_INF_RULES.prj_exports += "hb_install.prf $$HB_SYMBIAN_PRF_EXPORT_DIR/hb_install.prf" |
50 BLD_INF_RULES.prj_exports += "mkspecs/hb_functions.prf $$HB_SYMBIAN_PRF_EXPORT_DIR/hb_functions.prf" |
50 BLD_INF_RULES.prj_exports += "mkspecs/hb_functions.prf $$HB_SYMBIAN_PRF_EXPORT_DIR/hb_functions.prf" |
51 BLD_INF_RULES.prj_exports += "mkspecs/docml2bin.prf $$HB_SYMBIAN_PRF_EXPORT_DIR/docml2bin.prf" |
51 BLD_INF_RULES.prj_exports += "mkspecs/docml2bin.prf $$HB_SYMBIAN_PRF_EXPORT_DIR/docml2bin.prf" |
52 |
52 |
53 host_tools { |
53 host_tools { |
54 exists($${HB_BUILD_DIR}/bin/docml2bin) { |
54 hbToolExport("$${HB_BUILD_DIR}/bin/docml2bin", "$${HB_BIN_DIR}/docml2bin") |
55 hbPrjExport("$${HB_BUILD_DIR}/bin/docml2bin", "$${HB_BIN_DIR}/docml2bin") |
55 hbToolExport("$${HB_BUILD_DIR}/bin/hbbincssmaker", "$${HB_BIN_DIR}/hbbincssmaker") |
56 } |
56 hbToolExport("$${HB_BUILD_DIR}/bin/hbthemeindexer", "$${HB_BIN_DIR}/hbthemeindexer") |
57 exists($${HB_BUILD_DIR}/bin/docml2bin.exe) { |
|
58 hbPrjExport("$${HB_BUILD_DIR}/bin/docml2bin.exe", "$${HB_BIN_DIR}/docml2bin.exe") |
|
59 } |
|
60 } |
57 } |
61 } |
58 } |
62 |
59 |
63 QMAKE_DISTCLEAN += $$hbNativePath($$HB_BUILD_DIR/.qmake.cache) |
60 QMAKE_DISTCLEAN += $$hbNativePath($$HB_BUILD_DIR/.qmake.cache) |
64 QMAKE_DISTCLEAN += $$hbNativePath($$HB_BUILD_DIR/hb_install.prf) |
61 QMAKE_DISTCLEAN += $$hbNativePath($$HB_BUILD_DIR/hb_install.prf) |
95 } |
92 } |
96 |
93 |
97 !symbian { |
94 !symbian { |
98 LRELEASE = $$hbNativePath($$[QT_INSTALL_BINS]/lrelease) |
95 LRELEASE = $$hbNativePath($$[QT_INSTALL_BINS]/lrelease) |
99 COMMON_EXTENSIONS = ar eu bg ca hr cs da nl en_US et fi fr fr_CA gl de el he hi zh_HK hu is id it ja ko lv lt ms nb pl pt pt_BR zh ro ru sr sk sl es es_419 sv tl zh_TW th tr uk ur vi |
96 COMMON_EXTENSIONS = ar eu bg ca hr cs da nl en_US et fi fr fr_CA gl de el he hi zh_HK hu is id it ja ko lv lt ms nb pl pt pt_BR zh ro ru sr sk sl es es_419 sv tl zh_TW th tr uk ur vi |
100 translations.input = $$HB_SOURCE_DIR/src/hbcore/i18n/translations/commonstrings |
97 translations.input = $$HB_SOURCE_DIR/src/hbcore/i18n/translations |
101 translations.path = $${HB_TRANSLATIONS_DIR} |
98 translations.path = $${HB_TRANSLATIONS_DIR} |
102 |
99 |
103 translations.commands = $$LRELEASE -silent -idbased $$translations.input/commonstrings_en.ts -qm $$translations.path/commonstrings_en.qm |
100 pre_translations.commands = $$hbCreateDir($${HB_TRANSLATIONS_DIR}) |
104 # for(ext, COMMON_EXTENSIONS) { |
101 translations.depends += pre_translations |
105 # file = commonstrings_$$ext |
102 translations.commands = $$LRELEASE -silent -idbased $$translations.input/commonstrings/commonstrings_en.ts -qm $$translations.path/commonstrings_en.qm |
106 # eval(trans_$${ext}.commands += $$LRELEASE -silent -idbased $$translations.input/$${file}.ts -qm $$translations.path/$${file}.qm) |
103 translations.commands += && $$LRELEASE -silent -idbased $$translations.input/directorynamelocalizer/directorynamelocalizer_en.ts -qm $$translations.path/directorynamelocalizer_en.qm |
107 # QMAKE_EXTRA_TARGETS += trans_$${ext} |
104 for(ext, COMMON_EXTENSIONS) { |
108 # eval(translations.depends += trans_$${ext}) |
105 file1 = commonstrings_$$ext |
109 # } |
106 file2 = directorynamelocalizer_$$ext |
|
107 commands = trans_$${ext}.commands |
|
108 $$commands += $$LRELEASE -silent -idbased $$translations.input/commonstrings/$${file1}.ts -qm $$translations.path/$${file1}.qm |
|
109 $$commands += && $$LRELEASE -silent -idbased $$translations.input/directorynamelocalizer/$${file2}.ts -qm $$translations.path/$${file2}.qm |
|
110 QMAKE_EXTRA_TARGETS += trans_$${ext} |
|
111 translations.depends += trans_$${ext} |
|
112 } |
110 |
113 |
|
114 QMAKE_EXTRA_TARGETS += pre_translations |
111 QMAKE_EXTRA_TARGETS += translations |
115 QMAKE_EXTRA_TARGETS += translations |
112 INSTALLS += translations |
116 INSTALLS += translations |
113 } |
117 } |
114 |
118 |
115 !contains(HB_NOMAKE_PARTS, tests):exists(tsrc) { |
119 !contains(HB_NOMAKE_PARTS, tests):exists(tsrc) { |