mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-28 07:54:06 +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
97 lines
2.9 KiB
XML
97 lines
2.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
This file is (c) 2013 Adam Badura.
|
|
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="QtUIC"
|
|
DisplayName="Qt User Interface Compiler"
|
|
PageTemplate="tool"
|
|
SwitchPrefix="-"
|
|
Order="221"
|
|
>
|
|
<Rule.DataSource>
|
|
<DataSource
|
|
Persistence="ProjectFile"
|
|
ItemType="QtUICCompile"
|
|
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/qtdoc/uic.html"
|
|
DisplayName="Output File"
|
|
Description="Write output to <file> instead of to standard output. (-o <file>)"
|
|
Switch="o "[value]""
|
|
/>
|
|
<StringListProperty
|
|
Name="TranslationFunction"
|
|
HelpUrl="http://qt-project.org/doc/qt-5.0/qtdoc/uic.html"
|
|
DisplayName="Translation Function"
|
|
Description="Use <func> for translating strings instead of tr(). (-tr <func>)"
|
|
Switch="tr "[value]""
|
|
/>
|
|
<BoolProperty
|
|
Name="DontGenerateHeaderGuards"
|
|
HelpUrl="http://qt-project.org/doc/qt-5.0/qtdoc/uic.html"
|
|
DisplayName="Don't Generate Header Guards"
|
|
Description="Don't generate guards against multiple inclusion (#ifndef FOO_H …). (-p)"
|
|
Switch="p"
|
|
/>
|
|
<StringProperty
|
|
Name="Inputs"
|
|
Category="Command Line"
|
|
IsRequired="true"
|
|
>
|
|
<StringProperty.DataSource>
|
|
<DataSource
|
|
Persistence="ProjectFile"
|
|
ItemType="QtUICCompile"
|
|
SourceType="Item"
|
|
/>
|
|
</StringProperty.DataSource>
|
|
</StringProperty>
|
|
<StringProperty
|
|
Subtype="AdditionalOptions"
|
|
Name="AdditionalOptions"
|
|
Category="Command Line"
|
|
DisplayName="Additional Options"
|
|
F1Keyword="vc.project.AdditionalOptionsPage"
|
|
/>
|
|
<StringProperty
|
|
Name="UIC"
|
|
Subtype="file"
|
|
DisplayName="UIC"
|
|
Description="Path to uic.exe"
|
|
IncludeInCommandLine="False"
|
|
/>
|
|
<StringProperty
|
|
Name="CommandLineTemplate"
|
|
Category="Command Line"
|
|
DisplayName="Command Line"
|
|
Visible="False"
|
|
IncludeInCommandLine="False"
|
|
/>
|
|
</Rule>
|
|
<ItemType Name="QtUICCompile" DisplayName="Qt UIC Compile" />
|
|
<FileExtension Name="*.ui" ContentType="QtUICCompile" />
|
|
<ContentType Name="QtUICCompile" DisplayName="Qt UIC Compile" ItemType="QtUICCompile" />
|
|
</ProjectSchemaDefinitions>
|