.SDL: Updated doc

git-svn-id: svn://ultimatepp.org/upp/trunk@3541 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
koldo 2011-06-16 19:35:33 +00:00
parent 8655d8893f
commit a2bb4e27cf

View file

@ -32,8 +32,51 @@ folder structure like this:]&]
:: [s0; [2 drive:`\upp`\plugin`_LGPL`\SDL`\lib]]}}&]
[s0;2 &]
[s0;2 &]
[s0; [*2 Medium]&]
[s0; [*2 Medium/Hard]&]
[s0;2 &]
[s0; [2 Download binaries/prebuilt packages from ][^http`:`/`/www`.libsdl`.org`/download`-1`.2`.php^2 h
ere][2 .]&]
[s0;2 &]
[s0;i150;O0; [2 http://www.libsdl.org/release/SDL`-devel`-1.2.14`-VC8.zip]&]
[s0;i150;O0; [2 http://www.libsdl.org/release/SDL`-devel`-1.2.14`-mingw32.tar.gz]&]
[s0;2 &]
[s0; [2 unzip the stuff into 2 separate locations, e.g]&]
[s0;2 &]
[s0; [2 C:`\SDL`-devel`-1.2.14`-VC8`\SDL`-1.2.14]&]
[s0; [2 C:`\SDL`-devel`-1.2.14`-mingw32`\SDL`-1.2.14]&]
[s0;2 &]
[s0; [2 the build methods need to access those respective folders]&]
[s0;2 &]
[s0; [2 MSC build method, add to]&]
[s0;2 &]
[s0; [2 PATH: C:`\SDL`-devel`-1.2.14`-VC8`\SDL`-1.2.14`\lib]&]
[s0; [2 INCLUDE: C:`\SDL`-devel`-1.2.14`-VC8`\SDL`-1.2.14`\include]&]
[s0; [2 LIB: C:`\SDL`-devel`-1.2.14`-VC8`\SDL`-1.2.14`\lib]&]
[s0;2 &]
[s0; [2 MINGW/TDMGCC build method, add to]&]
[s0;2 &]
[s0; [2 PATH: C:`\SDL`-devel`-1.2.14`-mingw32`\SDL`-1.2.14`\lib]&]
[s0; [2 -|-|C:`\SDL`-devel`-1.2.14`-mingw32`\SDL`-1.2.14`\bin]&]
[s0; [2 INCLUDE: C:`\SDL`-devel`-1.2.14`-mingw32`\SDL`-1.2.14`\include]&]
[s0; [2 LIB: C:`\SDL`-devel`-1.2.14`-mingw32`\SDL`-1.2.14`\lib]&]
[s0; [2 -|-|C:`\SDL`-devel`-1.2.14`-mingw32`\SDL`-1.2.14`\bin]&]
[s0;2 &]
[s0; [2 the MSC libraries only come in shared linkage flavor, while
the mingw flavor can be linked both shared and staticly.]&]
[s0; [2 the mingw SDL.dll.a is needed for static linkage and has got
that weired name. who knows why. the SDL.dll comes in bin folder,
thats why double folder specification is needed fir MINGW build
method]&]
[s0;2 &]
[s0; [2 the WinMain`@16 compile problem for mingw (google for it) makes
the change of lib link order obligatory, thats why mingw32 is
specified explicitly last. this makes the ]&]
[s0; [2 WINAPI WinMain(...) `{ return main(); `}]&]
[s0; [2 hack obsolete and enables the native usage of SDL means to
handle entry point.]&]
[s0; [2 SDL redefines your own main to be SDL`_main (see SDL.h), and
provides own main. ]&]
[s0; [2 the signature is critical.it must be]&]
[s0; [2 int main(int argc, char`* argv`[`]);]&]
[s0;2 &]
[s0; [2 Download binaries from ][^http`:`/`/www`.libsdl`.org`/download`-1`.2`.php^2 here][2 .
]&]
[s0;2 ]