SubWCRev is no longer standalone, removed from dependencies and pointed the project files to find it via path

updated DevInfo.txt
applied khh's patch for gbalink.cpp though more changes are required to bring trunk up to building since the Wx patches
This commit is contained in:
squall-leonhart 2012-01-04 19:38:33 +00:00
parent 093da8983f
commit da25a02d6b
4 changed files with 20 additions and 15 deletions

View File

@ -44,9 +44,10 @@ Refer to the instructions below for further assistance:
===Win32/MFC=== ===Win32/MFC===
This is the full-featured Windows build using the MFC GUI. This is the full-featured Windows build using the MFC GUI.
The project files are located in trunk/project/vc2008_mfc (VBA2008.sln). The project files are located in /project/vc2008_mfc (VBA2008.sln) and /project/vs2010_mfc (VBA2010.sln).
You also have to install Microsoft's DirectX SDK for Direct3D, DirectInput & XAudio2. You also have to install Microsoft's DirectX SDK for Direct3D, DirectInput & XAudio2.
If you want to enable OpenAL sound output, install the OpenAL SDK. If you do not want it, #define NO_OAL. If you want to enable OpenAL sound output, install the OpenAL SDK. If you do not want it, #define NO_OAL.
Some pixel filters come with assembler code, which is compatible to the NASM syntax. Some pixel filters come with assembler code, which is compatible to the NASM syntax.
Install NASM somewhere and add it to your compiler's executable file paths. Install NASM somewhere and add it to your compiler's executable file paths.
All .asm files will be handled with the "nasm.rules" build rules file which comes with this project file. All .asm files will be handled with the "nasm.rules" build rules file which comes with this project file.
SubWCRev.exe is used to append the svn versioning to the output executable, this should already be present if you pulled from the svn, but will require installing if you downloaded the project as a tarball.

Binary file not shown.

View File

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations"> <ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32"> <ProjectConfiguration Include="Debug|Win32">
@ -78,7 +78,7 @@
<Path>$(IntDir)$(ProjectName)_BuildLog.htm</Path> <Path>$(IntDir)$(ProjectName)_BuildLog.htm</Path>
</BuildLog> </BuildLog>
<PreBuildEvent> <PreBuildEvent>
<Command>..\..\..\dependencies\SubWCRev.exe ..\.. svnrev_template.h ..\..\src\svnrev.h</Command> <Command>SubWCRev.exe ..\.. svnrev_template.h ..\..\src\svnrev.h</Command>
</PreBuildEvent> </PreBuildEvent>
<Midl> <Midl>
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
@ -131,7 +131,7 @@
<Path>$(IntDir)$(ProjectName)_BuildLog.htm</Path> <Path>$(IntDir)$(ProjectName)_BuildLog.htm</Path>
</BuildLog> </BuildLog>
<PreBuildEvent> <PreBuildEvent>
<Command>..\..\..\dependencies\SubWCRev.exe ..\.. svnrev_template.h ..\..\src\svnrev.h</Command> <Command>SubWCRev.exe ..\.. svnrev_template.h ..\..\src\svnrev.h</Command>
</PreBuildEvent> </PreBuildEvent>
<Midl> <Midl>
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>

View File

