+
    UBi0                    n   ^ RI Ht ^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RI	t	^ RI
t^ RIHt ^RIHtHt ^RIHtHtHtHtHtHtHtHtHt ^RIHt ^RIHt ]P<                  '       d   ^RIH t  R	R
0t!R R lt"R R lt#R R lt$R R lt%R R lt&R R lt'R R lt(R R lt)RR R llt*R R lt+R# )     )annotationsN)Path)buildminstall)	EnvironmentVariablesMesonException	join_args
is_windowssetup_vsenvget_wine_shortpathMachineChoicerelpathis_osx)	OptionKey)mlog)InstallDatazpwsh.exezpowershell.exec                    V ^8  d   QhRRRR/# )   parserzargparse.ArgumentParserreturnNone )formats   "7/usr/lib/python3.14/site-packages/mesonbuild/mdevenv.py__annotate__r      s     e e1 ed e    c                   V P                  R R\        RRR7       V P                  RR\        RRR	7       V P                  R
RRRR7       V P                  RR. RORR7       V P                  R\        P                  RRR7       R# )z-Cbuilddir.zPath to build directory)desttypedefaulthelpz	--workdirz-wNzDDirectory to cd into before running (default: builddir, Since 1.0.0))r!   r"   r#   z--dump?T)nargsconstr#   z--dump-formatexportz%Format used with --dump (Since 1.1.0))r"   choicesr#   devcmdcommandzDCommand to run in developer environment (default: interactive shell))r%   metavarr#   zXOnly print required environment (Since 0.62.0) Takes an optional file path (Since 1.1.0))shr'   vscode)add_argumentr   argparse	REMAINDER)r   s   &r   add_argumentsr1      s    
:D#6  8
Tdc  e
4I  J  :D  F (:(:Ic  er   c                   V ^8  d   QhRR/# )r   r   T.Optional[str]r   )r   s   "r   r   r   )   s     
 
? 
r   c            	     B   \        \        4      P                  p V R ,          R,          p\         FI  p VRRRR\	        V4      .p\
        P                  ! V4      pVP                  4       P                  4       u # 	  R#   \
        P                  \        3 d     Km  i ; i)scriptszcmd_or_ps.ps1z
-noprofilez-executionpolicybypassz-fileN)r   __file__parentPOWERSHELL_EXESstr
subprocesscheck_outputdecodestripCalledProcessErrorOSError)
mesonbuildscriptshellr*   results        r   get_windows_shellrE   )   s    h&&J)#o5F 	l,>'SVW]S^_G,,W5F==?((**	 !  --w7 		s   AA??BBc                    V ^8  d   QhRRRR/# )r   envT.Dict[str, str]r   r   r   )r   s   "r   r   r   5   s     E E) Ed Er   c                "   V P                  R 4      pV'       g   R# \        P                  ! R4      ;'       g    \        P                  ! R4      pV'       g   R# \        V.VP	                  R4      4      V R &   \
        P                  ! R4       R# )WINEPATHNwine64wine;z4Meson detected wine and has set WINEPATH accordingly)getshutilwhichr   splitr   log)rG   winepathwinecmds   &  r   reduce_winepathrU   5   sc    wwz"Hll8$<<V(<G('HNN34GHC
OHHCDr   c               $    V ^8  d   QhRRRRRR/# )r   bbuild.Builddump_fmtr3   r   z%T.Tuple[T.Dict[str, str], T.Set[str]]r   )r   s   "r   r   r   ?   s"      { o :_ r   c                T   \        4       pVP                  R R.4       VP                  RV P                  .4       V P                  P                  \
        P                  ,          P                  4       pV'       d   VP                  RV.4       V'       d   / M\        P                  P                  4       pVR9   d   RMRp\        4       p\        P                  ! V P                  V04       F*  pVP                  WE4      pWgP                  4       ,          pK,  	  \!        V4       WF3# )MESON_DEVENV1MESON_PROJECT_NAMEQEMU_LD_PREFIXz${0}N>   r,   r'   )r   setproject_nameenvironment
