[Scummvm-devel] Clarifying & cleaning configure's cross-compiling craziness

Klaus Reimer k at ailis.de
Wed May 4 16:24:41 CEST 2011


On 05/04/2011 02:38 PM, Max Horn wrote:
> Well, there is more, but just take a glance at the gist
> <https://gist.github.com/955116>, search for "TODO", and then reply
> to this email if you like.

Let me answer the webos questions:

> webos also overrides datarootdir, datadir, docdir -- why?

The structure of the ScummVM files of webOS port is like this:

  com.github.kayahr.scummvm/
    bin/
    lib/
    data/
    doc/

When I don't override datarootdir, datadir and docdir (And plugindir)
then the structure would be like this (If I remember correctly):

  com.github.kayahr.scummvm/
    bin/
    lib/scummvm/
    share/scummvm/
    doc/scummvm/

This structure makes no sense because the scummvm app already has it's
own folder so there is no need to have a "scummvm" folder below the
other directories. And a "share" folder also makes no sense because the
folder isn't shared with any other app. That's why I wanted it to be
named "data".

The installation of the files is done in the webos.mk file and I could
simply ignore docdir and change the install parameters but the datadir
is more problematic because this variable is also used by ScummVM to
find the place where to search for themes and dat files. I know there
are configuration keys for setting the theme path and extras path but in
my opinion it is better when the paths in the binary are already correct
and don't need to be corrected by the scummvmrc.

Another alternative is specifying --datadir and --docdir parameters on
every build but then this must be hardcoded in the buildbot which is
even worse.

If there is a better way to do it, please let me know. It would be nice
to be able to specify platform specific defaults for these paths so it
is still possible to override them with configure parameters. But the
platform is only known after parsing the configure parameters and then
the default values are already set.


> TODO: All (?) SDL based ports run find_sdlconfig here -- except for
> the WebOS and WinCE ports -- why? shouldn't they also use
> find_sdlconfig?

There is no sdl-config in the WebOS PDK which can be used for
cross-compiling. There is one which contains wrong paths and includes
MacOS X framework libraries and which is therefor unusable for
cross-compiling. That's why I'm ignoring it. I could fix this script but
then it will only work on buildbot and on my own systems. Don't think
that's a good idea.

-- 
Bye, K <http://www.ailis.de/~k/>
[A735 47EC D87B 1F15 C1E9 53D3 AA03 6173 A723 E391]
(Finger k at ailis.de to get public key)




More information about the Scummvm-devel mailing list