Sfoglia il codice sorgente

improve boost with python (#1804)

* improve boost with python

* add python deps
ruki 2 anni fa
parent
commit
5056d4d55f
1 ha cambiato i file con 7 aggiunte e 0 eliminazioni
  1. 7 0
      packages/b/boost/xmake.lua

+ 7 - 0
packages/b/boost/xmake.lua

@@ -83,6 +83,10 @@ package("boost")
             else
                 linkname = "boost_" .. libname
             end
+            if libname == "python" then
+                -- TODO maybe we need improve it, e.g. libboost_python310-mt.a
+                linkname = linkname .. "310"
+            end
             if package:config("multi") then
                 linkname = linkname .. "-mt"
             end
@@ -118,6 +122,9 @@ package("boost")
         if package:is_plat("windows") then
             package:add("defines", "BOOST_ALL_NO_LIB")
         end
+        if package:config("python") then
+            package:add("deps", "python 3.10.x")
+        end
     end)
 
     on_install("macosx", "linux", "windows", "bsd", "mingw", "cross", function (package)