+
    NV-j  ã                   ó`   € ^ RI t ^ RIt^ RIt^RIHt R t] P                  ! 4       3R ltR tR# )é    N)ÚPkgConfigErrorc                ó"  € VP                  4        Fz  w  r#W 9  d   W0V&   K  \        W,          \        4      '       g   \        RV: R24      h\        V\        4      '       g   \        RV: R24      hW,          P	                  V4       K|  	  V # )zœMerge values from cffi config flags cfg2 to cf1

Example:
    merge_flags({"libraries": ["one"]}, {"libraries": ["two"]})
    {"libraries": ["one", "two"]}
zcfg1[z] should be a list of stringszcfg2[)ÚitemsÚ
isinstanceÚlistÚ	TypeErrorÚextend)Úcfg1Úcfg2ÚkeyÚvalues   &&  Ú_/Volumes/fast/ai/experiments/ui-tars-smoke/.venv/lib/python3.14/site-packages/cffi/pkgconfig.pyÚmerge_flagsr      sq   € ð —j‘j–l‰
ˆØŒ?Ø�‹Iä˜d�i¬×.Ò.ÝË#Ð OÓPÐPÜ˜e¤T×*Ò*ÝË#Ð OÓPÐPØ�I×Ñ˜UÖ#ñ #ð €Kó    c                ó"  € RR.pVP                  V4       VP                  V 4        \        P                  ! V\        P                  \        P                  R7      pTP                  4       w  rgTP                  ^ 8w  d,    TP                  T4      p\        TP                  4       4      h\        P                  R8¼  d)   \        T\        4      '       g    TP                  T4      p\         P"                  R
8w  d   R
T9   d   \        RT: RT : RT: 24      hT#   \         d,   p\        R\        T4      P                  4       : 24      hRp?ii ; i  \         d     LÑi ; i  \         d    \        RT: RT : RT: R	T: 24      hi ; i)z5Calls pkg-config and returns the output if found
    z
pkg-configz--print-errors)ÚstdoutÚstderrzcannot run pkg-config: Nzpkg-config Ú z5 returned bytes that cannot be decoded with encoding z:
Ú\z3 returned an unsupported backslash-escaped output:
)é   )ÚappendÚ
subprocessÚPopenÚPIPEÚEnvironmentErrorr   ÚstrÚstripÚcommunicateÚ
returncodeÚdecodeÚ	ExceptionÚsysÚversion_infor   ÚUnicodeDecodeErrorÚosÚaltsep)ÚlibnameÚflagÚencodingÚaÚpcÚeÚboutÚberrs   &&&     r   Úcallr/      s[  € ð 
Ð'Ð(€AØ‡H�HˆT„NØ‡H�HˆWÔðNÜ×Ò˜a¬
¯©Ä
ÇÁÔPˆð —‘Ó!�J€DØ	‡}�}˜Ôð	Ø—;‘;˜xÓ(ˆDô ˜TŸZ™Z›\Ó*Ð*ä
×Ñ˜4Ô¬
°4¼×(=Ò(=ð	BØ—;‘;˜xÓ(ˆDô 
‡y�y�DÔ˜T Tœ\Ýã"£GªTð3ó 4ð 	4ð €Køô/ ô NÝ¼CÀ»F¿L¹L½NÐLÓMÐMûðNûô ô 	Ùð	ûô "ô 	BÝ ã"&«³º4ð"Aó Bð Bð	Bús5   ¨5D ÂE ÃE' ÄEÄ(&EÅEÅE$Å#E$Å''Fc                óˆ   aaaaa	a
€ R oR oR oR oR o	R o
VVVVV	V
3R lp/ pV  F  pV! V4      p\        W$4       K  	  V# )aº  Return compiler line flags for FFI.set_source based on pkg-config output

Usage
    ...
    ffibuilder.set_source("_foo", pkgconfig = ["libfoo", "libbar >= 1.8.3"])

If pkg-config is installed on build machine, then arguments include_dirs,
library_dirs, libraries, define_macros, extra_compile_args and
extra_link_args are extended with an output of pkg-config for libfoo and
libbar.

Raises PkgConfigError in case the pkg-config call fails.
c                 óŠ   € V P                  4        Uu. uF$  qP                  R 4      '       g   K  VR,          NK&  	  up# u upi )ú-Iºé   NN©ÚsplitÚ
startswith©ÚstringÚxs   & r   Úget_include_dirsÚ.flags_from_pkgconfig.<locals>.get_include_dirsK   ó1   € Ø%Ÿ|™|œ~ÓD™~˜!·±¸d×1C”��"—�™~ÑDÐDùÒDó
   “A °A c                 óŠ   € V P                  4        Uu. uF$  qP                  R 4      '       g   K  VR,          NK&  	  up# u upi )ú-Lr3   r5   r8   s   & r   Úget_library_dirsÚ.flags_from_pkgconfig.<locals>.get_library_dirsN   r=   r>   c                 óŠ   € V P                  4        Uu. uF$  qP                  R 4      '       g   K  VR,          NK&  	  up# u upi )ú-lr3   r5   r8   s   & r   Úget_librariesÚ+flags_from_pkgconfig.<locals>.get_librariesQ   r=   r>   c                 óŽ   € R  pV P                  4        Uu. uF#  q"P                  R4      '       g   K  V! V4      NK%  	  up# u upi )c                 ó`   € V R ,          p RV 9   d   \        V P                  R^4      4      # V R3# )r3   Ú=N)Útupler6   )r:   s   &r   Ú_macroÚ8flags_from_pkgconfig.<locals>.get_macros.<locals>._macroV   s1   € Ø�"•ˆAØ�aŒxÜ˜QŸW™W S¨!›_Ó-Ð-à˜4�yÐ r   ú-Dr5   )r9   rK   r:   s   &  r   Ú
