mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-30 17:24:08 +00:00
ba94dd1314
It uses excellent Visual Studio extensions for Qt, written by Adam Badura (@adambadura). Many thanks! The project file is fully functional in Release-Qt4 configuration, for both x32 and x64 architectures. I decided not to use the official Qt Plugin, since it generates HUGE and broken project files which is painful to maintain. Here we have a pure visual studio solution with proper Visual Studio extensions to support Qt-based development. These extensions cover RCC, Lrelease, MOC and UIC, automagically invoking them when needed, with basically no need for manual steps to maintain. Also, GoldenDict can be built from the command line as well, no Visual Studio is required: For Win32: MSBuild /m goldendict.sln /v:m /nologo /p:Configuration=Release-Qt4 /p:Platform=win32 For x64: MSBuild /m goldendict.sln /v:m /nologo /p:Configuration=Release-Qt4 /p:Platform=x64
90 lines
2.6 KiB
XML
90 lines
2.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
This file is (c) 2013 Adam Badura and Tvangeste.
|
|
Part of GoldenDict. Licensed under GPLv3 or later, see the LICENSE file.
|
|
-->
|
|
<ProjectSchemaDefinitions
|
|
xmlns="http://schemas.microsoft.com/build/2009/properties"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:sys="clr-namespace:System;assembly=mscorlib"
|
|
>
|
|
<Rule
|
|
Name="QtLrelease"
|
|
DisplayName="Qt Lrelease Tool"
|
|
PageTemplate="tool"
|
|
SwitchPrefix="-"
|
|
Order="220"
|
|
>
|
|
<Rule.DataSource>
|
|
<DataSource
|
|
Persistence="ProjectFile"
|
|
ItemType="QtTranslate"
|
|
HasConfigurationCondition="true"
|
|
/>
|
|
</Rule.DataSource>
|
|
<Rule.Categories>
|
|
<Category
|
|
Name="General"
|
|
DisplayName="General"
|
|
/>
|
|
<Category
|
|
Name="Command Line"
|
|
DisplayName="Command Line"
|
|
Subtype="CommandLine"
|
|
/>
|
|
</Rule.Categories>
|
|
<StringProperty
|
|
Name="OutputFile"
|
|
Subtype="file"
|
|
HelpUrl="http://qt-project.org/doc/qt-5.0/qtlinguist/linguist-manager.html#using-lrelease"
|
|
DisplayName="Output File"
|
|
Description="Write output to <file>. (-qm <file>)"
|
|
Switch="qm "[value]""
|
|
/>
|
|
<BoolProperty
|
|
Name="Compress"
|
|
HelpUrl="http://qt-project.org/doc/qt-5.0/qtlinguist/linguist-manager.html#using-lrelease"
|
|
DisplayName="Compress the QM files"
|
|
Description="Compress the QM files. (-compress)"
|
|
Switch="compress"
|
|
/>
|
|
<StringProperty
|
|
Name="Inputs"
|
|
Category="Command Line"
|
|
IsRequired="true"
|
|
>
|
|
<StringProperty.DataSource>
|
|
<DataSource
|
|
Persistence="ProjectFile"
|
|
ItemType="QtTranslate"
|
|
SourceType="Item"
|
|
/>
|
|
</StringProperty.DataSource>
|
|
</StringProperty>
|
|
<StringProperty
|
|
Subtype="AdditionalOptions"
|
|
Name="AdditionalOptions"
|
|
Category="Command Line"
|
|
DisplayName="Additional Options"
|
|
F1Keyword="vc.project.AdditionalOptionsPage"
|
|
/>
|
|
<StringProperty
|
|
Name="LRELEASE"
|
|
Subtype="file"
|
|
DisplayName="LRELEASE"
|
|
Description="Path to lrelease.exe"
|
|
IncludeInCommandLine="False"
|
|
/>
|
|
<StringProperty
|
|
Name="CommandLineTemplate"
|
|
Category="Command Line"
|
|
DisplayName="Command Line"
|
|
Visible="False"
|
|
IncludeInCommandLine="False"
|
|
/>
|
|
</Rule>
|
|
<ItemType Name="QtTranslate" DisplayName="Qt Translation" />
|
|
<FileExtension Name="*.ts" ContentType="QtTranslate" />
|
|
<ContentType Name="QtTranslate" DisplayName="Qt Translation" ItemType="QtTranslate" />
|
|
</ProjectSchemaDefinitions>
|