forked from bq/cervantes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Qt.rules
executable file
·52 lines (52 loc) · 1.73 KB
/
Qt.rules
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?xml version="1.0" encoding="utf-8"?>
<VisualStudioToolFile
Name="Qt"
Version="8.00"
>
<Rules>
<CustomBuildRule
Name="lrelease"
DisplayName="Qt Linguist Tool"
CommandLine=""$(QTDIR)/bin/lrelease.exe" [compress] [nounfinished] [removeidentical] [inputs] -qm "$(OutDir)/langs/$(InputName).qm""
Outputs=""$(OutDir)/langs/$(InputName).qm""
FileExtensions="*.ts"
ExecutionDescription="Qt lrelease [inputs]"
>
<Properties>
<BooleanProperty
Name="compress"
DisplayName="Compress"
Category="Options"
Description="Compress the .qm files"
Switch="-compress"
/>
<BooleanProperty
Name="nounfinished"
DisplayName="No unfinished translations"
Category="Options"
Description="Do not include unfinished translations"
Switch="-nounfinished"
/>
<BooleanProperty
Name="removeidentical"
DisplayName="Remove identical"
Category="Options"
Description="If the translated text is the same as the source text, do not include the message"
Switch="-removeidentical"
DefaultValue="true"
/>
</Properties>
</CustomBuildRule>
<CustomBuildRule
Name="rcc"
DisplayName="Qt Resource Tool"
CommandLine=""$(QTDIR)/bin/rcc.exe" -binary [inputs] -o "$(OutDir)/langs/$(InputName).rcc"
"$(QTDIR)/bin/rcc.exe" -name "$(InputName)" -no-compress [inputs] -o .\gen\qrc_$(InputName).cpp"
Outputs=""$(OutDir)/langs/$(InputName).rcc";.\gen\qrc_$(InputName).cpp"
FileExtensions="*.qrc"
ExecutionDescription="Qt rcc [inputs]"
>
<Properties>
</Properties>
</CustomBuildRule>
</Rules>
</VisualStudioToolFile>