[SCM] Lisaac compiler branch, mildred-projects, updated. lisaac-0.12-425-g0ab69b6

Mildred Ki'Lya silkensedai at online.fr
Thu Aug 6 18:06:50 UTC 2009


The following commit has been merged in the mildred-projects branch:
commit 0ab69b688daae943b97101f159a94917b7470dd5
Author: Mildred Ki'Lya <silkensedai at online.fr>
Date:   Thu Aug 6 20:06:36 2009 +0200

    gotgot to add lib.lip

diff --git a/example/make.lip b/lib.lip
similarity index 52%
copy from example/make.lip
copy to lib.lip
index bc56b41..b99cec6 100644
--- a/example/make.lip
+++ b/lib.lip
@@ -19,39 +19,83 @@
 //                     http://isaacproject.u-strasbg.fr/                     //
 ///////////////////////////////////////////////////////////////////////////////
 
-// Lisaac Path Directory System (by Benoit Sonntag).
+// file LIP : LIsaac Path directory and make LIsaac Project system.
 
 Section Inherit
-  
-  + parent:STRING := "../make.lip";
+
+  + parent :STRING;
 
 Section Private
-  
-  - example_path <-
-  // Example path.
-  ( 
-    path ("su_doku/");
-    path ("tetris/");
-    path ("fouronline/");
-    path ("shell/");
-    path ("gui/calculator/");
-    path ("gui/viewer/");
-    path ("gui/about/");
-    path ("gui/clock/");
-    path ("gui/desktop/");
-    path ("gui/mpg2/");
-    path ("demomaker/fire/");
-    path ("demomaker/glass/");
-    path ("demomaker/rotozoom/");
+
+  + super:PROJECT;
+
+  - init prj:PROJECT <-
+  // Initialize the library
+  (
+    default_init prj;
+    lib;
+  );
+
+  - lib_none <-
+  // Load only lib essentials
+  (
+    path ("lib2/*");
+  );
+
+  - lib_unix <-
+  // Load lib implementation for Unix systems
+  (
+    lib_none;
+    path ("lib2_os/unix/system/");
+    path ("lib2_os/unix/file_system/");
+    path ("lib2_os/unix/video/");
   );
-    
-  //
-  // Execute function.
-  //
-  
-  - front_end <-
+
+  - lib_windows <-
+  // Load lib implementation for Windows systems
+  (
+    lib_none;
+    path ("lib2_os/unix/system/");
+    path ("lib2_os/windows/file_system/");
+    path ("lib2_os/unix/file_system/");  // BSBS: ??
+    path ("lib2_os/windows/video/");
+  );
+
+  - lib_dos <-
+  // Load lib implementation for DOS systems
+  (
+    lib_none;
+    path ("lib2_os/unix/system/");
+    path ("lib2_os/unix/file_system/"); // BSBS: ??
+    path ("lib2_os/dos/file_system/");
+    path ("lib2_os/dos/video/");
+  );
+
+  - lib_java <-
+  // Load lib implementation for the Java platform
+  (
+    lib_none;
+    path ("lib2_os/java/system/");
+    path ("lib2_os/java/file_system/");
+  );
+
+  - lib <-
+  // Load the lib depending on the target
   (
-    general_front_end;
-    example_path;    
+    (target = "dos").if {
+      lib_dos;
+    };
+    (target = "windows").if {
+      lib_windows;
+    };
+    (target = "unix").if {
+      lib_unix;
+    };
+    (target = "java").if {
+      lib_java;
+    };
+    (target = "").if {
+      "Target code needed.\n".print;
+      exit 1;
+    };
   );
-  

-- 
Lisaac compiler



More information about the Lisaac-commits mailing list