@ -24,7 +24,7 @@ bool gba_link_enabled = false;
#define _(x) x #define _(x) x
#endif #endif
#define N_(x) x #define N_(x) x
#ifdef __WIN32__ #if (defined __WIN32__ || defined _WIN32)
#include <windows.h> #include <windows.h>
#else #else
#include <sys/mman.h> #include <sys/mman.h>
@ -145,19 +145,19 @@ u8 tspeed = 3;
u8 transfer = 0; u8 transfer = 0;
LINKDATA *linkmem = NULL; LINKDATA *linkmem = NULL;
int linkid = 0, vbaid = 0; int linkid = 0, vbaid = 0;
#ifdef __WIN32__ #if (defined __WIN32__ || defined _WIN32)
HANDLE linksync[4]; HANDLE linksync[4];
#else #else
sem_t *linksync[4]; sem_t *linksync[4];
#endif #endif
int savedlinktime = 0; int savedlinktime = 0;
#ifdef __WIN32__ #if (defined __WIN32__ || defined _WIN32)
HANDLE mmf = NULL; HANDLE mmf = NULL;
#else #else
int mmf = -1; int mmf = -1;
#endif #endif
char linkevent[] = char linkevent[] =
#ifndef __WIN32__ #if !(defined __WIN32__ || defined _WIN32)
"/" "/"
#endif #endif
"VBA link event "; "VBA link event ";
@ -964,7 +964,7 @@ bool InitLink()
{ {
linkid = 0; linkid = 0;
#ifdef __WIN32__ #if (defined __WIN32__ || defined _WIN32)
if((mmf=CreateFileMapping(INVALID_HANDLE_VALUE, NULL, PAGE_READWRITE, 0, sizeof(LINKDATA), LOCAL_LINK_NAME))==NULL){ if((mmf=CreateFileMapping(INVALID_HANDLE_VALUE, NULL, PAGE_READWRITE, 0, sizeof(LINKDATA), LOCAL_LINK_NAME))==NULL){
systemMessage(0, N_("Error creating file mapping")); systemMessage(0, N_("Error creating file mapping"));
return false; return false;
@ -1019,7 +1019,7 @@ bool InitLink()
break; break;
} }
if(vbaid == 4){ if(vbaid == 4){
#ifdef __WIN32__ #if (defined __WIN32__ || defined _WIN32)
UnmapViewOfFile(linkmem); UnmapViewOfFile(linkmem);
CloseHandle(mmf); CloseHandle(mmf);
#else #else
@ -1039,7 +1039,7 @@ bool InitLink()
for(i=0;i<4;i++){ for(i=0;i<4;i++){
linkevent[sizeof(linkevent)-2]=(char)i+'1'; linkevent[sizeof(linkevent)-2]=(char)i+'1';
#ifdef __WIN32__ #if (defined __WIN32__ || defined _WIN32)
linksync[i] = firstone ? linksync[i] = firstone ?
CreateSemaphore(NULL, 0, 4, linkevent) : CreateSemaphore(NULL, 0, 4, linkevent) :
OpenSemaphore(SEMAPHORE_ALL_ACCESS, false, linkevent); OpenSemaphore(SEMAPHORE_ALL_ACCESS, false, linkevent);
@ -1126,7 +1126,7 @@ void CloseLink(void){
for(i=0;i<4;i++){ for(i=0;i<4;i++){
if(linksync[i]!=NULL){ if(linksync[i]!=NULL){
#ifdef __WIN32__ #if (defined __WIN32__ || defined _WIN32)
ReleaseSemaphore(linksync[i], 1, NULL); ReleaseSemaphore(linksync[i], 1, NULL);
CloseHandle(linksync[i]); CloseHandle(linksync[i]);
#else #else
@ -1138,7 +1138,7 @@ void CloseLink(void){
#endif #endif
} }
} }
#ifdef __WIN32__ #if (defined __WIN32__ || defined _WIN32)
CloseHandle(mmf); CloseHandle(mmf);
UnmapViewOfFile(linkmem); UnmapViewOfFile(linkmem);
@ -1159,7 +1159,7 @@ void CloseLink(void){
// this may be necessary under MSW as well, but I wouldn't know how // this may be necessary under MSW as well, but I wouldn't know how
void CleanLocalLink() void CleanLocalLink()
{ {
#ifndef __WIN32__ #if !(defined __WIN32__ || defined _WIN32)
shm_unlink("/" LOCAL_LINK_NAME); shm_unlink("/" LOCAL_LINK_NAME);
for(int i = 0; i < 4; i++) { for(int i = 0; i < 4; i++) {
linkevent[sizeof(linkevent) - 2] = '1' + i; linkevent[sizeof(linkevent) - 2] = '1' + i;
@ -1383,7 +1383,11 @@ void LinkClientThread(void *_cid){
// even connected yet // even connected yet
// corrected sleep on socket worked, but this is more sane // corrected sleep on socket worked, but this is more sane
// and probably less portable... works with mingw32 at least // and probably less portable... works with mingw32 at least
usleep(100000); #if (defined __WIN32__ || defined _WIN32)
Sleep(100); // in milliseconds
#else
usleep(100000); // in microseconds
#endif
} }
numbytes = 0; numbytes = 0;