Просмотр исходного кода

Use the more efficient path.glob-tree instead of glob.

[SVN r35158]
Rene Rivera 19 лет назад
Родитель
Сommit
f8e3e6c877
1 измененных файлов с 4 добавлено и 16 удалено
  1. 4 16
      Jamfile.v2

+ 4 - 16
Jamfile.v2

@@ -265,22 +265,10 @@ rule tag ( name : type ? : property-set )
 
 # Install to system location.
 
-local patterns = *.hpp *.ipp *.h *.inc ;
-local dir = boost ;
-local headers ;
-while $(dir)
-{
-    local files = [ glob $(dir)/$(patterns) ] ;
-    if $(files)
-    {
-        headers += $(files) ;
-        dir = $(dir)/* ;
-    }
-    else
-    {
-        dir = ;
-    }
-}
+local headers =
+    [ path.glob-tree boost : *.hpp *.ipp *.h *.inc ]
+    [ path.glob-tree boost/compatibility/cpp_c_headers : c* ]
+    ;
 
 local header-subdir ;
 if $(layout-versioned) { header-subdir = boost-$(BOOST_VERSION_TAG) ; }

粤ICP备19079148号