On 16 September 2010 23:42, David Gowers <[email protected]> wrote: > On Thu, Sep 16, 2010 at 8:35 PM, Mike <[email protected]> wrote: >> IIRC, you need to include -m game while compiling game.bas itself. Possibly >> while compiling all modules. > > Thanks muchly Mike, that fixed it :D > > The attached SConscript should have functionality roughly equivalent > to TMC's Makefile (plus dependency auto-discovering, and not needing > verprint.bas)
So far I've only tried it under windows. I got much further than Seth.
I didn't have his problems with svn. "scons env="PATH:%PATH%"" doesn't
work for me; I doubt it's correct. Instead I appended the Environment
constructor call:
env = Environment (OHRGFX = env.get('OHRGFX','sdl+fb'),
...
ENV = os.environ)
It's interesting that SCons ignores the environment's PATH by default.
While this is mostly fine on Unix, it means you are pretty much always
going to have to add the external PATH to env under Windows if you're
calling any external programs.
I found and fixed quite a few other problems (see patch), however I
get stuck at this point:
scons: *** [build\game.exe] Source `build\blit.o' not found, needed by
target `build\game.exe'.
scons: building terminated because of errors.
Looks like the rules for .c files are default, so I have no idea
what's going on here.
> -- ie build game and custom.
> It needs testing on Windows.. in particular, I don't know whether
> --std=c99 will work for some of the Windows music .c source files
> (it's currently used for all C compilation)
There are no music .c source files (there was a typo: audwrap.c should
be audwrap.o). Note that audwrap and music_native work under linux
(IIRC, you should be able to compile audwrap even if you don't have
audiere installed, but you can't link the whole program).
music_native2 is windows-only.
It looks like you're using a mix of compiling .c files, and using the
precompiled audwrap.o files. Currently we don't require gcc to compile
the OHR under windows. The Makefile doesn't assume gcc is available
either. Whether or not the scons build system depends on gcc is a
completely independent question; but I suggest sticking to one style
or the other.
> Currently building is done in a build/ subdir. This obsoletes eg
> 'clean' targets (just 'rm -r ./build') and keeps .o files from
> cluttering up the source directory.
Nice and clean.
> I'll look at the reload stuff etc tomorrow. Also the utils, and the
> distrib commands. That should just about cover the functionality and I
> can start making it look more organized :)
>
> _______________________________________________
> Ohrrpgce mailing list
> [email protected]
> http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
>
>
sconscript.patch
Description: Binary data
_______________________________________________ Ohrrpgce mailing list [email protected] http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
