| 1 |
TEMPLATE = subdirs |
| 2 |
CONFIG += ordered |
| 3 |
|
| 4 |
|
| 5 |
SUBDIRS += vendor/src/libxsys \ |
| 6 |
libdbm |
| 7 |
|
| 8 |
linux { |
| 9 |
SUBDIRS += service |
| 10 |
|
| 11 |
} |
| 12 |
SUBDIRS += app |
| 13 |
SUBDIRS += tests |
| 14 |
mac* { |
| 15 |
TRANSLATIONS_NAME = deepin-boot-maker |
| 16 |
TRANSLATIONS += $$PWD/translations/$${TRANSLATIONS_NAME}.ts \ |
| 17 |
$$PWD/translations/$${TRANSLATIONS_NAME}_zh_CN.ts |
| 18 |
system(python3 $$PWD/tools/translate_generation.py $$PWD) |
| 19 |
} else { |
| 20 |
TRANSLATIONS = $$files($$PWD/translations/*.ts) |
| 21 |
for(tsfile, TRANSLATIONS) { |
| 22 |
qmfile = $$replace(tsfile, .ts$, .qm) |
| 23 |
system(lrelease $$tsfile -qm $$qmfile) | error("Failed to lrelease") |
| 24 |
} |
| 25 |
linux { |
| 26 |
dtk_translations.path = /usr/share/deepin-boot-maker/translations |
| 27 |
dtk_translations.files = $$PWD/translations/*.qm |
| 28 |
INSTALLS += dtk_translations |
| 29 |
} |
| 30 |
} |