]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/tools/build/src/tools/unix.jam
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / tools / build / src / tools / unix.jam
index 75949851a0cb9b453a404df0d27ed4272cc5601a..c86f089de77a9f1f15ed3cc7ad6cec1bc7324424 100644 (file)
@@ -1,8 +1,8 @@
 #  Copyright (c) 2004 Vladimir Prus.
 #
 #  Use, modification and distribution is subject to the Boost Software
-#  License Version 1.0. (See accompanying file LICENSE_1_0.txt or
-#  http://www.boost.org/LICENSE_1_0.txt)
+#  License Version 1.0. (See accompanying file LICENSE.txt or
+#  https://www.bfgroup.xyz/b2/LICENSE.txt)
 
 #  This file implements linking semantic common to all unixes. On unix, static
 #  libraries must be specified in a fixed order on the linker command line. Generators
@@ -21,30 +21,30 @@ class unix-linking-generator : linking-generator
     import property-set ;
     import type ;
     import unix ;
-    
-    rule __init__ ( id 
+
+    rule __init__ ( id
         composing ? : # Specify if generator is composing. The generator will be
         # composing if non-empty string is passed, or parameter is
         # not given. To make generator non-composing, pass empty
         # string ("")
-        source-types + : target-types + : 
+        source-types + : target-types + :
         requirements * )
     {
         composing ?= true ;
         generator.__init__ $(id) $(composing) : $(source-types) : $(target-types) :
           $(requirements) ;
     }
-    
+
     rule run ( project name ? : property-set : sources + )
-    {   
+    {
         local result = [ linking-generator.run $(project) $(name) : $(property-set)
           : $(sources) ] ;
-        
+
         unix.set-library-order $(sources) : $(property-set) : $(result[2-]) ;
-                                
+
         return $(result) ;
     }
-    
+
     rule generated-targets ( sources + : property-set : project name ? )
     {
         local sources2 ;
@@ -58,64 +58,64 @@ class unix-linking-generator : linking-generator
             else
             {
                 sources2 += $(l) ;
-            }            
+            }
         }
-        
+
         sources = $(sources2) [ unix.order-libraries $(libraries) ] ;
-        
+
         return [ linking-generator.generated-targets $(sources) : $(property-set)
           : $(project) $(name) ] ;
     }
-    
-} 
+
+}
 
 class unix-archive-generator : archive-generator
 {
-    import unix ; 
+    import unix ;
 
-    rule __init__ ( id composing ? : source-types + : target-types + : 
+    rule __init__ ( id composing ? : source-types + : target-types + :
         requirements * )
     {
         composing ?= true ;
         archive-generator.__init__ $(id) $(composing) : $(source-types) : $(target-types) :
           $(requirements) ;
     }
-        
+
     rule run ( project name ? : property-set : sources + )
-    {                                
+    {
         local result = [ archive-generator.run $(project) $(name) : $(property-set)
           : $(sources) ] ;
-        
+
         unix.set-library-order $(sources) : $(property-set) : $(result[2-]) ;
-        
+
         return $(result) ;
 
-    }    
+    }
 }
 
 class unix-searched-lib-generator : searched-lib-generator
 {
     import unix ;
     rule __init__ ( * : * )
-    { 
-        generator.__init__ 
+    {
+        generator.__init__
           $(1) : $(2) : $(3) : $(4) : $(5) : $(6) : $(7) : $(8) : $(9) ;
     }
-    
+
     rule optional-properties ( )
     {
         return $(self.requirements) ;
     }
-              
+
     rule run ( project name ? : property-set : sources * )
     {
-        local result = [ searched-lib-generator.run $(project) $(name) 
+        local result = [ searched-lib-generator.run $(project) $(name)
           : $(property-set) : $(sources) ] ;
-        
+
         unix.set-library-order $(sources) : $(property-set) : $(result[2-]) ;
-        
+
         return $(result) ;
-    }    
+    }
 }
 
 class unix-prebuilt-lib-generator : generator
@@ -131,27 +131,27 @@ class unix-prebuilt-lib-generator : generator
         local f = [ $(property-set).get <file> ] ;
         unix.set-library-order-aux $(f) : $(sources) ;
         return $(f) $(sources) ;
-    }    
+    }
 }
 
-generators.register 
-  [ new unix-prebuilt-lib-generator unix.prebuilt : : LIB 
+generators.register
+  [ new unix-prebuilt-lib-generator unix.prebuilt : : LIB
       : <file> <toolset>unix ] ;
 
 generators.override unix.prebuilt : builtin.lib-generator ;
 
 
 # Declare generators
-generators.register [ new unix-linking-generator unix.link : LIB OBJ : EXE 
+generators.register [ new unix-linking-generator unix.link : LIB OBJ : EXE
     : <toolset>unix ] ;
 
-generators.register [ new unix-archive-generator unix.archive : OBJ : STATIC_LIB 
+generators.register [ new unix-archive-generator unix.archive : OBJ : STATIC_LIB
     : <toolset>unix ] ;
 
-generators.register [ new unix-linking-generator unix.link.dll : LIB OBJ : SHARED_LIB 
+generators.register [ new unix-linking-generator unix.link.dll : LIB OBJ : SHARED_LIB
     : <toolset>unix ] ;
 
-generators.register [ new unix-searched-lib-generator 
+generators.register [ new unix-searched-lib-generator
    unix.searched-lib-generator : : SEARCHED_LIB : <toolset>unix ] ;
 
 
@@ -162,40 +162,40 @@ actions link {
 actions link.dll {
 }
 
-actions archive {    
+actions archive {
 }
 
-actions searched-lib-generator {    
+actions searched-lib-generator {
 }
 
 actions prebuilt {
 }
 
-    
+
 
 
 
 .order = [ new order ] ;
 
 rule set-library-order-aux ( from * : to * )
-{        
+{
     for local f in $(from)
     {
         for local t in $(to)
-        {            
+        {
             if $(f) != $(t)
-            {                
+            {
                 $(.order).add-pair $(f) $(t) ;
-            }            
-        }        
-    }    
+            }
+        }
+    }
 }
 
 rule set-library-order ( sources * : property-set : result * )
 {
     local used-libraries ;
-    local deps = [ $(property-set).dependency ] ;        
-    for local l in $(sources) $(deps:G=)        
+    local deps = [ $(property-set).dependency ] ;
+    for local l in $(sources) $(deps:G=)
     {
         if [ $(l).type ] && [ type.is-derived [ $(l).type ] LIB ]
         {
@@ -206,12 +206,12 @@ rule set-library-order ( sources * : property-set : result * )
     local created-libraries ;
     for local l in $(result)
     {
-        if [ $(l).type ] && [ type.is-derived [ $(l).type ] LIB ] 
+        if [ $(l).type ] && [ type.is-derived [ $(l).type ] LIB ]
         {
             created-libraries += $(l) ;
-        }            
+        }
     }
-    
+
     created-libraries = [ set.difference $(created-libraries) : $(used-libraries) ] ;
     set-library-order-aux $(created-libraries) : $(used-libraries) ;
 }
@@ -221,4 +221,3 @@ rule order-libraries ( libraries * )
     local r = [ $(.order).order $(libraries) ] ;
     return $(r) ;
 }
-     
\ No newline at end of file