X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pages%2Fblog-0001.html-inc;h=317d824280cf826a66265ec0842be5fb27b9d59c;hb=1d5d4d44a3acf89f7820195b5016f4ebc4489250;hp=4c366da9655f0706e833bbc242ab0e3902d77a9f;hpb=65a973147068b3edbbb232aa50fd53a79d7daaef;p=sdlgit%2FSDL-Site.git diff --git a/pages/blog-0001.html-inc b/pages/blog-0001.html-inc index 4c366da..317d824 100644 --- a/pages/blog-0001.html-inc +++ b/pages/blog-0001.html-inc @@ -1,26 +1,78 @@

-The Build Process of SDL Perl +Grant Progess Reports 1-3: Sept - Nov

-

A while ago I had a long chat with mst on why SDL uses Module::Build rather then Make. I told him it is a simple matter of code inertia. The existing Module::Build system has worked well for us so far. Never the less, he convinced me that switching to Make will improve debugging the Build system. But to be able to switch we will need to completely replace the Build system. I am not prepared to do that so I will just present the requirements so mst or someone else can at least attempt to switch.


+As you know I have received a TPF grant to write a SDL Perl Manual.
+
+

+http://news.perlfoundation.org/2010/08/2010q3-grant-proposal-manual-f.html

-

The Build Process


- Alien::SDL
+http://news.perlfoundation.org/2010/08/accepted-grants-for-2010q3.html

-

SDL Perl depends on a few C libraries for a complete install. This is handled by Alien::SDL. First we look for existing SDL libraries and dependencies by doing a File::Find for headers. If these headers are found we present and option for the user to use those. We then store these locations in Alien::SDL->config options 'cflags', 'prefix' and 'libs'. If we do not have libraries available even for a minimum SDL installed ( SDL.h is not found). We provide several platform specific options.


-

For windows we have a simpler process. We download prebuilt binaries ( and checksum ) based on the user's selection and just copy them in to the right location. Again the 'prefix', 'cflags', and 'libs' is saved in Alien::SDL->config.


-

For *nix/MacOSX we download sources and attempt to compile them. To be able to do this we download several other dependencies like libpng, jpeg and pango. You can see how we do this using hashes here. During the compile process we also apply patches as needed for the sources. Once this is done we can head to SDL Build.PL


- SDL Perl dependency resolution
+I have been a bit busy with that and not been able to update my blog. Anyway here are some of the back dated Grant Updates. These updates where also posted on http://news.perlfoundation.org/

-SDL's Build is responsible for linking the right libraries to the correct XS. If libraries are missing it will disable the component (not put it in SDL->config).

-

For example to build Image.xs we require libsdl, libsdl_image and lib[jpg|png|tiff]. So we would check for these headers in the prefix provided by Alien::SDL->config. If they are not provided we will disable the SDL::Image module.


-

More over the availability of each library is specified as a -DMACRO to the gcc compiler. This way we can prevent XS failures due to missing libraries using #DEFINES. Here the SDL_image macro is defined and used. The availability of the module is then available from SDL::Config->has()
+

+

REPORT 1: Sept 2010

+Progress: 2.75 chapters / 11 chapters = approx 25%
+Kartik's work can be followed at:
+

- Conclusion
-

This is a high level overview of our Build process, because frankly I hate traumatizing my brain with this again. Credits have to go to FROGGS and kmx for helping with this Build scheme. Hopefully my post have helped people at the very least appreciate the problem scope of this Build system. That said I believe a fresh written build system, with these requirements in mind, will be more then welcome.
-

-


-

\ No newline at end of file +
REPORT 2: October 2010

+
Since last time:
+Chapters:
+Extra:
+Coments:
+Our work can be seen at:
+

+
REPORT 3: November 2010

+This is the progress so far:
+
+- SDL 2.523 Releases:
+        - Adds stability and better memory management for the game loop
+
+- 2 chapters have been completed
+        - Pong Chapter (Contributed by garu)
+        - Additional Modules
+- 1 extra chapter has been added
+        - Puzz(le) Chapter (Contributed by Blaizer)
+
+- 2 Chapters are in the Works
+        - Tetris Code has been mostly done (contributed by FROGGS)
+                - Needs to be fixed
+                - Needs write up
+        - Sound and Music Effects code is done
+                - Needs to be fixed
+                - Needs write up
+
+Our work can be seen at:
http://sdlperl.ath.cx/releases/SDL_Manual.pdf
http://sdlperl.ath.cx/releases/SDL_Manual.html
http://github.com/PerlGameDev/SDL_Manual

+Regards,
+YAPGH
+


+

\ No newline at end of file