VirtualBox

Ignore:
Timestamp:
Jul 11, 2008 2:01:44 AM (16 years ago)
Author:
vboxsync
Message:

USE_KBUILD_QT_UNIT: compile and install translation files. updatenls.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox4/Makefile.kmk

    r10468 r10488  
    202202 USES += qt4
    203203 TEMPLATE_VBOXQT4GUIEXE_USES = qt4
     204 TEMPLATE_VBOXQT4GUIEXE_QTTOOL = QT4
    204205 TEMPLATE_VBOXQT4GUIEXE_MOCTOOL = QT4
    205206 TEMPLATE_VBOXQT4GUIEXE_UICTOOL = QT4
    206207 TEMPLATE_VBOXQT4GUIEXE_RCCTOOL = QT4
     208 TEMPLATE_VBOXQT4GUIEXE_LRCTOOL = QT4
    207209 TEMPLATE_VBOXQT4GUIEXE_SDKS = QT4
    208210endif # USE_KBUILD_QT_UNIT
     
    697699 VirtualBox_NonOSE.qrc_RCCFLAGS = -name NonOSE
    698700
    699  # Import the translation source from VBoxUI.pro and add the qt_xx_YY counterparts.
    700  ## @todo figure out how/if to do the translations in the qt4 unit, it doesn't quite fit it really. :-/
     701
     702 # Import the translation source from VBoxUI.pro and add the qt_xx_YY counterparts
    701703 VirtualBox4_QT_TRANSLATIONS := $(TRANSLATIONS) \
    702704        $(patsubst nls/VirtualBox_%.ts,nls/qt_%.ts, $(filter nls/VirtualBox_%.ts,$(TRANSLATIONS)))
     705 # Compress the translation units.
     706 VirtualBox4_LRCFLAGS = -compress
     707 # Where to install the translations (a separate install target, VirtualBox4-nls-inst is created).
     708 VirtualBox4_QT_TRANSLATIONS_INST = $(INST_BIN)nls/
     709
    703710
    704711else # !USE_KBUILD_QT_UNIT
     
    10821089
    10831090
     1091ifdef USE_KBUILD_QT_UNIT
     1092#
     1093# Update all known NLS translation (.ts) files in the nls/ subdirectory.
     1094#
     1095# NOTE: This target is intened to be run only by the GUI maintainer shortly
     1096# before a new product release. VirtualBox_xx_YY.ts is a template for new
     1097# languages and should never be actually translated or installed.
     1098#
     1099updatenls:: \
     1100                $(VirtualBox4_QT_UISRCS) \
     1101                $(filter-out %.qrc,$(VirtualBox4_SOURCES)) \
     1102                $(wildcard include/*.h)
     1103        $(call MSG_L1,lupdate all languages (nls/*.ts))
     1104        $(QUIET)$(TOOL_QT4_LUPDATE) \
     1105                $^ \
     1106                -ts \
     1107                $(filter-out nls/qt_%.ts,$(VirtualBox4_QT_TRANSLATIONS)) \
     1108                nls/VirtualBox_xx_YY.ts
     1109
     1110else
    10841111#
    10851112# Custom targets
     
    10901117# before a new product release. VirtualBox_xx_YY.ts is a template for new
    10911118# languages and should never be actually translated or installed.
    1092 ## @todo Dmitry, why aren't the .ui files here? I guess this is why the .gen.h files are included.
    1093 # But I completely fail to see what purpose the .moc files has in this list... From what I can tell
    1094 # lupdate doesn't require anything to be built to run, at least not the trolltech examples, it will
    1095 # eat the .ui files directly unless I'm much mistaken.
    10961119updatenls:: $(VirtualBox4_SOURCES) $(VirtualBox4_HEADERS)
    10971120        $(call MSG_L1,lupdate all languages (nls/*.ts))
    10981121        $(QUIET)$(VBOX_LUPDATE4) $^ -ts $(VirtualBox4_QT_TRANSLATIONS) nls/VirtualBox_xx_YY.ts
    10991122
    1100 
    1101 ifndef USE_KBUILD_QT_UNIT
    11021123#
    11031124# Test targets
     
    11201141test3:
    11211142        @echo $(VirtualBox4_HEADERS) | $(SED) -e "s/ /\n/g"
    1122 endif # USE_KBUILD_QT_UNIT
     1143endif # !USE_KBUILD_QT_UNIT
    11231144
    11241145# alias for generating the COM Wrappers file.
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette