42 feature.files += $$HB_SOURCE_DIR/mkspecs/docml2bin.prf |
42 feature.files += $$HB_SOURCE_DIR/mkspecs/docml2bin.prf |
43 feature.path = $$HB_FEATURES_DIR |
43 feature.path = $$HB_FEATURES_DIR |
44 INSTALLS += feature |
44 INSTALLS += feature |
45 } |
45 } |
46 else { |
46 else { |
47 tmp = $$split(HB_FEATURES_DIR, :) |
47 HB_SYMBIAN_PRF_EXPORT_DIR = $$hbStripDriveLetter($$HB_FEATURES_DIR) |
48 HB_SYMBIAN_PRF_EXPORT_DIR = $$last(tmp) |
|
49 BLD_INF_RULES.prj_exports += "hb.prf $$HB_SYMBIAN_PRF_EXPORT_DIR/hb.prf" |
48 BLD_INF_RULES.prj_exports += "hb.prf $$HB_SYMBIAN_PRF_EXPORT_DIR/hb.prf" |
50 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" |
51 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" |
52 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 |
|
53 host_tools { |
|
54 exists($${HB_BUILD_DIR}/bin/docml2bin) { |
|
55 hbPrjExport("$${HB_BUILD_DIR}/bin/docml2bin", "$${HB_BIN_DIR}/docml2bin") |
|
56 } |
|
57 exists($${HB_BUILD_DIR}/bin/docml2bin.exe) { |
|
58 hbPrjExport("$${HB_BUILD_DIR}/bin/docml2bin.exe", "$${HB_BIN_DIR}/docml2bin.exe") |
|
59 } |
|
60 } |
53 } |
61 } |
54 |
62 |
55 QMAKE_DISTCLEAN += $$hbNativePath($$HB_BUILD_DIR/.qmake.cache) |
63 QMAKE_DISTCLEAN += $$hbNativePath($$HB_BUILD_DIR/.qmake.cache) |
56 QMAKE_DISTCLEAN += $$hbNativePath($$HB_BUILD_DIR/hb_install.prf) |
64 QMAKE_DISTCLEAN += $$hbNativePath($$HB_BUILD_DIR/hb_install.prf) |
57 |
65 |
86 QMAKE_EXTRA_TARGETS += cssbinary |
94 QMAKE_EXTRA_TARGETS += cssbinary |
87 } |
95 } |
88 |
96 |
89 !symbian { |
97 !symbian { |
90 LRELEASE = $$hbNativePath($$[QT_INSTALL_BINS]/lrelease) |
98 LRELEASE = $$hbNativePath($$[QT_INSTALL_BINS]/lrelease) |
91 # comments to be removed once localisation is ready |
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 |
92 #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 no 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 |
93 translations.input = $$HB_SOURCE_DIR/src/hbcore/i18n/translations/common |
|
94 translations.path = $${HB_TRANSLATIONS_DIR} |
101 translations.path = $${HB_TRANSLATIONS_DIR} |
|
102 |
95 translations.commands = $$LRELEASE -silent -idbased $$translations.input/commonstrings_en.ts -qm $$translations.path/commonstrings_en.qm |
103 translations.commands = $$LRELEASE -silent -idbased $$translations.input/commonstrings_en.ts -qm $$translations.path/commonstrings_en.qm |
96 |
|
97 # for(ext, COMMON_EXTENSIONS) { |
104 # for(ext, COMMON_EXTENSIONS) { |
98 # file = commonstrings_$$ext |
105 # file = commonstrings_$$ext |
99 # translations.commands += && $$LRELEASE -silent -idbased $$translations.input/$${file}.ts -qm $$translations.path/$${file}.qm |
106 # eval(trans_$${ext}.commands += $$LRELEASE -silent -idbased $$translations.input/$${file}.ts -qm $$translations.path/$${file}.qm) |
|
107 # QMAKE_EXTRA_TARGETS += trans_$${ext} |
|
108 # eval(translations.depends += trans_$${ext}) |
100 # } |
109 # } |
101 |
110 |
102 QMAKE_EXTRA_TARGETS += translations |
111 QMAKE_EXTRA_TARGETS += translations |
103 INSTALLS += translations |
112 INSTALLS += translations |
104 } |
113 } |