propertiesr   HOSTget_sys_rootosenvironcopy	itertoolschaindevenvget_env	get_namesrU   )rW   rY   	extra_envsysrootrG   default_fmtvarnamesis   &&      r   rk   rk   ?   s    $&IMM.3%(MM&(89mm&&}'9'9:GGIG&	2"bjjoo/C$(88&dKuH__QXX	{3ii)KKM! 4 C=r   c               $    V ^8  d   QhRRRRRR/# )r   rW   rX   install_data'InstallData'r   zT.List[str]r   )r   s   "r   r   r   S   s!      [  + r   c           
     0   ^RI Hp . pV! RV P                  RRRRRR./4      pVP                  4       '       Ed\   V P                  P                  P
                  P                  \        R	4      4      p\        V\        4      '       g   Q R
4       hV P                  P                  P
                  P                  \        R4      4      p\        V\        4      '       g   Q R
4       h\        P                  P                  WV4      pVP                  RRV33R7      p\        V\        4      '       g   Q R
4       h\        V4      p	VP                   FD  p
V	\        V
P                   4      P"                  9   g   K)  VP%                  V
P                  4       KF  	  V# )   )PkgConfigDependencyzbash-completionrequiredFsilentTversionz>=2.10prefixzfor mypydatadircompletionsdir)	pkgconfigpkgconfig_define)dependencies.pkgconfigrw   ra   foundcoredataoptstoreget_value_forr   
isinstancer:   re   pathjoinget_variabler   datainstall_pathparentsappend)rW   rs   rw   rD   depr{   r|   datadir_absr}   completionsdir_pathfs   &&         r   bash_completion_filesr   S   sH   ;F
/)5(D)hZXZC
yy{{''00>>y?RS&#&&2
2&--((11??	)@TU'3''33'ggll63))4DYbdoXpWr)s.#..:
:.">2""A"d1>>&:&B&BBaff% # Mr   c               (    V ^8  d   QhRRRRRRRR/# )r   autoload_pathr   
gdb_helperr:   fnamer   r   r   )r   s   "r   r   r   f   s(     
 
T 
s 
4 
D 
r   c           	        WP                   ,          pVP                  R R R7        \        4       '       dG   \        P                  ! V\        V\        P                  P                  V4      ,          4      4       R# \        P                  ! V\        V\        P                  P                  V4      ,          4      4       R#   \        \        P                  3 d     R# i ; i)T)r   exist_okN)r8   mkdirr
   rO   rg   r:   re   r   basenamesymlinkFileExistsErrorSameFileError)r   r   r   destdirs   &&& r   add_gdb_auto_loadr   f   s    ll*GMM$M.<<KK
C"''2B2B:2N(N$OPJJz3w1A1A*1M'M#NOV112 s   AC =AC C"!C"c               (    V ^8  d   QhRRRRRRRR/# )r   
privatedirr   rs   rt   workdirr   r   r   )r   s   "r   r   r   r   s/     'L 'L 'L] 'LT 'LVZ 'Lr   c           	     v   \         P                  ! R 4      '       g   R# V P                  pV R,          p\        V.VP                  R,          O5!  pRpVP
                   F  pVP                  P                  R4      '       gE   VP                  P                  R4      '       g$   VP                  P                  R4      '       g   Kh  \        VP                  4      P                  P                  R^4      ^ ,          pVP                   FC  p	\        V	P                  4      p
