2007-12-23 20:51:19 +00:00
==========================
Developer Information File
==========================
2007-11-14 12:28:27 +00:00
2007-12-05 23:28:53 +00:00
2007-12-23 20:51:19 +00:00
Known preprocessor switches:
- SDL: Defined for the SDL version
2007-12-25 16:22:30 +00:00
- GBA_LOGGING: Enables logging for the GBA core
- FINAL_VERSION: Defined for release versions, disables additional GBA logging and completely disables GB logging. Increases the amount of CPU cycles being emulated in one go.
2007-12-23 20:51:19 +00:00
- BKPT_SUPPORT
- MMX: Enable MMX instruction set
2007-12-30 20:09:14 +00:00
- NO_ASM: Use C++ version of hq3x/4x filters
2007-12-30 21:11:40 +00:00
- RGB555: Use 16bit colors with 5bit green instead of 6bit green in hq3x/4x filters (C++ version)
2007-12-23 20:51:19 +00:00
- NO_OGL: Exclude OpenGL code
- NO_D3D: Exclude Direct3D code
- NO_OAL: Exclude OpenAL code
2008-08-13 10:01:39 +00:00
- NO_XAUDIO2: Exclude XAudio2 code (the XAudio2 interface is DirectSound's successor)
2007-12-05 23:28:53 +00:00
Download locations:
2008-08-13 10:01:39 +00:00
NASM: http://nasm.sourceforge.net/
2007-12-25 15:22:32 +00:00
DirectX SDK: http://msdn2.microsoft.com/en-us/xna/aa937788.aspx
2008-08-13 10:01:39 +00:00
OpenAL SDK: http://connect.creativelabs.com/openal/default.aspx
2008-03-08 13:59:23 +00:00
OpenGL files: http://www.opengl.org/registry/
zlib: http://zlib.net/
libpng: http://libpng.org/pub/png/libpng.html
2008-08-13 23:20:45 +00:00
UPX: http://upx.sourceforge.net/
2008-03-08 13:59:23 +00:00
2008-07-26 11:43:28 +00:00
You can find pre-built versions of zlib & libpng at:
http://vba-m.ngemu.com/vbam/vbasources/libs/
Just extract them somewhere and point Visual C++ 2008 to the include & lib folders.
They are built with the static C runtime (this is what the releases use).
2008-03-08 13:59:23 +00:00
#################################
# Visual C++ 2008 project files #
#################################
2008-08-14 16:36:51 +00:00
Using Microsoft Visual C++ 2008, you can build the Win32/MFC and the Win32/Qt build.
Refer to the instructions below for further assistance:
2008-03-08 13:59:23 +00:00
2008-05-19 11:25:30 +00:00
===Win32/MFC===
2008-08-14 16:36:51 +00:00
This is the full-featured Windows build using the MFC GUI.
The project files are located in trunk/project/vc2008_mfc (VBA2008.sln).
Before you can compile it, you have to take care of some prerequisites:
Download the zlib & libpng sources from the internet and extract them both to the same folder.
Rename them so you have a folder called libpng and another one called zlib in the same loaction.
Open libpng/projects/visualc71/libpng.sln. Let the assistant convert them if necessary.
Build the "DLL Release" & "DLL Debug" configurations.
Set up your operating system's PATH variable to point to the created zlib & libpng DLLs.
Set up your compiler's LIB & INCLUDE paths to point to the created lib files and the source files.
You also have to install Microsoft's DirectX SDK for DirectInput & XAudio2.
2008-03-08 13:59:23 +00:00
If you want to enable OpenAL sound output, install the OpenAL SDK. If you do not want it, #define NO_OAL.
2008-08-14 16:36:51 +00:00
Some pixel filters come with assembler code, which compatible to the NASM syntax.
Extract 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.
2008-03-08 13:59:23 +00:00
2008-05-19 11:25:30 +00:00
===Win32/Qt===
2008-08-13 23:04:31 +00:00
The MS Visual C++ 2008 Express-compatible project file can be found in trunk/project/vc2008_qt.
It uses the qmake file in trunk/project/qmake, so you always have to add files to the VC++ project file AND the qmake file!
IMPORTANT: The Qt-sources have to be compiled with the Microsoft compiler first, in order to use it,
because the default binary distribution was compiled with mingw and will not work with the MS Compiler.
Continue by reading "How to compile Qt from source with Visual C++ 2008".
2008-08-13 23:20:45 +00:00
The release build will automatically be compressed with UPX, make sure to download it and point MSVC++ to it.
2008-08-13 23:04:31 +00:00
######################################################
# How to compile Qt from source with Visual C++ 2008 #
######################################################
- Download the latest Qt source code archive from http://trolltech.com/developer/downloads/qt/windows
- You want "qt-win-opensource-src-x.x.x.zip", not "qt-win-opensource-x.x.x-mingw.exe"
- This how-to was witten when Qt 4.4.1 was the current version.
- Extract the archive somewhere.
- Start a Visual Studio build command promt and cd to the extracted files.
- You can find it in the start menu in "Microsoft Visual Studio 2008\Visual Studio Tools\Visual Studio 2008 Command Prompt".
- Type & run "configure -release -fast -no-qt3support -platform win32-msvc2008"
- When configure finished, simply run "nmake" and get yourself a coffee or ten.
- When nmake finished and you've become a coffee addict, add the created lib files to your Visual Studio paths, do the same for the include paths.