make.lip - autodetect platform?

Mildred Ki'Lya ml.mildred593 at gmail.com
Fri Jul 31 18:52:01 UTC 2009


On 07/31/2009 05:16 PM, Xavier Oswald wrote:
> We can create a make.lip generated when lisaac is going to be installed on a
> given platform and the use the others make.lip to inherit for the generated one.
>
>
> Comments ?
>   

That would be great, I was thinking about the same thing.
And I was also thinking that perhaps we could from inside Lisaac code
ask for the value of some .lip variables.

For example if in make.lip we have:

  + is_win32 :BOOLEAN := FALSE;
  + is_unix  :BOOLEAN := TRUE;
  + os_kernel  :STRING := "Linux";     // uname
  + os_name    :STRING := "GNU/Linux"; // uname -o
  + os_version :STRING := "2.6.29";    // uname -r
  + platform   :STRING := "i386"       // uname -i
  ...

We could write in Lisaac (.li files, not .lip files):

    (PROJECT.get_string_variable "os_name" == "Linux").if ...


Mildred

-- 
Mildred Ki'Lya
╭───────── mildred593@online.fr ──────────
│ Jabber, GoogleTalk: <mildred at jabber.fr>
│ Website: <http://ki.lya.online.fr>           GPG ID: 9A7D 2E2B
│ Fingerprint: 197C A7E6 645B 4299 6D37 684B 6F9D A8D6 9A7D 2E2B

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/lisaac-devel/attachments/20090731/6beaed4c/attachment.pgp>


More information about the Lisaac-devel mailing list