Add a new configuration for static build (requires Qt as static lib)
This commit is contained in:
parent
ccaa1ba8f5
commit
4ab35ccfe9
@ -6,11 +6,14 @@ EndProject
|
|||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
Debug|Win32 = Debug|Win32
|
Debug|Win32 = Debug|Win32
|
||||||
|
Release Static|Win32 = Release Static|Win32
|
||||||
Release|Win32 = Release|Win32
|
Release|Win32 = Release|Win32
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
{00FE736A-8DB1-41B3-B915-4CD8DB09EF48}.Debug|Win32.ActiveCfg = Debug|Win32
|
{00FE736A-8DB1-41B3-B915-4CD8DB09EF48}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||||
{00FE736A-8DB1-41B3-B915-4CD8DB09EF48}.Debug|Win32.Build.0 = Debug|Win32
|
{00FE736A-8DB1-41B3-B915-4CD8DB09EF48}.Debug|Win32.Build.0 = Debug|Win32
|
||||||
|
{00FE736A-8DB1-41B3-B915-4CD8DB09EF48}.Release Static|Win32.ActiveCfg = Release Static|Win32
|
||||||
|
{00FE736A-8DB1-41B3-B915-4CD8DB09EF48}.Release Static|Win32.Build.0 = Release Static|Win32
|
||||||
{00FE736A-8DB1-41B3-B915-4CD8DB09EF48}.Release|Win32.ActiveCfg = Release|Win32
|
{00FE736A-8DB1-41B3-B915-4CD8DB09EF48}.Release|Win32.ActiveCfg = Release|Win32
|
||||||
{00FE736A-8DB1-41B3-B915-4CD8DB09EF48}.Release|Win32.Build.0 = Release|Win32
|
{00FE736A-8DB1-41B3-B915-4CD8DB09EF48}.Release|Win32.Build.0 = Release|Win32
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
|
263
LameXP.vcproj
263
LameXP.vcproj
@ -102,6 +102,7 @@
|
|||||||
IntermediateDirectory="$(SolutionDir)obj\$(ConfigurationName)"
|
IntermediateDirectory="$(SolutionDir)obj\$(ConfigurationName)"
|
||||||
ConfigurationType="1"
|
ConfigurationType="1"
|
||||||
CharacterSet="1"
|
CharacterSet="1"
|
||||||
|
WholeProgramOptimization="1"
|
||||||
>
|
>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCPreBuildEventTool"
|
Name="VCPreBuildEventTool"
|
||||||
@ -157,6 +158,7 @@
|
|||||||
AdditionalLibraryDirectories=""$(QTDIR)\lib";"$(QTDIR)\plugins\imageformats""
|
AdditionalLibraryDirectories=""$(QTDIR)\lib";"$(QTDIR)\plugins\imageformats""
|
||||||
GenerateDebugInformation="false"
|
GenerateDebugInformation="false"
|
||||||
AssemblyDebug="0"
|
AssemblyDebug="0"
|
||||||
|
GenerateMapFile="false"
|
||||||
MapExports="false"
|
MapExports="false"
|
||||||
SubSystem="2"
|
SubSystem="2"
|
||||||
LinkTimeCodeGeneration="1"
|
LinkTimeCodeGeneration="1"
|
||||||
@ -186,6 +188,97 @@
|
|||||||
CommandLine="mkdir "$(TargetDir)imageformats"
copy "$(QTDIR)\plugins\imageformats\q???4.dll" "$(TargetDir)imageformats\"
"
|
CommandLine="mkdir "$(TargetDir)imageformats"
copy "$(QTDIR)\plugins\imageformats\q???4.dll" "$(TargetDir)imageformats\"
"
|
||||||
/>
|
/>
|
||||||
</Configuration>
|
</Configuration>
|
||||||
|
<Configuration
|
||||||
|
Name="Release Static|Win32"
|
||||||
|
OutputDirectory="$(SolutionDir)bin\$(ConfigurationName)"
|
||||||
|
IntermediateDirectory="$(SolutionDir)obj\$(ConfigurationName)"
|
||||||
|
ConfigurationType="1"
|
||||||
|
CharacterSet="1"
|
||||||
|
WholeProgramOptimization="1"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreBuildEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCustomBuildTool"
|
||||||
|
CommandLine=""
|
||||||
|
Outputs=""
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXMLDataGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCWebServiceProxyGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCMIDLTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
Optimization="3"
|
||||||
|
InlineFunctionExpansion="2"
|
||||||
|
EnableIntrinsicFunctions="true"
|
||||||
|
FavorSizeOrSpeed="1"
|
||||||
|
OmitFramePointers="true"
|
||||||
|
WholeProgramOptimization="true"
|
||||||
|
AdditionalIncludeDirectories=""$(QTDIR_STATIC)\include";"$(QTDIR_STATIC)\include\QtCore";"$(QTDIR_STATIC)\include\QtGui""
|
||||||
|
PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;QT_LARGEFILE_SUPPORT;QT_GUI_LIB;QT_CORE_LIB;QT_THREAD_SUPPORT;QT_NO_DEBUG"
|
||||||
|
MinimalRebuild="false"
|
||||||
|
BasicRuntimeChecks="0"
|
||||||
|
RuntimeLibrary="0"
|
||||||
|
EnableFunctionLevelLinking="true"
|
||||||
|
EnableEnhancedInstructionSet="0"
|
||||||
|
FloatingPointModel="2"
|
||||||
|
UsePrecompiledHeader="0"
|
||||||
|
WarningLevel="3"
|
||||||
|
DebugInformationFormat="0"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManagedResourceCompilerTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCResourceCompilerTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreLinkEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCLinkerTool"
|
||||||
|
AdditionalOptions=""/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'""
|
||||||
|
AdditionalDependencies="qtmain.lib QtCore.lib QtGui.lib QtSvg.lib qsvg.lib qico.lib Winmm.lib imm32.lib ws2_32.lib"
|
||||||
|
LinkIncremental="1"
|
||||||
|
AdditionalLibraryDirectories=""$(QTDIR_STATIC)\lib";"$(QTDIR_STATIC)\plugins\imageformats""
|
||||||
|
IgnoreDefaultLibraryNames=""
|
||||||
|
GenerateDebugInformation="false"
|
||||||
|
AssemblyDebug="0"
|
||||||
|
MapExports="false"
|
||||||
|
SubSystem="2"
|
||||||
|
LinkTimeCodeGeneration="1"
|
||||||
|
TargetMachine="1"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCALinkTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManifestTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXDCMakeTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCBscMakeTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCFxCopTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCAppVerifierTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPostBuildEventTool"
|
||||||
|
CommandLine=""
|
||||||
|
/>
|
||||||
|
</Configuration>
|
||||||
</Configurations>
|
</Configurations>
|
||||||
<References>
|
<References>
|
||||||
</References>
|
</References>
|
||||||
@ -288,6 +381,16 @@
|
|||||||
Outputs=""$(SolutionDir)tmp\MOC_$(SafeInputName).cpp""
|
Outputs=""$(SolutionDir)tmp\MOC_$(SafeInputName).cpp""
|
||||||
/>
|
/>
|
||||||
</FileConfiguration>
|
</FileConfiguration>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Release Static|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCustomBuildTool"
|
||||||
|
Description="MOC "$(SolutionDir)tmp\MOC_$(SafeInputName).cpp""
|
||||||
|
CommandLine=""$(QTDIR)\bin\moc.exe" -o "$(SolutionDir)tmp\MOC_$(SafeInputName).cpp" "$(InputPath)"
"
|
||||||
|
Outputs=""$(SolutionDir)tmp\MOC_$(SafeInputName).cpp""
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
</File>
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath=".\src\Dialog_MetaInfo.h"
|
RelativePath=".\src\Dialog_MetaInfo.h"
|
||||||
@ -312,6 +415,16 @@
|
|||||||
Outputs=""$(SolutionDir)tmp\MOC_$(SafeInputName).cpp""
|
Outputs=""$(SolutionDir)tmp\MOC_$(SafeInputName).cpp""
|
||||||
/>
|
/>
|
||||||
</FileConfiguration>
|
</FileConfiguration>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Release Static|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCustomBuildTool"
|
||||||
|
Description="MOC "$(SolutionDir)tmp\MOC_$(SafeInputName).cpp""
|
||||||
|
CommandLine=""$(QTDIR)\bin\moc.exe" -o "$(SolutionDir)tmp\MOC_$(SafeInputName).cpp" "$(InputPath)"
"
|
||||||
|
Outputs=""$(SolutionDir)tmp\MOC_$(SafeInputName).cpp""
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
</File>
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath=".\src\Dialog_SplashScreen.h"
|
RelativePath=".\src\Dialog_SplashScreen.h"
|
||||||
@ -336,6 +449,16 @@
|
|||||||
Outputs=""$(SolutionDir)tmp\MOC_$(SafeInputName).cpp""
|
Outputs=""$(SolutionDir)tmp\MOC_$(SafeInputName).cpp""
|
||||||
/>
|
/>
|
||||||
</FileConfiguration>
|
</FileConfiguration>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Release Static|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCustomBuildTool"
|
||||||
|
Description="MOC "$(SolutionDir)tmp\MOC_$(SafeInputName).cpp""
|
||||||
|
CommandLine=""$(QTDIR)\bin\moc.exe" -o "$(SolutionDir)tmp\MOC_$(SafeInputName).cpp" "$(InputPath)"
"
|
||||||
|
Outputs=""$(SolutionDir)tmp\MOC_$(SafeInputName).cpp""
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
</File>
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath=".\src\Dialog_WorkingBanner.h"
|
RelativePath=".\src\Dialog_WorkingBanner.h"
|
||||||
@ -360,6 +483,16 @@
|
|||||||
Outputs=""$(SolutionDir)tmp\MOC_$(SafeInputName).cpp""
|
Outputs=""$(SolutionDir)tmp\MOC_$(SafeInputName).cpp""
|
||||||
/>
|
/>
|
||||||
</FileConfiguration>
|
</FileConfiguration>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Release Static|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCustomBuildTool"
|
||||||
|
Description="MOC "$(SolutionDir)tmp\MOC_$(SafeInputName).cpp""
|
||||||
|
CommandLine=""$(QTDIR)\bin\moc.exe" -o "$(SolutionDir)tmp\MOC_$(SafeInputName).cpp" "$(InputPath)"
"
|
||||||
|
Outputs=""$(SolutionDir)tmp\MOC_$(SafeInputName).cpp""
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
</File>
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath=".\src\Genres.h"
|
RelativePath=".\src\Genres.h"
|
||||||
@ -400,6 +533,16 @@
|
|||||||
Outputs=""$(SolutionDir)tmp\MOC_$(SafeInputName).cpp""
|
Outputs=""$(SolutionDir)tmp\MOC_$(SafeInputName).cpp""
|
||||||
/>
|
/>
|
||||||
</FileConfiguration>
|
</FileConfiguration>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Release Static|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCustomBuildTool"
|
||||||
|
Description="MOC "$(SolutionDir)tmp\MOC_$(SafeInputName).cpp""
|
||||||
|
CommandLine=""$(QTDIR)\bin\moc.exe" -o "$(SolutionDir)tmp\MOC_$(SafeInputName).cpp" "$(InputPath)"
"
|
||||||
|
Outputs=""$(SolutionDir)tmp\MOC_$(SafeInputName).cpp""
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
</File>
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath=".\src\Model_MetaInfo.h"
|
RelativePath=".\src\Model_MetaInfo.h"
|
||||||
@ -424,6 +567,16 @@
|
|||||||
Outputs=""$(SolutionDir)tmp\MOC_$(SafeInputName).cpp""
|
Outputs=""$(SolutionDir)tmp\MOC_$(SafeInputName).cpp""
|
||||||
/>
|
/>
|
||||||
</FileConfiguration>
|
</FileConfiguration>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Release Static|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCustomBuildTool"
|
||||||
|
Description="MOC "$(SolutionDir)tmp\MOC_$(SafeInputName).cpp""
|
||||||
|
CommandLine=""$(QTDIR)\bin\moc.exe" -o "$(SolutionDir)tmp\MOC_$(SafeInputName).cpp" "$(InputPath)"
"
|
||||||
|
Outputs=""$(SolutionDir)tmp\MOC_$(SafeInputName).cpp""
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
</File>
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath=".\src\Resource.h"
|
RelativePath=".\src\Resource.h"
|
||||||
@ -456,6 +609,16 @@
|
|||||||
Outputs=""$(SolutionDir)tmp\MOC_$(SafeInputName).cpp""
|
Outputs=""$(SolutionDir)tmp\MOC_$(SafeInputName).cpp""
|
||||||
/>
|
/>
|
||||||
</FileConfiguration>
|
</FileConfiguration>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Release Static|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCustomBuildTool"
|
||||||
|
Description="MOC "$(SolutionDir)tmp\MOC_$(SafeInputName).cpp""
|
||||||
|
CommandLine=""$(QTDIR)\bin\moc.exe" -o "$(SolutionDir)tmp\MOC_$(SafeInputName).cpp" "$(InputPath)"
"
|
||||||
|
Outputs=""$(SolutionDir)tmp\MOC_$(SafeInputName).cpp""
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
</File>
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath=".\src\Thread_Initialization.h"
|
RelativePath=".\src\Thread_Initialization.h"
|
||||||
@ -480,6 +643,16 @@
|
|||||||
Outputs=""$(SolutionDir)tmp\MOC_$(SafeInputName).cpp""
|
Outputs=""$(SolutionDir)tmp\MOC_$(SafeInputName).cpp""
|
||||||
/>
|
/>
|
||||||
</FileConfiguration>
|
</FileConfiguration>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Release Static|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCustomBuildTool"
|
||||||
|
Description="MOC "$(SolutionDir)tmp\MOC_$(SafeInputName).cpp""
|
||||||
|
CommandLine=""$(QTDIR)\bin\moc.exe" -o "$(SolutionDir)tmp\MOC_$(SafeInputName).cpp" "$(InputPath)"
"
|
||||||
|
Outputs=""$(SolutionDir)tmp\MOC_$(SafeInputName).cpp""
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
</File>
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath=".\src\Thread_MessageHandler.h"
|
RelativePath=".\src\Thread_MessageHandler.h"
|
||||||
@ -504,6 +677,16 @@
|
|||||||
Outputs=""$(SolutionDir)tmp\MOC_$(SafeInputName).cpp""
|
Outputs=""$(SolutionDir)tmp\MOC_$(SafeInputName).cpp""
|
||||||
/>
|
/>
|
||||||
</FileConfiguration>
|
</FileConfiguration>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Release Static|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCustomBuildTool"
|
||||||
|
Description="MOC "$(SolutionDir)tmp\MOC_$(SafeInputName).cpp""
|
||||||
|
CommandLine=""$(QTDIR)\bin\moc.exe" -o "$(SolutionDir)tmp\MOC_$(SafeInputName).cpp" "$(InputPath)"
"
|
||||||
|
Outputs=""$(SolutionDir)tmp\MOC_$(SafeInputName).cpp""
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
</File>
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath=".\src\Thread_MessageProducer.h"
|
RelativePath=".\src\Thread_MessageProducer.h"
|
||||||
@ -528,6 +711,16 @@
|
|||||||
Outputs=""$(SolutionDir)tmp\MOC_$(SafeInputName).cpp""
|
Outputs=""$(SolutionDir)tmp\MOC_$(SafeInputName).cpp""
|
||||||
/>
|
/>
|
||||||
</FileConfiguration>
|
</FileConfiguration>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Release Static|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCustomBuildTool"
|
||||||
|
Description="MOC "$(SolutionDir)tmp\MOC_$(SafeInputName).cpp""
|
||||||
|
CommandLine=""$(QTDIR)\bin\moc.exe" -o "$(SolutionDir)tmp\MOC_$(SafeInputName).cpp" "$(InputPath)"
"
|
||||||
|
Outputs=""$(SolutionDir)tmp\MOC_$(SafeInputName).cpp""
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
</File>
|
</File>
|
||||||
</Filter>
|
</Filter>
|
||||||
<Filter
|
<Filter
|
||||||
@ -614,6 +807,16 @@
|
|||||||
Outputs=""$(SolutionDir)tmp\RCC_$(SafeInputName).cpp""
|
Outputs=""$(SolutionDir)tmp\RCC_$(SafeInputName).cpp""
|
||||||
/>
|
/>
|
||||||
</FileConfiguration>
|
</FileConfiguration>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Release Static|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCustomBuildTool"
|
||||||
|
Description="RCC "$(SolutionDir)tmp\RCC_$(SafeInputName).cpp""
|
||||||
|
CommandLine=""$(QTDIR)\bin\rcc.exe" -o "$(SolutionDir)tmp\RCC_$(SafeInputName).cpp" -name "$(SafeInputName)" "$(InputPath)"
"
|
||||||
|
Outputs=""$(SolutionDir)tmp\RCC_$(SafeInputName).cpp""
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
</File>
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath=".\res\Images.qrc"
|
RelativePath=".\res\Images.qrc"
|
||||||
@ -638,6 +841,16 @@
|
|||||||
Outputs=""$(SolutionDir)tmp\RCC_$(SafeInputName).cpp""
|
Outputs=""$(SolutionDir)tmp\RCC_$(SafeInputName).cpp""
|
||||||
/>
|
/>
|
||||||
</FileConfiguration>
|
</FileConfiguration>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Release Static|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCustomBuildTool"
|
||||||
|
Description="RCC "$(SolutionDir)tmp\RCC_$(SafeInputName).cpp""
|
||||||
|
CommandLine=""$(QTDIR)\bin\rcc.exe" -o "$(SolutionDir)tmp\RCC_$(SafeInputName).cpp" -name "$(SafeInputName)" "$(InputPath)"
"
|
||||||
|
Outputs=""$(SolutionDir)tmp\RCC_$(SafeInputName).cpp""
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
</File>
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath=".\LameXP.rc"
|
RelativePath=".\LameXP.rc"
|
||||||
@ -670,6 +883,16 @@
|
|||||||
Outputs=""$(SolutionDir)tmp\RCC_$(SafeInputName).cpp""
|
Outputs=""$(SolutionDir)tmp\RCC_$(SafeInputName).cpp""
|
||||||
/>
|
/>
|
||||||
</FileConfiguration>
|
</FileConfiguration>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Release Static|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCustomBuildTool"
|
||||||
|
Description="RCC "$(SolutionDir)tmp\RCC_$(SafeInputName).cpp""
|
||||||
|
CommandLine=""$(QTDIR)\bin\rcc.exe" -o "$(SolutionDir)tmp\RCC_$(SafeInputName).cpp" -name "$(SafeInputName)" "$(InputPath)"
"
|
||||||
|
Outputs=""$(SolutionDir)tmp\RCC_$(SafeInputName).cpp""
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
</File>
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath=".\res\sounds\uuaarrgh.wav"
|
RelativePath=".\res\sounds\uuaarrgh.wav"
|
||||||
@ -702,6 +925,16 @@
|
|||||||
Outputs=""$(SolutionDir)tmp\UIC_$(SafeInputName).h""
|
Outputs=""$(SolutionDir)tmp\UIC_$(SafeInputName).h""
|
||||||
/>
|
/>
|
||||||
</FileConfiguration>
|
</FileConfiguration>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Release Static|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCustomBuildTool"
|
||||||
|
Description="UIC "$(SolutionDir)tmp\UIC_$(SafeInputName).h""
|
||||||
|
CommandLine=""$(QTDIR)\bin\uic.exe" -o "$(SolutionDir)tmp\UIC_$(SafeInputName).h" "$(InputPath)"
"
|
||||||
|
Outputs=""$(SolutionDir)tmp\UIC_$(SafeInputName).h""
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
</File>
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath=".\gui\MetaInfo.ui"
|
RelativePath=".\gui\MetaInfo.ui"
|
||||||
@ -726,6 +959,16 @@
|
|||||||
Outputs=""$(SolutionDir)tmp\UIC_$(SafeInputName).h""
|
Outputs=""$(SolutionDir)tmp\UIC_$(SafeInputName).h""
|
||||||
/>
|
/>
|
||||||
</FileConfiguration>
|
</FileConfiguration>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Release Static|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCustomBuildTool"
|
||||||
|
Description="UIC "$(SolutionDir)tmp\UIC_$(SafeInputName).h""
|
||||||
|
CommandLine=""$(QTDIR)\bin\uic.exe" -o "$(SolutionDir)tmp\UIC_$(SafeInputName).h" "$(InputPath)"
"
|
||||||
|
Outputs=""$(SolutionDir)tmp\UIC_$(SafeInputName).h""
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
</File>
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath=".\gui\SplashScreen.ui"
|
RelativePath=".\gui\SplashScreen.ui"
|
||||||
@ -750,6 +993,16 @@
|
|||||||
Outputs=""$(SolutionDir)tmp\UIC_$(SafeInputName).h""
|
Outputs=""$(SolutionDir)tmp\UIC_$(SafeInputName).h""
|
||||||
/>
|
/>
|
||||||
</FileConfiguration>
|
</FileConfiguration>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Release Static|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCustomBuildTool"
|
||||||
|
Description="UIC "$(SolutionDir)tmp\UIC_$(SafeInputName).h""
|
||||||
|
CommandLine=""$(QTDIR)\bin\uic.exe" -o "$(SolutionDir)tmp\UIC_$(SafeInputName).h" "$(InputPath)"
"
|
||||||
|
Outputs=""$(SolutionDir)tmp\UIC_$(SafeInputName).h""
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
</File>
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath=".\gui\WorkingBanner.ui"
|
RelativePath=".\gui\WorkingBanner.ui"
|
||||||
@ -774,6 +1027,16 @@
|
|||||||
Outputs=""$(SolutionDir)tmp\UIC_$(SafeInputName).h""
|
Outputs=""$(SolutionDir)tmp\UIC_$(SafeInputName).h""
|
||||||
/>
|
/>
|
||||||
</FileConfiguration>
|
</FileConfiguration>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Release Static|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCustomBuildTool"
|
||||||
|
Description="UIC "$(SolutionDir)tmp\UIC_$(SafeInputName).h""
|
||||||
|
CommandLine=""$(QTDIR)\bin\uic.exe" -o "$(SolutionDir)tmp\UIC_$(SafeInputName).h" "$(InputPath)"
"
|
||||||
|
Outputs=""$(SolutionDir)tmp\UIC_$(SafeInputName).h""
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
</File>
|
</File>
|
||||||
</Filter>
|
</Filter>
|
||||||
<File
|
<File
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
set "LAMEXP_ERROR=1"
|
set "LAMEXP_ERROR=1"
|
||||||
echo ----------------------------------------------------------------
|
echo ----------------------------------------------------------------
|
||||||
echo Solution File: %1
|
echo Solution File: %1
|
||||||
echo Configuration: %~n2
|
echo Configuration: %~2
|
||||||
echo ----------------------------------------------------------------
|
echo ----------------------------------------------------------------
|
||||||
call _paths.bat
|
call _paths.bat
|
||||||
if not "%LAMEXP_ERROR%"=="0" GOTO:EOF
|
if not "%LAMEXP_ERROR%"=="0" GOTO:EOF
|
||||||
@ -11,11 +11,11 @@ call "%PATH_MSVC90%\VC\bin\vcvars32.bat" x86
|
|||||||
call "%PATH_QTMSVC%\bin\qtvars.bat"
|
call "%PATH_QTMSVC%\bin\qtvars.bat"
|
||||||
REM -----------------------------------------------------------------
|
REM -----------------------------------------------------------------
|
||||||
set "LAMEXP_ERROR=1"
|
set "LAMEXP_ERROR=1"
|
||||||
msbuild.exe /property:Configuration=%~n2 /target:Clean /verbosity:d %1
|
msbuild.exe /property:Configuration=%2 /target:Clean /verbosity:detailed %1
|
||||||
if exist "%~d1%~p1bin\%~n2\*.exe" GOTO:EOF
|
if exist "%~d1%~p1bin\%~n2\*.exe" GOTO:EOF
|
||||||
if exist "%~d1%~p1obj\%~n2\*.obj" GOTO:EOF
|
if exist "%~d1%~p1obj\%~n2\*.obj" GOTO:EOF
|
||||||
echo ----------------------------------------------------------------
|
echo ----------------------------------------------------------------
|
||||||
msbuild.exe /property:Configuration=%~n2 /target:Rebuild /verbosity:d %1
|
msbuild.exe /property:Configuration=%2 /target:Rebuild /verbosity:detailed %1
|
||||||
echo ----------------------------------------------------------------
|
echo ----------------------------------------------------------------
|
||||||
if not exist "%~d1%~p1bin\%~n2\%~n1.exe" GOTO:EOF
|
if not exist "%~d1%~p1bin\%~n2\%~n1.exe" GOTO:EOF
|
||||||
REM -----------------------------------------------------------------
|
REM -----------------------------------------------------------------
|
||||||
|
95
etc/Deployment/_deploy.bat
Normal file
95
etc/Deployment/_deploy.bat
Normal file
@ -0,0 +1,95 @@
|
|||||||
|
@echo off
|
||||||
|
REM ------------------------------------------
|
||||||
|
REM :: SETUP PATHS ::
|
||||||
|
REM ------------------------------------------
|
||||||
|
call _paths.bat
|
||||||
|
if not "%LAMEXP_ERROR%"=="0" (
|
||||||
|
call _error.bat "FAILD TO SETUP PATHS. CHECK YOUR 'BUILDENV.TXT' FILE"
|
||||||
|
GOTO:EOF
|
||||||
|
)
|
||||||
|
REM ------------------------------------------
|
||||||
|
if "%LAMEXP_CONFIG%"=="" (
|
||||||
|
set "LAMEXP_CONFIG=Release"
|
||||||
|
)
|
||||||
|
REM ------------------------------------------
|
||||||
|
set "OUT_PATH=..\..\bin\%LAMEXP_CONFIG%"
|
||||||
|
set "OUT_DATE=%DATE:~6,4%-%DATE:~3,2%-%DATE:~0,2%"
|
||||||
|
set "OUT_FILE=%OUT_PATH%\..\LameXP.%OUT_DATE%.%LAMEXP_CONFIG%"
|
||||||
|
set "TMP_PATH=%TEMP%\~LameXP.%OUT_DATE%.tmp"
|
||||||
|
REM ------------------------------------------
|
||||||
|
REM :: READ VERSION INFO ::
|
||||||
|
REM ------------------------------------------
|
||||||
|
call _version.bat
|
||||||
|
if not "%LAMEXP_ERROR%"=="0" (
|
||||||
|
call _error.bat "FAILD TO READ VERSION INFO!"
|
||||||
|
GOTO:EOF
|
||||||
|
)
|
||||||
|
REM ------------------------------------------
|
||||||
|
REM :: CLEAN UP ::
|
||||||
|
REM ------------------------------------------
|
||||||
|
del "%OUT_FILE%.exe"
|
||||||
|
del "%OUT_FILE%.zip"
|
||||||
|
if exist "%OUT_FILE%.exe" (
|
||||||
|
call _error.bat "FAILD TO DELET EXISTING FILE"
|
||||||
|
GOTO:EOF
|
||||||
|
)
|
||||||
|
if exist "%OUT_FILE%.zip" (
|
||||||
|
call _error.bat "FAILD TO DELET EXISTING FILE"
|
||||||
|
GOTO:EOF
|
||||||
|
)
|
||||||
|
REM ------------------------------------------
|
||||||
|
REM :: BUILD BINARIES ::
|
||||||
|
REM ------------------------------------------
|
||||||
|
call _build.bat "..\..\LameXP.sln" "%LAMEXP_CONFIG%"
|
||||||
|
if not "%LAMEXP_ERROR%"=="0" (
|
||||||
|
call _error.bat "BUILD HAS FAILED"
|
||||||
|
GOTO:EOF
|
||||||
|
)
|
||||||
|
REM ------------------------------------------
|
||||||
|
REM :: POST BUILD ::
|
||||||
|
REM ------------------------------------------
|
||||||
|
rd /S /Q "%TMP_PATH%"
|
||||||
|
mkdir "%TMP_PATH%"
|
||||||
|
mkdir "%TMP_PATH%\imageformats"
|
||||||
|
REM ------------------------------------------
|
||||||
|
copy "%OUT_PATH%\*.exe" "%TMP_PATH%"
|
||||||
|
copy "%QTDIR%\bin\QtCore4.dll" "%TMP_PATH%"
|
||||||
|
copy "%QTDIR%\bin\QtGui4.dll" "%TMP_PATH%"
|
||||||
|
copy "%QTDIR%\bin\QtXml4.dll" "%TMP_PATH%"
|
||||||
|
copy "%QTDIR%\bin\QtSvg4.dll" "%TMP_PATH%"
|
||||||
|
copy "%QTDIR%\plugins\imageformats\q???4.dll" "%TMP_PATH%\imageformats"
|
||||||
|
REM ------------------------------------------
|
||||||
|
for %%f in ("%TMP_PATH%\*.exe") do (
|
||||||
|
"%PATH_UPXBIN%\upx.exe" --best --lzma "%%f"
|
||||||
|
)
|
||||||
|
for %%f in ("%TMP_PATH%\*.dll") do (
|
||||||
|
"%PATH_UPXBIN%\upx.exe" --best --lzma "%%f"
|
||||||
|
)
|
||||||
|
REM ------------------------------------------
|
||||||
|
if exist _postproc.bat (
|
||||||
|
call _postproc.bat "%TMP_PATH%"
|
||||||
|
)
|
||||||
|
REM ------------------------------------------
|
||||||
|
copy "..\Redist\*.*" "%TMP_PATH%"
|
||||||
|
copy "..\..\License.txt" "%TMP_PATH%"
|
||||||
|
REM ------------------------------------------
|
||||||
|
REM :: CREATE PACKAGES ::
|
||||||
|
REM ------------------------------------------
|
||||||
|
"%PATH_SEVENZ%\7z.exe" a -tzip -r "%OUT_FILE%.zip" "%TMP_PATH%\*"
|
||||||
|
"%PATH_MKNSIS%\makensis.exe" "/DLAMEXP_SOURCE_PATH=%TMP_PATH%" "/DLAMEXP_OUTPUT_FILE=%OUT_FILE%.exe" "/DLAMEXP_DATE=%OUT_DATE%" "/DLAMEXP_VERSION=%VER_LAMEXP_MAJOR%.%VER_LAMEXP_MINOR_HI%%VER_LAMEXP_MINOR_LO%" "/DLAMEXP_BUILD=%VER_LAMEXP_BUILD%" "/DLAMEXP_SUFFIX=%VER_LAMEXP_SUFFIX%" "..\NSIS\setup.nsi"
|
||||||
|
rd /S /Q "%TMP_PATH%"
|
||||||
|
REM ------------------------------------------
|
||||||
|
if not exist "%OUT_FILE%.zip" (
|
||||||
|
call _error.bat "PACKAGING HAS FAILED"
|
||||||
|
GOTO:EOF
|
||||||
|
)
|
||||||
|
if not exist "%OUT_FILE%.exe" (
|
||||||
|
call _error.bat "PACKAGING HAS FAILED"
|
||||||
|
GOTO:EOF
|
||||||
|
)
|
||||||
|
REM ------------------------------------------
|
||||||
|
echo.
|
||||||
|
echo BUIDL COMPLETED SUCCESSFULLY :-)
|
||||||
|
echo.
|
||||||
|
REM ------------------------------------------
|
||||||
|
pause
|
@ -1,3 +1,3 @@
|
|||||||
@echo off
|
@echo off
|
||||||
call _build.bat "..\..\LameXP.sln" Debug
|
set "LAMEXP_CONFIG=Debug"
|
||||||
pause
|
call _deploy.bat
|
||||||
|
@ -1,88 +1,3 @@
|
|||||||
@echo off
|
@echo off
|
||||||
REM ------------------------------------------
|
set "LAMEXP_CONFIG=Release"
|
||||||
REM :: SETUP PATHS ::
|
call _deploy.bat
|
||||||
REM ------------------------------------------
|
|
||||||
call _paths.bat
|
|
||||||
if not "%LAMEXP_ERROR%"=="0" (
|
|
||||||
call _error.bat "FAILD TO SETUP PATHS. CHECK YOUR 'BUILDENV.TXT' FILE"
|
|
||||||
GOTO:EOF
|
|
||||||
)
|
|
||||||
REM ------------------------------------------
|
|
||||||
set "OUT_PATH=..\..\bin\Release"
|
|
||||||
set "OUT_DATE=%DATE:~6,4%-%DATE:~3,2%-%DATE:~0,2%"
|
|
||||||
set "OUT_FILE=%OUT_PATH%\..\LameXP.%OUT_DATE%.Release"
|
|
||||||
set "TMP_PATH=%TEMP%\~LameXP.%OUT_DATE%.tmp"
|
|
||||||
REM ------------------------------------------
|
|
||||||
REM :: READ VERSION INFO ::
|
|
||||||
REM ------------------------------------------
|
|
||||||
call _version.bat
|
|
||||||
if not "%LAMEXP_ERROR%"=="0" (
|
|
||||||
call _error.bat "FAILD TO READ VERSION INFO!"
|
|
||||||
GOTO:EOF
|
|
||||||
)
|
|
||||||
REM ------------------------------------------
|
|
||||||
REM :: CLEAN UP ::
|
|
||||||
REM ------------------------------------------
|
|
||||||
del "%OUT_FILE%.exe"
|
|
||||||
del "%OUT_FILE%.zip"
|
|
||||||
if exist "%OUT_FILE%.exe" (
|
|
||||||
call _error.bat "FAILD TO DELET EXISTING FILE"
|
|
||||||
GOTO:EOF
|
|
||||||
)
|
|
||||||
if exist "%OUT_FILE%.zip" (
|
|
||||||
call _error.bat "FAILD TO DELET EXISTING FILE"
|
|
||||||
GOTO:EOF
|
|
||||||
)
|
|
||||||
REM ------------------------------------------
|
|
||||||
REM :: BUILD BINARIES ::
|
|
||||||
REM ------------------------------------------
|
|
||||||
call _build.bat "..\..\LameXP.sln" Release
|
|
||||||
if not "%LAMEXP_ERROR%"=="0" (
|
|
||||||
call _error.bat "BUILD HAS FAILED"
|
|
||||||
GOTO:EOF
|
|
||||||
)
|
|
||||||
|
|
||||||
REM ------------------------------------------
|
|
||||||
REM :: POST BUILD ::
|
|
||||||
REM ------------------------------------------
|
|
||||||
rd /S /Q "%TMP_PATH%"
|
|
||||||
mkdir "%TMP_PATH%"
|
|
||||||
mkdir "%TMP_PATH%\imageformats"
|
|
||||||
REM ------------------------------------------
|
|
||||||
copy "%OUT_PATH%\*.exe" "%TMP_PATH%"
|
|
||||||
copy "%QTDIR%\bin\QtCore4.dll" "%TMP_PATH%"
|
|
||||||
copy "%QTDIR%\bin\QtGui4.dll" "%TMP_PATH%"
|
|
||||||
copy "%QTDIR%\bin\QtXml4.dll" "%TMP_PATH%"
|
|
||||||
copy "%QTDIR%\bin\QtSvg4.dll" "%TMP_PATH%"
|
|
||||||
copy "%QTDIR%\plugins\imageformats\q???4.dll" "%TMP_PATH%\imageformats"
|
|
||||||
REM ------------------------------------------
|
|
||||||
for %%f in ("%TMP_PATH%\*.exe") do (
|
|
||||||
"%PATH_UPXBIN%\upx.exe" --best --lzma "%%f"
|
|
||||||
)
|
|
||||||
for %%f in ("%TMP_PATH%\*.dll") do (
|
|
||||||
"%PATH_UPXBIN%\upx.exe" --best --lzma "%%f"
|
|
||||||
)
|
|
||||||
REM ------------------------------------------
|
|
||||||
copy "..\Redist\*.*" "%TMP_PATH%"
|
|
||||||
copy "..\..\License.txt" "%TMP_PATH%"
|
|
||||||
REM ------------------------------------------
|
|
||||||
REM :: CREATE PACKAGES ::
|
|
||||||
REM ------------------------------------------
|
|
||||||
"%PATH_SEVENZ%\7z.exe" a -tzip -r "%OUT_FILE%.zip" "%TMP_PATH%\*"
|
|
||||||
"%PATH_MKNSIS%\makensis.exe" "/DLAMEXP_SOURCE_PATH=%TMP_PATH%" "/DLAMEXP_OUTPUT_FILE=%OUT_FILE%.exe" "/DLAMEXP_DATE=%OUT_DATE%" "/DLAMEXP_VERSION=%VER_LAMEXP_MAJOR%.%VER_LAMEXP_MINOR_HI%%VER_LAMEXP_MINOR_LO%" "/DLAMEXP_BUILD=%VER_LAMEXP_BUILD%" "/DLAMEXP_SUFFIX=%VER_LAMEXP_SUFFIX%" "..\NSIS\setup.nsi"
|
|
||||||
rd /S /Q "%TMP_PATH%"
|
|
||||||
REM ------------------------------------------
|
|
||||||
if not exist "%OUT_FILE%.zip" (
|
|
||||||
call _error.bat "PACKAGING HAS FAILED"
|
|
||||||
GOTO:EOF
|
|
||||||
)
|
|
||||||
if not exist "%OUT_FILE%.exe" (
|
|
||||||
call _error.bat "PACKAGING HAS FAILED"
|
|
||||||
GOTO:EOF
|
|
||||||
)
|
|
||||||
REM ------------------------------------------
|
|
||||||
echo.
|
|
||||||
echo BUIDL COMPLETED SUCCESSFULLY :-)
|
|
||||||
echo.
|
|
||||||
REM ------------------------------------------
|
|
||||||
pause
|
|
||||||
|
3
etc/Deployment/release_static.bat
Normal file
3
etc/Deployment/release_static.bat
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
@echo off
|
||||||
|
set "LAMEXP_CONFIG=Release Static"
|
||||||
|
call _deploy.bat
|
@ -50,6 +50,11 @@
|
|||||||
#include <Psapi.h>
|
#include <Psapi.h>
|
||||||
#endif //_DEBUG
|
#endif //_DEBUG
|
||||||
|
|
||||||
|
//Disable nasty warning
|
||||||
|
#ifndef QT_DLL
|
||||||
|
#pragma warning(disable:4101)
|
||||||
|
#endif
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
// TYPES
|
// TYPES
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
@ -241,9 +246,15 @@ bool lamexp_init_qt(int argc, char* argv[])
|
|||||||
QCoreApplication::setLibraryPaths(QStringList() << QApplication::applicationDirPath());
|
QCoreApplication::setLibraryPaths(QStringList() << QApplication::applicationDirPath());
|
||||||
qDebug("Library Path:\n%s\n", QApplication::libraryPaths().first().toUtf8().constData());
|
qDebug("Library Path:\n%s\n", QApplication::libraryPaths().first().toUtf8().constData());
|
||||||
|
|
||||||
|
//Initialize static Qt plugins
|
||||||
|
#ifndef QT_DLL
|
||||||
|
Q_IMPORT_PLUGIN(qsvg);
|
||||||
|
Q_IMPORT_PLUGIN(qico);
|
||||||
|
#endif
|
||||||
|
|
||||||
//Check for supported image formats
|
//Check for supported image formats
|
||||||
QList<QByteArray> supportedFormats = QImageReader::supportedImageFormats();
|
QList<QByteArray> supportedFormats = QImageReader::supportedImageFormats();
|
||||||
if(!(supportedFormats.contains("png") && supportedFormats.contains("gif") && supportedFormats.contains("ico") && supportedFormats.contains("svg")))
|
if(!(supportedFormats.contains("png") && supportedFormats.contains("gif") && supportedFormats.contains("ico") && supportedFormats.contains("svg")))
|
||||||
{
|
{
|
||||||
qFatal("Qt initialization error: At least one image format plugin is missing!");
|
qFatal("Qt initialization error: At least one image format plugin is missing!");
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user