File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,11 +23,20 @@ package("llmapi")
2323 on_load (function (package )
2424 package :add (" links" , " llmapi" )
2525 if package :version ():ge (" 0.2.0" ) then
26+ -- 0.2.0+ extracted tinyhttps into a separate package
2627 package :add (" deps" , " mcpplibs-tinyhttps >=0.2.0" )
28+ elseif package :version ():ge (" 0.1.0" ) then
29+ -- 0.1.0 bundles tinyhttps inline, but still needs mbedtls
30+ package :add (" deps" , " mbedtls >=3.6.1" )
2731 end
2832 end )
2933
3034 on_install (function (package )
3135 local configs = {}
32- import (" package.tools.xmake" ).install (package , configs , {target = " llmapi" })
36+ if package :version ():ge (" 0.2.0" ) then
37+ import (" package.tools.xmake" ).install (package , configs , {target = " llmapi" })
38+ else
39+ -- 0.1.0 and earlier: install all targets (llmapi bundles tinyhttps)
40+ import (" package.tools.xmake" ).install (package , configs )
41+ end
3342 end )
You can’t perform that action at this time.
0 commit comments