ADDED very basic Qt build system and a VC2008 project file using the QMake file.

This commit is contained in:
spacy51 2008-02-02 14:51:23 +00:00
parent 33299f49d3
commit f914494cb1
5 changed files with 137 additions and 0 deletions

5
project/qmake/vba-m.pro Normal file
View File

@ -0,0 +1,5 @@
TEMPLATE = app
CONFIG += qt
TARGET = VisualBoyAdvance
HEADERS += ../../src/qt/main.h
SOURCES += ../../src/qt/main.cpp

20
project/vc2008/vba-m.sln Normal file
View File

@ -0,0 +1,20 @@

Microsoft Visual Studio Solution File, Format Version 10.00
# Visual C++ Express 2008
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "vba-m", "vba-m.vcproj", "{714B3EF3-5D43-421F-A97E-447540E7C137}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
debug|Win32 = debug|Win32
release|Win32 = release|Win32
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{714B3EF3-5D43-421F-A97E-447540E7C137}.debug|Win32.ActiveCfg = debug|Win32
{714B3EF3-5D43-421F-A97E-447540E7C137}.debug|Win32.Build.0 = debug|Win32
{714B3EF3-5D43-421F-A97E-447540E7C137}.release|Win32.ActiveCfg = release|Win32
{714B3EF3-5D43-421F-A97E-447540E7C137}.release|Win32.Build.0 = release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal

View File

@ -0,0 +1,90 @@
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="9,00"
Name="vba-m"
ProjectGUID="{714B3EF3-5D43-421F-A97E-447540E7C137}"
RootNamespace="vba-m"
Keyword="MakeFileProj"
TargetFrameworkVersion="196613"
>
<Platforms>
<Platform
Name="Win32"
/>
</Platforms>
<ToolFiles>
</ToolFiles>
<Configurations>
<Configuration
Name="debug|Win32"
OutputDirectory="$(ConfigurationName)"
IntermediateDirectory="$(ConfigurationName)"
ConfigurationType="0"
>
<Tool
Name="VCNMakeTool"
BuildCommandLine="qmake -makefile -win32 -Wall ../qmake/vba-m.pro&#x0D;&#x0A;nmake $(ConfigurationName)"
ReBuildCommandLine="qmake -makefile -win32 -Wall ../qmake/vba-m.pro&#x0D;&#x0A;nmake $(ConfigurationName)"
CleanCommandLine="nmake distclean&#x0D;&#x0A;rmdir /S /Q debug&#x0D;&#x0A;rmdir /S /Q release&#x0D;&#x0A;"
Output="$(OutDir)/VisualBoyAdvance.exe"
PreprocessorDefinitions="WIN32;_DEBUG"
IncludeSearchPath=""
ForcedIncludes=""
AssemblySearchPath=""
ForcedUsingAssemblies=""
CompileAsManaged=""
/>
</Configuration>
<Configuration
Name="release|Win32"
OutputDirectory="$(ConfigurationName)"
IntermediateDirectory="$(ConfigurationName)"
ConfigurationType="0"
>
<Tool
Name="VCNMakeTool"
BuildCommandLine="qmake -makefile -win32 -Wall ../qmake/vba-m.pro&#x0D;&#x0A;nmake $(ConfigurationName)"
ReBuildCommandLine="qmake -makefile -win32 -Wall ../qmake/vba-m.pro&#x0D;&#x0A;nmake $(ConfigurationName)"
CleanCommandLine="nmake distclean&#x0D;&#x0A;rmdir /S /Q debug&#x0D;&#x0A;rmdir /S /Q release&#x0D;&#x0A;"
Output="$(OutDir)/VisualBoyAdvance.exe"
PreprocessorDefinitions="WIN32;NDEBUG"
IncludeSearchPath=""
ForcedIncludes=""
AssemblySearchPath=""
ForcedUsingAssemblies=""
CompileAsManaged=""
/>
</Configuration>
</Configurations>
<References>
</References>
<Files>
<Filter
Name="GUI"
>
<Filter
Name="main"
>
<File
RelativePath="..\..\src\qt\main.cpp"
>
</File>
<File
RelativePath="..\..\src\qt\main.h"
>
</File>
</Filter>
</Filter>
<Filter
Name="Makefile"
>
<File
RelativePath="..\qmake\vba-m.pro"
>
</File>
</Filter>
</Files>
<Globals>
</Globals>
</VisualStudioProject>

16
src/qt/main.cpp Normal file
View File

@ -0,0 +1,16 @@
#include "main.h"
#include <QApplication>
#include <QPushButton>
int main( int argc, char *argv[] )
{
QApplication theApp( argc, argv );
QPushButton hello( TEST_STRING );
hello.resize( 192, 48 );
hello.show();
return theApp.exec();
}

6
src/qt/main.h Normal file
View File

@ -0,0 +1,6 @@
#ifndef MAIN_H
#define MAIN_H
#define TEST_STRING "Hello World!"
#endif // #ifndef MAIN_H