URL:
  <http://gna.org/patch/?4345>

                 Summary: sys-tolua-cmd
                 Project: Freeciv
            Submitted by: cazfi
            Submitted on: Fri 20 Dec 2013 02:13:06 AM EET
                Category: bootstrap
                Priority: 5 - Normal
                  Status: Ready For Test
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 2.6.0

    _______________________________________________________

Details:

Add configure option --enable-sys-tolua-cmd.

That can be used to define tolua command to use when creating lua bindings.
Default is to use one build as part of freeciv, except when cross-compiling.
Simple --enable-sys-tolua-cmd searches the command from PATH. Any value given
to option is treated as full path to the executable.

This is mainly useful when cross-compiling. We've had long-standing
bug/limitation in cross-compiling that tolua build for the target is used on
build system if bindings need to be generated. The workaround for this has
been to first make native build that uses built native tolua to create lua
bindings and only then to make cross-compilation without regenerating
bindings. With this patch, assuming user has tolua for build system available,
build can happen cleanly at once. If tolua is not available, old workaround
can still be used in a bit modified form - to actual cross-compilation build
(in its own build directory) must be given --enable-sys-tolua-cmd=<path to
native build directory>/dependencies/tolua-5.2/src/bin/tolua

Another case where two passes has been necessary is building the distribution
tarballs. Compilation pass has been necessary to build tolua that the lua
binding generation needs. I have not yet tested, but in theory this patch
should help to get rid of the compilation pass.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Fri 20 Dec 2013 02:13:06 AM EET  Name: SysToluaCmd.patch  Size: 2kB  
By: cazfi

<http://gna.org/patch/download.php?file_id=19499>

    _______________________________________________________

Reply to this item at:

  <http://gna.org/patch/?4345>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to