V
P                  V8X  g   K+  \        WWP                  V
4       R	pKE  	  K  	  V'       Ed   R
V R2pVR,          pRp VP                  RRR7      ;_uu_ 4       pWP                  4       9  d   VP                  V4       R	pRRR4       T'       Ed9   TP%                  4       pTP%                  4       p\        \'        Y4      4      p\(        P*                  ! R\(        P,                  ! \/        T4      4      4       \(        P*                  ! R4       \(        P*                  ! R\(        P,                  ! RTP                   24      R\(        P,                  ! R4      4       TP                  T8w  dZ   \(        P*                  ! R\(        P,                  ! \/        TP                  4      4      R\(        P,                  ! RT 24      4       R# R# R# R#   + '       g   i     ELV; i  \          d    TP#                  TRR7       R	p EL|i ; i)gdbNzgdb-auto-load:rv   NNFz-gdb.pyz-gdb.gdbz-gdb.scm-Tz add-auto-load-scripts-directory 
z.gdbinitzr+utf-8encodingz.Meson detected GDB helpers and added config inz+To load it automatically you might need to:z - Addzadd-auto-load-safe-path inz
~/.gdbinitz - Change current workdir tozor usez--init-command )rO   rP   r8   r   partsr   r   endswithnamersplittargetsr   r   open	readlineswriteFileNotFoundError
write_textresolver   r   rR   boldr:   )r   rs   r   bdirautoload_basedirr   have_gdb_helpersdlibnametr   gdbinit_linegdbinit_path
first_timer   workdir_pathrel_paths   &&&              r   write_gdb_scriptr   r   sv   <<D!O3);DJJrN;M66??9%%)D)DXbHcHc 166l''..sA6q9G!))AGG}99'%mVVTB'+$	 *  9:J9K2Nj(
	""4'"::a{{}4GGL)!%J ; :'//1L"??,LGL?@HHHEtyyQTU]Q^G_`HHBCHHXtyy+CLDWDWCX)YZ499\24""l273xCW9X!499xj-I#JL 3  
 ;:: ! 	##L7#CJ	s0   0L (L 3L  L	L L  L87L8c                   V ^8  d   QhRR/# )r   r   boolr   )r   s   "r   r   r      s     # #4 #r   c                     \        4       '       g   R # \        P                  ! RR.RRRR7      p V P                  '       g   R# RV P                  9   # )FcsrutilstatusTr   )textcapture_outputr   enabled)r   r;   runstdout)rets    r   macos_sip_enabledr      sA    88
..)X.T$Y`
aC:::

""r   c          
     ,    V ^8  d   QhRRRRRRRRR	R
/# )r   rj   rH   rp   z
T.Set[str]dump_formatr3   outputzT.Optional[T.TextIO]r   r   r   )r   s   "r   r   r      s6     1 1! 1Z 1o 1_s 1  @D 1r   c                |    V F5  p\        V R W,           R2VR7       VR8X  g   K%  \        RV 2VR7       K7  	  R# )z="")filer'   zexport N)print)rj   rp   r   r   r   s   &&&& r   dumpr      s>    ba(v6("GD6"0 r   c                    V ^8  d   QhRRRR/# )r   optionszargparse.Namespacer   intr   )r   s   "r   r   r      s#     lT lT# lT lTr   c                N   \        V P                  4      R ,          pVR,          pVP                  4       '       g   \        RV P                  : R24      h\        P
                  ! V P                  4      pV P                  ;'       g    V P                  p\        P                  ! RVP                  P                  P                  P                  \        R4      4      4      p\        V4       V P                  '       d   V P                   MRp\#        W64      w  rxV P                  '       ds   V P$                  '       d   \        R4      hV P                  RJ d   \        WxV4       ^ # \'        V P                  R	R
R7      ;_uu_ 4       p	\        WxWi4       RRR4       ^ # VP                  P)                  4       '       df   Rp
VP                  P+                  4       pV'       d,   RP-                  VP/                  4       4      pV
RV 2,          p
\0        P2                  ! V
4       \4        P6                  ! \9        VR,          4      4      p\;        WV4       V P$                  pV'       Eg   RVP<                   R2p\>        P@                  PC                  R4      '       d   Rp\>        P@                  PC                  R4      pV'       d*   \>        PD                  PG                  V4      '       d   V.pM\I        4       '       d   \K        4       pV'       g   \0        PL                  ! R4       V\N        9   d    VRR.pV'       d   RV R2pVRV.,          pMo\>        P@                  PC                  RR4      .pVRRV R2.,          pM>\>        P@                  PC                  R\>        PD                  PQ                  R4      4      .pR V^ ,          9   d   \R        PT                  ! R	R!7      pVPW                  R"4       V'       d   VPW                  R#V R$24       \Y        W=4       F  pVPW                  R%V R&24       K  	  VP[                  4        VP]                  R'4       VP]                  VP^                  4       EM*V^ ,          Pa                  R(4      '       dX   \b        Pb                  ! \b        Pd                  R) 4       V'       d)   VP]                  R*4       R+V R,2pVP]                  V4       MV^ ,          Pa                  R-4      '       d   \R        Pf                  ! 4       p\'        \>        PD                  P-                  VP^                  R.4      R	4      ;_uu_ 4       pVPW                  R/4       V'       d   VPW                  R0V R124       RRR4       VP^                  VR2&   R3V9   d@   \i        4       '       d0   \0        PL                  ! R44       \0        PL                  ! R54       VR3 ME\j        Pl                  ! V^ ,          VPC                  R6R4      R77      pT;'       g
    V^ ,          V^ &    \I        4       '       d;   \n        Pp                  ! WVR87      p\r        Pt                  ! VPv                  4       R# \>        Px                  ! V4       \>        Pz                  ! V^ ,          WR97       R#   + '       g   i     ^ # ; i  + '       g   i     ELB; i  \|         d    \        R:T^ ,           24      h\~         d    p\        R;\        T4       R<T 24      hRp?ii ; i)=zmeson-privatez	build.datz
Directory z- does not seem to be a Meson build directory.r   vsenvNz3--dump option does not allow running other command.Twr   r   z'An executable wrapper could be required z: zinstall.dat[]MESON_DISABLE_PS1_OVERRIDESHELLz6Failed to determine Windows shell, fallback to cmd.exez-NoLogoz-NoExitzfunction global:prompt {  "z PS " + $PWD + "> "}z-CommandCOMSPECzC:\WINDOWS\system32\cmd.exez/kzprompt z $P$Gz/bin/shbash)modez [ -e ~/.bashrc ] && . ~/.bashrc
zexport PS1="z $PS1"
z. "z"
z--rcfilefishc                    R # )Tr   )___s   &&r   <lambda>run.<locals>.<lambda>   s    tr   z--init-commandzufunctions --copy fish_prompt original_fish_prompt
                function fish_prompt
                    echo -n '[z-] '(original_fish_prompt)
                endzshz.zshrcz[ -e ~/.zshrc ] && . ~/.zshrc
zexport PROMPT="[z] $PROMPT"
ZDOTDIRDYLD_LIBRARY_PATHz]macOS System Integrity Protection is enabled: DYLD_LIBRARY_PATH cannot be set in the subshellz@To fix that, use `meson devenv --dump dev.env && source dev.env`PATH)r   )rG   cwd)rG   zCommand not found: z	Command `z` failed to execute: )Ar   r   is_filer   r   loadr   Tcastra   r   r   r   r   r   r   r   rk   r)   r   need_exe_wrapperget_exe_wrapperr   get_commandr   rR   r   load_install_datar:   r   r`   re   rf   rN   r   existsr
   rE   warningr9   realpathtempfileNamedTemporaryFiler   r   flushr   r   r   signalSIGINTTemporaryDirectoryr   rO   rP   r;   r   sysexit
