2024-08-09 08:57:37 +00:00
|
|
|
import{d as oe,s as g,h as j,v as X,o as b,c as w,j as e,t as l,F as U,E as _,e as q,a2 as m,a3 as F,a4 as f,a5 as de,a as ae,a6 as M,p as ue,l as pe,_ as ce}from"./framework.CszIUXhs.js";const re={support:{BSD:"wip"},type:"external","arg-type":"custom",source:"amqp","lib-depends":["librabbitmq"],"ext-depends-windows":["openssl"]},be={type:"external",source:"apcu"},we={type:"builtin"},ge={type:"builtin","arg-type-unix":"with-prefix","arg-type-windows":"with","lib-depends":["bzip2"]},xe={type:"builtin"},me={type:"builtin"},ye={notes:!0,type:"builtin","arg-type":"with","lib-depends":["curl"],"ext-depends-windows":["zlib","openssl"]},he={type:"builtin","arg-type":"custom","lib-suggests":["qdbm"]},ve={support:{BSD:"wip"},type:"builtin","arg-type":"custom","arg-type-windows":"with","lib-depends":["libxml2","zlib"],"ext-depends-windows":["xml"]},fe={type:"external",source:"ext-ds"},ze={support:{Windows:"wip",BSD:"wip",Darwin:"wip",Linux:"wip"},type:"wip"},Se={support:{Windows:"wip",BSD:"wip"},notes:!0,type:"external",source:"ext-event","arg-type":"custom","lib-depends":["libevent"],"ext-depends":["openssl"],"ext-suggests":["sockets"]},De={type:"builtin"},Be={support:{Linux:"no",BSD:"wip"},notes:!0,"arg-type":"custom",type:"builtin","lib-depends-unix":["libffi"],"lib-depends-windows":["libffi-win"]},ke={type:"builtin"},qe={type:"builtin"},Ee={type:"builtin","lib-suggests":["openssl"]},We={support:{BSD:"wip"},notes:!0,type:"builtin","arg-type":"custom","arg-type-windows":"with","lib-depends":["zlib","libpng"],"ext-depends":["zlib"],"lib-suggests":["libavif","libwebp","libjpeg","freetype"]},Ce={support:{Windows:"wip",BSD:"wip"},type:"builtin","arg-type":"with-prefix","lib-depends":["gettext"]},Ie={support:{Windows:"wip",BSD:"no",Linux:"no"},notes:!0,type:"external","arg-type":"custom",source:"ext-glfw","lib-depends":["glfw"],"lib-depends-windows":[]},Pe={support:{Windows:"wip",BSD:"wip"},type:"builtin","arg-type":"with-prefix","lib-depends":["gmp"]},Le={support:{BSD:"wip"},type:"builtin","arg-type":"with-prefix","arg-type-windows":"with","lib-depends-unix":["libiconv"],"lib-depends-windows":["libiconv-win"]},Ue={support:{Windows:"wip",BSD:"wip"},type:"external",source:"igbinary"},_e={support:{Windows:"wip",BSD:"wip"},type:"external",source:"ext-imagick","arg-type":"custom","lib-depends":["imagemagick"]},Ne={support:{Windows:"wip",BSD:"wip"},notes:!0,type:"builtin","arg-type":"custom","lib-depends":["imap"],"ext-suggests":["openssl"]},Oe={support:{Windows:"no",BSD:"wip",Darwin:"no"},type:"external",source:"inotify"},Ve={support:{Windows:"no",BSD:"wip"},type:"builtin","lib-depends":["icu"]},Ae={support:{Windows:"wip",BSD:"wip"},type:"builtin","arg-type":"with-prefix","lib-depends":["ldap"],"lib-suggests":["gmp","libsodium"],"ext-suggests":["openssl"]},Te={support:{BSD:"wip"},type:"builtin","arg-type":"none","ext-depends":["xml"]},je={type:"builtin","arg-type":"custom","ext-depends":["mbstring"],"lib-depends":["onig"]},$e={type:"builtin","arg-type":"custom"},Ge={type:"wip",support:{Windows:"no",BSD:"no",Darwin:"no",Linux:"no"},notes:!0},Xe={support:{Windows:"wip",BSD:"wip"},type:"external",source:"ext-memcache","arg-type":"custom","lib-depends":["zlib"],"ext-depends":["session"]},Me={support:{Windows:"wip",BSD:"wip",Linux:"no"},type:"external",source:"memcached","arg-type":"custom","cpp-extension":!0,"lib-depends":["libmemcached"],"ext-depends":["session","zlib"]},Re={support:{BSD:"wip",Windows:"wip"},type:"external",source:"mongodb","arg-type":"custom","lib-suggests":["icu","openssl","zstd","zlib"]},He={type:"builtin","arg-type":"with","ext-depends":["mysqlnd"]},Fe={type:"builtin","arg-type-windows":"with","lib-depends":["zlib"]},Ze={type:"wip",support:{Windows:"wip",BSD:"no",Darwin:"no",Linux:"no"},notes:!0},Qe={type:"builtin","arg-type-unix":"custom"},Ke={notes:!0,type:"builtin","arg-type":"custom","arg-type-windows":"with","lib-depends":["openssl","zlib"],"ext-depends":["zlib"]},Ye={support:{BSD:"wip"},notes:!0,type:"external",source:"parallel","arg-type-windows":"with","lib-depends-windows":["pthreads4w"]},Je={support:{Windows
|
|
|
|
|
`);let n=[];return x.forEach(t=>{t.indexOf("=")>=1&&n.push(t)})," "+n.map(t=>'-I "'+t+'"').join(" ")}),le=x=>{let n;v.value.indexOf("all")!==-1&&x.target.value==="all"?v.value=["all"]:(n=v.value.indexOf("all"))!==-1&&x.target.value!=="all"&&v.value.splice(n,1),H.value=v.value.map(t=>"--build-"+t).join(" ")},te=x=>{const n=new Set,t=p=>{let a=[];if(c.value==="linux"){if(a=s.value[p]["ext-depends-linux"]??s.value[p]["ext-depends-unix"]??s.value[p]["ext-depends"]??[],a.length===0)return}else if(c.value==="macos"){if(a=s.value[p]["ext-depends-macos"]??s.value[p]["ext-depends-unix"]??s.value[p]["ext-depends"]??[],a.length===0)return}else if(c.value==="windows"&&(a=s.value[p]["ext-depends-windows"]??s.value[p]["ext-depends"]??[],a.length===0))return;a.forEach(r=>{n.add(r),t(r)})};return x.forEach(p=>{t(p)}),Array.from(n)},ne=x=>{const n=new Set,t=a=>{let r=[];if(c.value==="linux"){if(r=o.value[a]["lib-depends-linux"]??o.value[a]["lib-depends-unix"]??o.value[a]["lib-depends"]??[],r.length===0)return}else if(c.value==="macos"){if(r=o.value[a]["lib-depends-macos"]??o.value[a]["lib-depends-unix"]??o.value[a]["lib-depends"]??[],r.length===0)return}else if(c.value==="windows"&&(r=o.value[a]["lib-depends-windows"]??o.value[a]["lib-depends"]??[],r.length===0))return;r.forEach(k=>{n.add(k),t(k)})},p=a=>{let r=[];if(c.value==="linux"){if(r=s.value[a]["lib-depends-linux"]??s.value[a]["lib-depends-unix"]??s.value[a]["lib-depends"]??[],r.length===0)return}else if(c.value==="macos"){if(r=s.value[a]["lib-depends-macos"]??s.value[a]["lib-depends-unix"]??s.value[a]["lib-depends"]??[],r.length===0)return}else if(c.value==="windows"&&(r=s.value[a]["lib-depends-windows"]??s.value[a]["lib-depends"]??[],r.length===0))return;r.forEach(k=>{n.add(k),t(k)})};return x.forEach(a=>{p(a)}),Array.from(n)};return X(c,()=>h.value=[]),X(c,()=>E.value=0),X(h,x=>{$.value=te(x),$.value.forEach(t=>{h.value.indexOf(t)===-1&&h.value.push(t)}),h.value.sort(),console.log("检测到变化!"),console.log(x);const n=Xs({ext:s.value,lib:o.value,os:c.value},h.value);u.value=n.libs.sort(),D.value=[],V.value=ne(n.exts),V.value.forEach(t=>{D.value.indexOf(t)===-1&&D.value.push(t)})}),(x,n)=>(b(),w("div",null,[e("h2",null,l(d[i.lang].selectedSystem),1),e("div",Fs,[(b(),w(U,null,_(y,(t,p)=>e("span",{key:p,style:{"margin-right":"4px"}},[m(e("input",{type:"radio",id:"os-"+t.os,value:t.os,disabled:t.disabled===!0,"onUpdate:modelValue":n[0]||(n[0]=a=>c.value=a)},null,8,Zs),[[f,c.value]]),e("label",{for:"os-"+t.os},l(t.label),9,Qs)])),64))]),e("h2",null,l(d[i.lang].selectExt)+l(h.value.length>0?" ("+h.value.length+")":""),1),e("div",Ks,[(b(!0),w(U,null,_(s.value,(t,p)=>(b(),w("div",Ys,[z(p,c.value)?(b(),w("span",Js,[m(e("input",{type:"checkbox",id:p,value:p,"onUpdate:modelValue":n[1]||(n[1]=a=>h.value=a),disabled:$.value.indexOf(p)!==-1},null,8,el),[[M,h.value]]),e("label",{for:p},l(p),9,il)])):q("",!0)]))),256))]),c.value!=="windows"?(b(),w("div",{key:0,class:"my-btn",onClick:J},l(d[i.lang].selectCommon),1)):q("",!0),e("div",{class:"my-btn",onClick:n[2]||(n[2]=t=>h.value=[])},l(d[i.lang].selectNone),1),e("details",sl,[e("summary",null,l(d[i.lang].buildLibs)+l(D.value.length>0?" ("+D.value.length+")":""),1),e("div",ll,[(b(!0),w(U,null,_(u.value,(t,p)=>(b(),w("div",tl,[m(e("input",{type:"checkbox",id:p,value:t,"onUpdate:modelValue":n[3]||(n[3]=a=>D.value=a),disabled:V.value.indexOf(t)!==-1},null,8,nl),[[M,D.value]]),e("label",{for:p},l(t),9,ol)]))),256))])]),e("div",dl,[al,e("p",null,l(d[i.lang].depTips),1)]),e("h2",null,l(d[i.lang].buildTarget),1),e("div",ul,[(b(),w(U,null,_(O,t=>e("div",pl,[m(e("input",{type:"checkbox",id:"build_"+t,value:t,"onUpdate:modelValue":n[4]||(n[4]=p=>v.value=p),onChange:le},null,40,cl),[[M,v.value]]),e("label",{for:"build_"+t},l(t),9,rl)])),64))]),I.value==="7.4"&&(v.value.indexOf("micro")!==-1||v.value.indexOf("all")!==-1)?(b(),w("div",bl,[wl,e("p",null,l(d[i.lang].microUnavailable),1)])):q("",!0),c.value==="windows"&&(v.value.indexOf("fpm")!==-1||v.value.indexOf("embed")!==-1)?(b(),w("div",gl,[xl,e("p",null,l(d[i.lang].windowsSAPIUnavailable),1)])):q
|