[AD] Patches for Allegro branch 5.0 examples

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Hi people, great job with Allegro 5!
I will start using it as soon as possible :D

Meanwhile I have this little patch to compile
some examples with cmake's WIN32 flag only
when it's necessary (if one example is compiled with
WIN32 and it uses printf(...) function, we will not
be able to see the output when we execute the
program from cmd.exe command line).

The patch adds an optional CONSOLE parameter to
the example() function in examples/CMakeLists.txt file.
Also it removes WIN32 flag and ALLEGRO_USE_CONSOLE
definition from some examples which do not need the
console anymore (e.g. ex_config, ex_dir, etc.)

P.S.: The following page need to be updated to
the new branch http://alleg.sourceforge.net/svn.html

Attachment: examples_CMakeLists.txt.patch
Description: Binary data



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/