returncodechdirexecvper   r@   r	   )r   r   	buildfilerW   r   
need_vsenvrY   rj   rp   r   mexe_wrappercmdrs   argsprompt_prefix	shell_envrC   prompttmprcr   
prompt_cmdtmpdirzshrcabs_pathrD   es   &                          r   r   r      sW   g&&'/9J[(Iz'*:*:)==jkll

7##$Aoo11!1!1G 6 6 ? ? M MiX_N` abJ
&-lllw""Hq+F|||>>> !VWW<<48,  gllC'::fVx8 ;}}%%''5mm335((;2245C2cUOA--c*}2L.MNLZw7>>D4ANN+1-::>>677 MJJNN7+		22;D\\%'EUV'y)4 ;M?J_`FZ00D

y2PQRu=>>JJNN7BGG,<,<Y,GHIDT!W//S9EKK;<l=/BC*1;c!CL) <KKMKK
#KK

#!Wf%% MM&--);<,-",o .
 J'!We$$002Fbggll6;;93??5=> KK"2=/ NO @ !'F9&(->-@-@LLxyLL[\*+ <<Qfjj.FG%%d1gQT<<  ^^D'BFHHV&&'HHWJJtAw1m ;:| @??.  >247)<== Ty4(99NqcRSSTs=   Z3/[2A[ <5[ 3[	[	(\$\$\\$)N),
__future__r   re   r;   r/   r   rO   r   rh   r   typingr   pathlibr    r   r   mesonlibr   r   r	   r
   r   r   r   r   r   r   r   r   TYPE_CHECKINGbackend.backendsr   r9   r1   rE   rU   rk   r   r   r   r   r   r   r   r   r   <module>r     s    "     
     K K K   ???-/0e
E(&
'LR#1lTr   