From 9584192ec76ee362d22544d41764fcbe501eb5a0 Mon Sep 17 00:00:00 2001 From: dismine Date: Sun, 16 Mar 2014 16:17:07 +0200 Subject: [PATCH] Make install section for measurements. Copy to bin directory measurements. --HG-- branch : feature --- Valentina.pro | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/Valentina.pro b/Valentina.pro index 9f3855da4..c6ba0d871 100644 --- a/Valentina.pro +++ b/Valentina.pro @@ -131,6 +131,10 @@ INSTALL_TRANSLATIONS += share/translations/valentina_ru.qm \ share/translations/valentina_he_IL.qm \ share/translations/valentina_fr.qm +INSTALL_STANDARD_MEASHUREMENTS += share/tables/standard/GOST_man_ru.vst + +INSTALL_INDIVIDUAL_MEASHUREMENTS += share/tables/individual/indivindual_ru.vit + unix { #VARIABLES isEmpty(PREFIX) { @@ -147,10 +151,16 @@ pixmaps.path = $$DATADIR/pixmaps/ pixmaps.files += dist/$${TARGET}.png translations.path = $$DATADIR/$${TARGET}/translations/ translations.files = $$INSTALL_TRANSLATIONS +standard.path = $$DATADIR/$${TARGET}/tables/standard/ +standard.files = $$INSTALL_STANDARD_MEASHUREMENTS +individual.path = $$DATADIR/$${TARGET}/tables/individual/ +individual.files = $$INSTALL_INDIVIDUAL_MEASHUREMENTS INSTALLS += target \ desktop \ pixmaps \ - translations + translations \ + standard \ + individual } !isEmpty(TRANSLATIONS): { @@ -187,3 +197,19 @@ for(DIR, INSTALL_TRANSLATIONS) { } copyToDestdir($$tr_path, $$shell_path($$OUT_PWD/$$DESTDIR/translations)) + +for(DIR, INSTALL_STANDARD_MEASHUREMENTS) { + #add these absolute paths to a variable which + #ends up as 'mkcommands = path1 path2 path3 ...' + st_path += $$PWD/$$DIR +} + +copyToDestdir($$st_path, $$shell_path($$OUT_PWD/$$DESTDIR/tables/standard)) + +for(DIR, INSTALL_INDIVIDUAL_MEASHUREMENTS) { + #add these absolute paths to a variable which + #ends up as 'mkcommands = path1 path2 path3 ...' + ind_path += $$PWD/$$DIR +} + +copyToDestdir($$ind_path, $$shell_path($$OUT_PWD/$$DESTDIR/tables/individual))