get_macrosÚ(flags_from_pkgconfig.<locals>.get_macrosU   s6   € ò	!ð $*§<¡<¤>ÓH¡>˜a·\±\À$×5G”	‘�q–	¡>ÑHÐHùÒHs
   –A³Ac                 ó®   € V P                  4        Uu. uF6  qP                  R 4      '       d   K  VP                  R4      '       d   K4  VNK8  	  up# u upi )r2   rM   r5   r8   s   & r   Úget_other_cflagsÚ.flags_from_pkgconfig.<locals>.get_other_cflags^   óH   € Ø!Ÿ<™<œ>ó E™>�a·±¸d×1C”Ø12·±¸d×1C÷ �™>ñ Eð 	Eùò Eó   “A°AÁ	Ac                 ó®   € V P                  4        Uu. uF6  qP                  R 4      '       d   K  VP                  R4      '       d   K4  VNK8  	  up# u upi )r@   rD   r5   r8   s   & r   Úget_other_libsÚ,flags_from_pkgconfig.<locals>.get_other_libsb   rS   rT   c                 óÂ   <€ \         P                  ! 4       p\        V R 4      p\        V R4      pRS! V4      RS! V4      RS! V4      RS! V4      RS! V4      RS	! V4      /# )z--cflagsz--libsÚinclude_dirsÚlibrary_dirsÚ	librariesÚdefine_macrosÚextra_compile_argsÚextra_link_args)r"   Úgetfilesystemencodingr/   )
r'   ÚfseÚ
all_cflagsÚall_libsr;   rE   rA   rN   rQ   rV   s
   &   €€€€€€r   ÚkwargsÚ$flags_from_pkgconfig.<locals>.kwargsg   sr   ø€ Ü×'Ò'Ó)ˆÜ˜' :Ó.ˆ
Ü˜ Ó*ˆàÑ,¨ZÓ8ØÑ,¨XÓ6Ø™ xÓ0Ø™Z¨
Ó3Ø Ñ"2°:Ó">Ø™~¨hÓ7ðð 	r   )r   )Úlibsrc   Úretr'   Ú	lib_flagsr;   rE   rA   rN   rQ   rV   s   &    @@@@@@r   Úflags_from_pkgconfigrh   <   sZ   ý€ òEòEòEòIòEòE÷
ò ð €CÛˆÙ˜7“Oˆ	Ü�CÖ#ñ ð €Jr   )	r"   r%   r   Úerrorr   r   r_   r/   rh   © r   r   Ú<module>rk      s,   ðç Ó å !òð& "%×!:Ò!:Ó!<ô ôD=r   