+
    UBi                   :  a  0 t $ R t^ 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HtHtHtHtHtHtHtHt ^RIHt ^RIHt ^RIHt ^RIHt ^RIHtHtHtHtHt ^R	IHt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, ^RI-H.t.H/t/H0t0H1t1 ^RI-H2t2H3t3H4t4 ^RI5H6t6 ^RIH7t7H8t8H9t9H:t:H;t;H<t< ^RI=H>t> ^RI?H@t@ ^RIAHBtB ]P                  '       d   ^ RIDHEtEHFtFHGtG ^RIHHtH ^RIHItI ^RIJHKtK ^RIHLtL ^RI-HMtMHNtN ^RIHOtO ^RI?HPtP  ! R R]G4      tQ ! R R]G4      tR ! R R ]G4      tS ! R! R"]G4      tT ! R# R$]G4      tU ! R% R&]G4      tV ! R' R(]G4      tW ! R) R*]G4      tX ! R+ R,]G4      tY ! R- R.]G4      tZ ! R/ R0]Z4      t[ ! R1 R2]Z4      t\]P                  ]]P]@3,          t^R3]_R4&   ]3! R5]`R6R77      taR8]_R9&   ]3! R:]4! ]b]c4      . R6R;7      tdR<]_R=&   ])P                  ! R>R?7      ](]3! R@]c]*34      ]3! RA]c]*34      .tfRB]_RC&   RD RE ltgRFth ! RG RH]4      tiRI RJ ltjR# )KzThis module provides helper functions for Gnome/GLib related
functionality such as gobject-introspection, gresources and gtk-doc)annotationsN)ExtensionModule	GirTargetGResourceHeaderTargetGResourceTarget
ModuleInfoModuleReturnValueTypelibTarget
VapiTarget)build)interpreter)mesonlib)mlog)CustomTargetCustomTargetIndex
ExecutableGeneratedListInvalidArguments)
DependencyInternalDependency)PkgConfigDependencyPkgConfigInterface)
DEPENDS_KWDEPEND_FILES_KWENV_KWINSTALL_DIR_KW
INSTALL_KWNoneTypeDEPENDENCY_SOURCES_KWin_set_validator)	noPosargsnoKwargs
FeatureNewFeatureDeprecated)typed_kwargs	KwargInfoContainerTypeInfo)typed_pos_args)MachineChoiceMesonException
OrderedSet
Popen_safe	join_args	quote_arg)	OptionKey)OverrideProgram)read_linguas)Literal	TypeAlias	TypedDict)ModuleState)BuildTarget)Compiler)Interpreter)TYPE_varTYPE_kwargs)FileOrString)ExternalProgramc                  J    ] tR t^2t$ R]R&   R]R&   R]R&   R]R&   R]R&   RtR	# )
PostInstallboolglib_compile_schemasT.List[str]gio_querymodulesgtk_update_icon_cacheupdate_desktop_databaseupdate_mime_database N__name__
__module____qualname____firstlineno____annotations____static_attributes__rE       =/usr/lib/python3.14/site-packages/mesonbuild/modules/gnome.pyr=   r=   2   s     ""%%##!%%""rM   r=   c                  ,    ] tR t^9t$ R]R&   R]R&   RtR# )CompileSchemasr>   build_by_defaultT.List[FileOrString]depend_filesrE   NrF   rE   rM   rN   rP   rP   9   s    **rM   rP   c                  @    ] tR t^>t$ R]R&   R]R&   R]R&   R]R&   RtR# )	Yelpr@   	languagesmediasourcesr>   symlink_mediarE   NrF   rE   rM   rN   rU   rU   >   s    rM   rU   c                  |    ] tR t^Et$ R]R&   R]R&   R]R&   R]R&   R]R	&   R]R
&   R]R&   R]R&   R]R&   R]R&   RtR# )CompileResourcesr>   rQ   T.Optional[str]c_namez?T.List[T.Union[mesonlib.File, CustomTarget, CustomTargetIndex]]dependenciesexportr@   
extra_argsgresource_bundleinstallinstall_dirinstall_header
source_dirrE   NrF   rE   rM   rN   r[   r[   E   s<    UU$$rM   r[   c                      ] tR t^Rt$ R]R&   R]R&   R]R&   R]R&   R]R	&   R]R
&   R]R&   R]R&   R]R&   R]R&   R]R&   R]R&   R]R&   R]R&   R]R&   R]R&   R]R&   R]R&   RtR# )GenerateGirr>   rQ   zT.List[Dependency]r^   r\   
doc_formatr@   export_packagesr`   fatal_warningsheaderidentifier_prefixz'T.List[T.Union[build.IncludeDirs, str]]include_directoriesT.List[T.Union[str, GirTarget]]includesrb   install_dir_girinstall_dir_typelibz9T.List[T.Union[build.SharedLibrary, build.StaticLibrary]]	link_withstr	namespace	nsversion3T.List[T.Union[FileOrString, build.GeneratedTypes]]rX   symbol_prefixrE   NrF   rE   rM   rN   rg   rg   R   sk    ((##$$&&DD11((,,LLDD""rM   rg   c                      ] tR t^gt$ R]R&   R]R&   R]R&   R]R&   R]R&   R]R	&   R
]R&   R
]R&   R
]R&   R
]R&   R
]R&   R]R&   R
]R&   R
]R&   R]R&   R]R&   R]R&   R]R&   R]R&   R
]R&   R]R&   R]R&   RtR # )!GtkDoc'T.List[T.Union[str, build.IncludeDirs]]src_dirrs   	main_sgmlmain_xmlmodule_versionrt   z&Literal['xml', 'smgl', 'auto', 'none']moder@   	html_args	scan_argsscanobjs_argsfixxref_args	mkdb_argsz3T.List[T.Union[build.GeneratedTypes, FileOrString]]content_filesignore_headersrc   r>   checkrb   rR   gobject_typesfilehtml_assetsexpand_content_filesc_argsrm   ET.List[T.Union[Dependency, build.SharedLibrary, build.StaticLibrary]]r^   rE   NrF   rE   rM   rN   ry   ry   g   s    8844""!!JJ##  //))22DD[[rM   ry   c                      ] tR t^t$ R]R&   R]R&   R]R&   R]R&   R]R	&   R]R
&   R]R&   R]R&   R]R&   R]R&   R]R&   R]R&   R]R&   RtR# )GdbusCodegenrR   rX   r@   r`   r\   interface_prefixrt   r>   object_managerrQ   zT.List[T.List[str]]r   rd   rc   docbookrstmarkdownz,Literal['all', 'none', 'objects', 'default']autocleanuprE   NrF   rE   rM   rN   r   r      sP    %%))""(($$  !!AArM   r   c                      ] tR t^t$ R]R&   R]R&   R]R&   R]R&   R]R	&   R]R
&   R]R&   R]R&   R]R&   R]R&   R]R&   R]R&   R]R&   R]R&   RtR# )
GenMarshalr\   build_alwayszT.Optional[bool]build_always_stalerQ   zT.List[mesonlib.File]rS   r@   r`   rc   r>   rd   internalnostdincprefixskip_sourcerR   rX   stdincvalist_marshallersrE   NrF   rE   rM   rN   r   r      sS    %%,,**++$$%%  rM   r   c                  ^    ] tR t^t$ R]R&   R]R&   R]R&   R]R&   R]R	&   R]R
&   R]R&   RtR# )GenerateVapirn   rX   r\   rc   r>   rb   r@   	vapi_dirsmetadata_dirsgir_dirsz(T.List[T.Union[str, InternalDependency]]packagesrE   NrF   rE   rM   rN   r   r      s+    00$$""::rM   r   c                  @    ] tR t^t$ R]R&   R]R&   R]R&   R]R&   RtR# )	_MkEnumsCommonr>   rd   r\   rc   rl   rw   rE   NrF   rE   rM   rN   r   r      s    $$**&&rM   r   c                  J    ] tR t^t$ R]R&   R]R&   R]R&   R]R&   R]R&   RtR	# )
MkEnumsSimplerR   rX   rs   header_prefix	decoratorfunction_prefixbody_prefixrE   NrF   rE   rM   rN   r   r      s    %%rM   r   c                      ] tR t^t$ R]R&   R]R&   R]R&   R]R&   R]R&   R]R	&   R]R
&   R]R&   R]R&   R]R&   R]R&   R]R&   RtR# )MkEnumsrv   rX   zT.Optional[FileOrString]
c_template
h_templater\   commentseprodfheadfprodftailvheadvprodvtailz=T.List[T.Union[BuildTarget, CustomTarget, CustomTargetIndex]]dependsrE   NrF   rE   rM   rN   r   r      sJ    DD,,,,!!NNrM   r   r2   ToolTyperQ   TdefaultzKwargInfo[bool]_BUILD_BY_DEFAULTr`   r   listifyzKwargInfo[T.List[str]]_EXTRA_ARGS_KWrd   namerl   rw   zT.List[KwargInfo]_MK_ENUMS_COMMON_KWSc                    V ^8  d   QhRRRR/# )   r   z!T.List[T.Union[str, T.List[str]]]returnr\   rE   )formats   "rN   __annotate__r      s      'H _ rM   c                   RpV '       g   R# \         ;QJ d    R V  4       F  '       d   K   RM	  RM! R V  4       4      '       d   \        V 4      ^8X  d   R# V# \         ;QJ d    R V  4       F  '       d   K   RM	  RM! R V  4       4      '       g<   \        V 4       F*  w  r#\        V\        4      '       d   K  RV^,            R2u # 	  R# \        V 4       F`  w  r#\        V4      ^8w  g=   \         ;QJ d    R	 V 4       F  '       d   K   RM	  RM! R	 V 4       4      '       d   KQ  RV^,            R
V 2u # 	  R# )z+Validate gdbus-codegen annotations argumentz8must be made up of 3 strings for ELEMENT, KEY, and VALUENc              3  B   "   T F  p\        V\        4      x  K  	  R # 5iN
isinstancers   .0annots   & rN   	<genexpr>(annotations_validator.<locals>.<genexpr>   s     =Zs##   FTc              3  B   "   T F  p\        V\        4      x  K  	  R # 5ir   )r   listr   s   & rN   r   r      s     BkUE4((kr   zelement z must be a listc              3  B   "   T F  p\        V\        4      x  K  	  R # 5ir   r   )r   is   & rN   r   r      s     )Le*Q*<*<er    )alllen	enumerater   r   )r   badlistcr   s   &   rN   annotations_validatorr      s     IG	====	=	={q NSBkBSSSBkBBB!+.HAeT**!!A#o66 /  "+.HA5zQcc)Le)Lccc)Le)L&L&L!!A#ay11 / rM   z	>= 2.51.1c            "        a  ] tR t^t]! R4      tR V 3R lltR R lt]P                  R R l4       t
]R R	 l4       t]R
 R l4       t]! R]! R]RR7      ]! R]! ]]4      . RR7      ]! R]RR7      ]! R]RRR7      ]! R]RRR7      4      ]]! RR4      R R l4       4       4       t]! R]]]P0                  ]]]34      ]! R]]]]P>                  ! RRR7      ] ]! R ]]!34      ]! R!]! ]]P0                  ]]34      . RR7      ]! R"]RRR7      ]! R#]RRR7      ]! R$]! ]]4      . RR7      4      R% R& l4       4       t"]R' R( l4       t#RR) R* llt$R+ R, lt%RR- R. llt&R/ R0 lt'R1 R2 lt(R3 R4 lt)R5 R6 lt*R7 R8 lt+],PZ                  ! R9R:7      R; R< l4       t.]R= R> l4       t/]R? R@ l4       t0]RA RB l4       t1]RC RD l4       t2]RE RF l4       t3]RG RH l4       t4]RI RJ l4       t5]RK RL l4       t6RM RN lt7]RO RP l4       t8]RQ RR l4       t9]RS RT l4       t:]RU RV l4       t;]RW RX l4       t<]! RY]=]>P~                  ]>P                  3^RZ7      ]! RY]]P?                  R[R\7      ]]AP>                  ! R]R\7      ]! R!]! ]]B4      . RR7      ]! R^]]!3R_R\7      ]! R`]! ]]4      . RR7      ]! Ra]RRbR7      ]! Rc]! ]]4      . RR7      ]! Rd]! ]]4      . RR7      ]! Re]! ]]]>P                  34      . RR7      ]! Rf]! ]]]D34      . RR7      ]! Rg]]!3RhR\7      ]! Ri]]]!3RR/Rj Rk7      ]! Rl]]!3RhR\7      ]! Rm]]]!3RR/Rn Rk7      ]! Ro]! ]]>P~                  ]>P                  34      . RR7      ]! Rp]RRq7      ]! Rr]RRq7      ]! Rs]! ]]]P0                  ]]]34      . RR7      ]! Rt]! ]]4      . RR7      4      Ru Rv l4       4       tE]]! Rw]P?                  R[R\7      ]F4      Rx Ry l4       4       tG]! Rz]]R{7      ]! Rz]! R|]! ]]4      R. R}R~R7      ]! R]! ]]4      R. R7      ]! Rs]! ]]4      R. R7      ]! R]RR7      4      R R l4       4       tH]! R]4      ]! R]! R]! ]]4      R. RR7      ]! R]RRR7      ]! R]! ]]]P0                  ]]]34      . RR7      ]! R!]! ]]B]>P~                  ]>P                  34      R. R7      ]! R]! ]]]P0                  34      . RR7      ]! R]! ]]4      . RR7      ]! R]! ]]]P0                  34      . RR7      ]! R]! ]]4      . RR7      ]! R]! ]]]P0                  34      . RR7      ]! R]! ]]4      . RR7      ]! Re]! ]]]>P                  34      R. R7      ]! R]RR7      ]! R]! ]]4      . RR7      ]! R]]!34      ]! R]]!34      ]! R]! ]]4      . RR7      ]! R]RR]I! 0 Rm4      R7      ]! R]RRR7      ]! Rp]RRR7      ]! R]! ]]4      . RR7      ]! R]! ]]4      . RR7      ]! R]! ]]]>P                  34      RRR7      4      R R l4       4       tJR R ltK]L]! R]4      R R l4       4       tM]! R]]]P0                  ]]]3.R7      ]! R]P?                  R[R\7      ]NP>                  ! RR\7      ]! R]! ]]4      R. RR7      ]! R]]!34      ]! Rp]]!34      ]! R]RR7      ]! R]! ]]]34      . ]OR R7      ]! R]RRR7      ]! R]]!34      ]! R]]!3RR\7      ]! R]]!3RR\7      ]! R]RR]I! 0 Rm4      R7      ] P>                  ! RR\7      4      R R l4       4       tP]! R]4      ]! R.]QO]RN]! Rs]! ]]]P0                  ]]]34      RRR7      N]! R]]P0                  ]!34      N]! R]]P0                  ]!34      N]! R]]!34      N]! R]]!34      N]! R]]!34      N]! R]]!34      N]! R]]!34      N]! R]]!34      N]! R]]!34      N]! R]]!34      N5!  R R l4       4       tS]! RR4      ]! R]4      ]! R.]QO]! Rs]! ]]]P0                  34      RRR7      N]! R]RR7      N]! R]RR7      N]! R]RR7      N]! R]RR7      N5!  R R l4       4       4       tTRRRR9RR9/R R lltU]! R]4      ]! R]FP>                  ! RhR\7      ]RP>                  ! RhR\7      ]P>                  ! RR7      ] ]! R]! ]]4      R. R7      ]! R]RR7      ]! R]RR7      ]! R]]!34      ]! R]RR7      ]! Rs]! ]]]P0                  3RR7      RRR7      ]! R]RR7      ]! R]RR7      4      R R l4       4       tVR R ltWR R ltXR R ltY]! R]4      ]! R]] ]! Rs]! ]]]D3RR7      RRR7      ]! R]! ]]4      R. R7      ]! R]! ]]4      R. R7      ]! R]! ]]4      R. R7      ]! R]! ]]]Z34      R. R7      4      R R l4       4       t[Rt\V ;t]# )GnomeModulegnomec                    V ^8  d   QhRRRR/# )r   r   'Interpreter'r   NonerE   )r   s   "rN   r   GnomeModule.__annotate__   s      M d rM   c                	  < \         SV `  V4       R V n        R V n        R V n        RV n        . V n        RV n        RV n        RV n	        R V n
        R V n        V P                  P                  RV P                  RV P                  RV P                   RV P"                  RV P$                  RV P&                  RV P(                  R	V P*                  R
V P,                  RV P.                  RV P0                  RV P2                  /4       R # )NFpost_installcompile_resourcesgenerate_gircompile_schemasyelpgtkdocgtkdoc_html_dirgdbus_codegenmkenumsmkenums_simple
genmarshalgenerate_vapi)super__init__gir_dep	giscanner
gicompilerinstall_glib_compile_schemasinstall_gio_querymodulesinstall_gtk_update_icon_cacheinstall_update_desktop_databaseinstall_update_mime_databasedevenvnative_glib_versionmethodsupdater   r   r   r   r   r   r   r   r   r   r   r   )selfr   	__class__s   &&rN   r   GnomeModule.__init__   s    %/3/304,1)57%-2*/4,,1)AE48 D--!7!7D--t33DIIdkkt33T//t||d11$//T//
 	rM   c                    V ^8  d   QhRRRR/# )r   state'ModuleState'r   rs   rE   )r   s   "rN   r   r     s     
( 
(m 
( 
(rM   c                	0   V P                   f~   \        RVP                  R\        P                  RR/4      pVP                  4       '       d"   VP                  4       V n         V P                   # \        P                  ! R4       RV n         V P                   # )Nglib-2.0nativerequiredFz]Could not detect glib version, assuming 2.54. You may get build errors if your glib is older.z2.54)	r   r   environmentr(   BUILDfoundget_versionr   warning)r  r  glib_deps   && rN   _get_native_glib_version$GnomeModule._get_native_glib_version  s    ##+*:u7H7H,4m6I6I:W\+]_H~~+3+?+?+A(
 '''  O P+1('''rM   c                    V ^8  d   QhRRRR/# )r   r  r  r   r   rE   )r   s   "rN   r   r   (  s     1 1 1$ 1rM   c                	    \         P                  ! V P                  V4      \        4      '       g1   \        P
                  ! R \        P                  ! R4      RRR7       R# R# )ztGLib compiled dependencies do not work reliably with 
the current version of GLib. See the following upstream issue:z1https://bugzilla.gnome.org/show_bug.cgi?id=774368TFoncefatalN)r   version_comparer  gresource_dep_needed_versionr   r  boldr  r  s   &&rN   __print_gresources_warning&GnomeModule.__print_gresources_warning'  sQ    ''(E(Ee(L(DF FLL Z#VW"%1FrM   c                   V ^8  d   QhRR/# )r   r   r   rE   )r   s   "rN   r   r   1  s     - -$ -rM   c                 	b    \         P                  ! R \         P                  ! R4      RRR7       R# )zCode generated with gdbus_codegen() requires the root directory be added to
  include_directories of targets with GLib < 2.51.3:z/https://github.com/mesonbuild/meson/issues/1387TFr  N)r   r  r  rE   rM   rN   _print_gdbus_warning GnomeModule._print_gdbus_warning0  s&     LYYPQe	-rM   c               $    V ^8  d   QhRRRRRR/# )r   r  r  toolrs   r   z
'ToolType'rE   )r   s   "rN   r   r   8  s!     7 7- 7s 7z 7rM   c                	~    R RRRRRRRRRRRRR	R
R	/pW!,          pVP                  RR4      pV P                  WV4      # )gio-querymoduleszgio-2.0glib-compile-schemasglib-compile-resourcesgdbus-codegenglib-genmarshalr  glib-mkenumsg-ir-scannergobject-introspection-1.0g-ir-compiler-_)replace	find_tool)r  r#  tool_mapdepnamevarnames   &&   rN   
_find_toolGnomeModule._find_tool7  s_     	"I$iYzJ78	
 .,,sC(tg66rM   zgnome.post_installr?   Fr   rA   Tr   rB   rC   z0.59.0)r   sincerD   z0.64.0z0.57.0c               (    V ^8  d   QhRRRRRRRR/# )	r   r  r  argsT.List['TYPE_var']kwargsz'PostInstall'r   r   rE   )r   s   "rN   r   r   Q  s+     *+ *+- *+7I *+S` *+ev *+rM   c                	4   . p\         P                  P                  VP                  P	                  4       VP                  P                  4       4      pVR ,          '       d   V P                  '       go   RV n        V P                  VR4      p\         P                  P                  VRR4      pVP                  P                  Wg.4      pRVn
        VP                  V4       VR,           F  p	WP                  9  g   K  V P                  P                  V	4       V P                  VR4      p\         P                  P                  VP                  P	                  4       V	4      p
VP                  P                  Wj.4      pRVn
        VP                  V4       K  	  VR,          '       d   V P                  '       g   RV n        VP                  RR	R
7      p\        V\         4      ;'       g    VP#                  4       pV'       g   VP                  R4      p\         P                  P                  VRR4      pVP                  P                  VRRRV.4      pRVn
        VP                  V4       VR,          '       d   V P$                  '       go   RV n        VP                  R4      p\         P                  P                  VR4      pVP                  P                  VRV.4      pRVn
        VP                  V4       VR,          '       d   V P&                  '       gm   RV n        VP                  R4      p\         P                  P                  VR4      pVP                  P                  Wm.4      pRVn
        VP                  V4       \)        RV4      # )r?   Tr&  r  schemasrA   r%  rB   zgtk4-update-icon-cacheFr
  zgtk-update-icon-cacheiconshicolor-qz-tz-frC   zupdate-desktop-databaseapplicationsrD   zupdate-mime-databasemimeN)ospathjoinr  
get_prefixget_datadirr   r5  backendget_executable_serialisationskip_if_destdirappendr   r   find_programr   r   r  r   r   r   )r  r  r9  r;  rvdatadir_absprog
schemasdirscriptd	moduledirr  icondirappdirs   &&&&          rN   r   GnomeModule.post_installG  s    :<ggll5#4#4#?#?#A5CTCTC`C`Cbc())$2S2S2S04D-??5*@ADk:yIJ]]??@RSF%)F"IIf*++A555--44Q7u.@AGGLL):):)E)E)GK	CCTDUV)-&		&! , )**43U3U3U15D.%%&>%ODtZ0@@DJJLE))*ABggll;CG]]??tTSWY`@abF%)F"IIf+,,T5Y5Y5Y37D0%%&?@DWW\\+~>F]]??tV@TUF%)F"IIf())$2S2S2S04D-%%&<=DWW\\+v6F]]??OF%)F"IIf r**rM   zgnome.compile_resourcesrd   z0.37.0)r   r7  r]   r^   r_   ra   re   c               (    V ^8  d   QhRRRRRRRR/# )	r   r  r  r9  zT.Tuple[str, 'FileOrString']r;  z'CompileResources'r   z'ModuleReturnValue'rE   )r   s   "rN   r   r     s1     U) U)} U)<X U)"4U)9LU)rM   c                	   V P                  V4       V P                  V4      pV P                  VR 4      pVR.pVR,          pVR,          pVw  r. p. pV F  p\        V\        P
                  4      '       d   VP                  VP                  4       K@  VP                  V4       VP                  VP                  4       4       \        P                  ! V\        4      '       d   K  Rp\        V4      h	  \        P                  ! V\        4      '       Eg"   \        V
\        P
                  4      '       d   V
P                  '       dO   \        P                  P                  VP                   P#                  4       V
P                  V
P$                  4      pM\        P                  P                  V
P                  V
P$                  4      pMV\        V
\&        \(        \*        34      '       d   \        R4      h\        P                  P                  VP                  V
4      pV P-                  WWx4      w  prM. pV Uu. uF8  p\        P                  P                  VP.                  VP                  V4      NK:  	  ppW{,          pVP                  \        P                  P                  VP.                  VP                  4      4       \1        \3        R V 4       4      4      pV F  pVRV.,          pK  	  VR,          '       d   VR	VR,          .,          pVR
,          '       g   VR.,          pV. R+O,          pWcR,          ,          pVR,          pV'       d   V	 R2pV	 R2pMRVP                   P4                  P6                  P8                  9   d   V	 R2pV	 R2pMERVP                   P4                  P6                  P8                  9   d   V	 R2pV	 R2pM\        R4      hVR,          '       d.   V'       g   \        R4      hVR,          '       g   \        R4      hVR,          pV'       d   V'       d   \        R4      hV'       d   VR
,          '       g   \        R4      hRp\        P                  ! V\        4      '       g   TpM$V R2p\:        P:                  ! V4      R R!.,           p\=        TVP                  VP>                  VP                   TV
.V.VR",          TTTVR,          VR,          '       d   VR,          .M. R#.R$7      pVVn         V'       d   \C        VV.4      # VR,          ;'       g9    VP                   P4                  PD                  PG                  \I        R%4      4      p\        V\J        4      '       g   Q R&4       h\M        V	 R'2VP                  VP>                  VP                   VV
.V	 R(2.VR",          VVV.R).R*7      pVV.p\C        VV4      # u upi ),r'  @INPUT@re   r^   zThe "dependencies" argument of gnome.compile_resources() cannot
be used with the current version of glib-compile-resources due to
<https://bugzilla.gnome.org/show_bug.cgi?id=774368>a4  Resource xml files generated at build-time cannot be used with gnome.compile_resources() in the current version of glib-compile-resources because we need to scan the xml for dependencies due to <https://bugzilla.gnome.org/show_bug.cgi?id=774368>
Use configure_file() instead to generate it at configure-time.c              3  `   "   T F$  p\         P                  P                  V4      x  K&  	  R # 5ir   )rD  rE  normpath)r   dirs   & rN   r   0GnomeModule.compile_resources.<locals>.<genexpr>  s"     %S{bgg&6&6s&;&;{s   ,.--sourcedirr]   z--c-namer_   
--internalr`   ra   z
.gresource
_gresourcer   .c_ccppz.cpp_cppzFCompiling GResources into code is only supported in C and C++ projectsrb   zGThe install kwarg only applies to gresource bundles, see install_headerrc   z[gnome.compile_resources: "install_dir" keyword argument must be set when "install" is true.rd   z<The install_header kwarg does not apply to gresource bundlesz7GResource header is installed yet export is not enabledNz.dz--dependency-filez	@DEPFILE@rQ   runtime)rQ   depfilerS   extra_dependsrb   rc   install_tag
includedirfor mypy_h.hdevel)rQ   rh  rb   rc   ri  )z
--generatez--target@OUTPUT@)'&_GnomeModule__print_gresources_warningr  r5  r   r   FilerL  subdir
get_subdirr  r  r)   is_builtrD  rE  rF  r  get_build_dirfnamer   r   r   _get_gresource_dependenciesbuild_to_srcr   r*   coredata	compilershostcopyr   
subprojectsource_dirsr   optstoreget_value_forr.   rs   r   )r  r  r9  r;  glib_versionglib_compile_resourcescmdr~  r^   target_name
input_filesubdirsr   depmifilerS   rS  re   	gresourceoutputr   rd   rg  
target_cmdtarget_crc   target_hrN  s   &&&&                         rN   r   GnomeModule.compile_resources}  sM     	''.44U;!%8P!Q1G0S\*n-"&  "DFC#x}}--szz*s#s~~/0//>Z[[NA )++   ''6RSS
 *hmm44 &&&GGLL):):)H)H)JJL]L]_i_o_opEGGLL):):J<L<LMEJ7H-(XYY$ &b c c U\\:>-1-M-Mk.9*L'7 L S^^R]Qrww||E$6$6aHR]^277<<(:(:ELLIJ :%S{%SST%JM:..C & (Jx 011ChL>!C55l##-.	#}J/F!]*-De''00::???'=+%b)%++44>>CCC'=-%d+$%mnn)$%nooM**$  &C  D  D 01i !_``&"2"2 !Z[[#'''6RSSJmG3+>*LLJ"LLLH#$67%!9%39-3H3H./b"
   +$Xz::]+yyu/@/@/I/I/R/R/`/`ajkwax/y+s++7Z7+(m2LLL}B #$67!"$ 	
 ! R((y _s    >W.c          
     ,    V ^8  d   QhRRRRRRRRR	R
/# )r   r  r  r  rs   r~  r@   r^   zCT.Sequence[T.Union[mesonlib.File, CustomTarget, CustomTargetIndex]]r   zeT.Tuple[T.List[mesonlib.FileOrString], T.List[T.Union[CustomTarget, CustomTargetIndex]], T.List[str]]rE   )r   s   "rN   r   r   #  s>     G+ G+ G+.1G+@KG+]G+ wG+rM   c           	     	4   R VR.pVRV P                   .,          pV F6  pVR\        P                  P                  V P                   V4      .,          pK8  	   \	        W@P
                  P                  4       R7      w  rgpTP                  ^ 8w  dG   RT^,           RT 2p	\        P                  ! T	4       \        P                  ! TP                  T4      hTP                  R4      RR p
. p. p. pT
P!                  4        EF  p\        P                  P#                  T4      pT EF4  p\%        T\&        P(                  4      '       dT   TP*                  T8w  d   K7  T
P-                  T4       TP/                  T4       TP/                  TP                   4        K  \%        T\0        \2        34      '       g   K  RpTP5                  4        Uu0 uF$  pT\        P                  P#                  T4      3kK&  	  ppT F  w  ppTT8X  g   K  Tp M	  Tf   K  T
P-                  T4       TP/                  T4       TP/                  TP7                  4       4        EK\  	   \&        P(                  P9                  T P
                  P                  4       R	T4      pT
P-                  T4       TP/                  T4       EK  	  TP;                  T
4       YT3#   \        \        3 d    \        R4      hi ; iu upi   \         d    \        R
T RT R24      hi ; i)r'  z--generate-dependenciesr_  )cwdz)Could not execute glib-compile-resources.z6glib-compile-resources failed to get dependencies for z:

N.z
Resource "z" listed in "z" was not found. If this is a generated file, pass the target that generates it to gnome.compile_resources() using the "dependencies" keyword argument.)rr  rD  rE  rF  r+   r  get_source_dirFileNotFoundErrorPermissionErrorr)   
returncoder   r  
subprocessCalledProcessErrorsplitr|  basenamer   r   rq  rv  removerL  r   r   get_outputsrs  from_source_fileextend)r  r  r~  r^   r  re   pcstdoutstderrr  raw_dep_filesr   r  	dep_filesresfileresbasenamer  rv  ooutputsbaseofs   &&&&                  rN   rw  'GnomeModule._get_gresource_dependencies"  s    ((*
 	u||,,%JM277<<j#IJJC &	N!+C5F5F5U5U5W!XB ==AHQPSTZS[\ALLO//sCC%+\\$%7%<DF!35	$))+G''**73K#c8==11yyK/ !((1$$S)NN3::.l4E%FGG EADARSARA277#3#3A#67ARGS$+5 K/$%E! %, (%,,W5s+s~~'78' $:- 66u7H7H7W7W7Y7:GEA $$W-  #S ,T 	'7**o "?3 	N !LMM	N0 T, & -($WI]:, G, ,- --s   'K *K49K9K19Lc               0    V ^8  d   QhRRRRRRRRR	RR
R/# )r   r  r  libz1T.Union[build.SharedLibrary, build.StaticLibrary]r   gT.Sequence[T.Union[build.BuildTarget, 'build.GeneratedTypes', 'FileOrString', build.StructuredSources]]include_rpathr>   use_gir_argsr   yT.Tuple[T.List[str], T.List[T.Union[build.BuildTarget, 'build.GeneratedTypes', 'FileOrString', build.StructuredSources]]]rE   )r   s   "rN   r   r   l  sE     ) )M )M) !H) '+) &*	)
 V)rM   c                	v   . p\        V4      p\        V\        P                  4      '       Ed$   \        P
                  P                  VP                  P                  4       VP                  P                  V4      4      pVP                  R V,           4       V'       d   VP                  RV,           4       VP                  V4       VP                  4        Fu  p	\        P
                  P                  VP                  P                  4       V	4      p	VP                  R V	,           4       V'       g   K]  VP                  RV	,           4       Kw  	  V'       d=   V P                  R4      '       d&   VP                  RVP                  ,           4       Wg3# VP                  RVP                  ,           4       Wg3# )-L-Wl,-rpath,--extra-library--extra-library=-l)r   r   r   SharedLibraryrD  rE  rF  r  ru  rI  get_target_dirrL  determine_rpath_dirs_gir_has_optionr   )
r  r  r  r   r  r  link_commandnew_dependslibdirrS  s
   &&&&&&    rN   _get_link_argsGnomeModule._get_link_argsl  sJ    %'7mc5..//WW\\%"3"3"A"A"CU]]EaEabeEfgFv.##MF$:;s#
 --/GGLL!2!2!@!@!BAF##D1H- = ''(9:	 0
 D001BCC 2SXX => (( sxx0((rM   c               0    V ^8  d   QhRRRRRRRRR	RR
R/# )r   deps9T.Sequence[T.Union['Dependency', build.BuildTargetTypes]]r  r  r   r  r  r>   r  r   zT.Tuple[OrderedSet[str], OrderedSet[T.Union[str, T.Tuple[str, str]]], OrderedSet[T.Union[str, T.Tuple[str, str]]], OrderedSet[str], T.List[T.Union[build.BuildTarget, 'build.GeneratedTypes', 'FileOrString', build.StructuredSources]]]rE   )r   s   "rN   r   r     sV     [P [PQ[P [P }[P  	[P
 [P~[PrM   c           	     	
   \        4       p\        4       p\        4       p\        4       p	\        P                  ! V4      p\        V4      pV EF  p
\	        V
\
        4      '       dL   V
P                  R R RR7      pV'       d0   \	        V\        4      '       g   Q R4       hV	P                  V.4       \	        V
\        4      '       Ed:   VP                  V
P                  4       4       VP                  VP                  V
P                  4      4       V
P                   F  p\	        V\        P                  4      '       g   K%  V P!                  W,W44      w  rVP                  V4       V P#                  VP%                  4       W#VV4      pVP                  V^ ,          4       VP                  V^,          4       VP                  V^,          4       V	P                  V^,          4       V^,          pK  	  V P#                  V
P&                  W#VV4      pVP                  V^ ,          4       VP                  V^,          4       VP                  V^,          4       V	P                  V^,          4       V^,          pV
P(                   Fq  p\	        V\*        4      '       g   K  V	P                  \,        P.                  P1                  VP2                  P5                  4       VP7                  4       4      .4       Ks  	  EK  \	        V
\
        4      '       Ed   VP                  V
P                  4       4       \9        V
P;                  RR7      4      pV EFS  p\,        P.                  P=                  V4      '       d   \?        V
RR4      '       d   \,        P.                  PA                  V4      pVP                  RV 2.4       V'       d   VP                  R	V 2.4       \,        P.                  PC                  V4      pVPE                  R
4      '       d
   VR,          pVPG                  R4      ^ ,          pRV 2pVPE                  R4      '       d   VPE                  R	4      '       g   EK  VR8X  d!   VP                  V\I        V4      3.4       EKA  VP                  V.4       EKV  	  EKc  \	        V
\        PJ                  \        P                  34      '       dC   VP                  VP                  V
PM                  4       4      4       VPO                  V
4       EK  \P        PR                  ! RV
: R24       EK  	  V'       d.   V PU                  R4      '       d   R R lpV! V4      pV! V4      pWgWV3# )girdir 	pkgconfigr   default_valuerk  T)raw
is_libtoolFr  r  r  :   NNz.sor  z-Wz
-frameworkzdependency z not handled to build gir filesr  c                    V ^8  d   QhRRRR/# )r   ldflagsz+T.Iterable[T.Union[str, T.Tuple[str, str]]]r   z+OrderedSet[T.Union[str, T.Tuple[str, str]]]rE   )r   s   "rN   r   =GnomeModule._get_dependencies_flags_raw.<locals>.__annotate__  s      % %%P %  VA %rM   c                    \        4       pV  FT  p\        V\        4      '       d+   VP                  R 4      '       d   VP	                  R R^4      pVP                  V4       KV  	  V# )r  r  )r*   r   rs   
startswithr0  add)r  fixed_ldflagsldflags   &  rN   fix_ldflags<GnomeModule._get_dependencies_flags_raw.<locals>.fix_ldflags  sY    MW\%F!&#..63D3DT3J3J!'6H!!L!%%f- & %$rM   )+r*   r   r   r   r   r   get_variablers   r   r   get_compile_argsget_include_argsrm   	librariesr   r  r  _get_dependencies_flags_rawget_external_depsext_depsrX   r   rD  rE  rF  r  ru  rs  iterget_link_argsisabsgetattrdirnamer  r  r  nextStaticLibraryget_include_dirsrL  r   logr  )r  r  r  r   r  r  cflagsinternal_ldflagsexternal_ldflagsgi_includesr  r  r  _ldlibdepflagsextdepflagssourcer  flaglib_dirlibnamer  s   &&&&&&                rN   r  'GnomeModule._get_dependencies_flags_raw  sS    #-, ISHR'1|%w-C#z**))Hx_a)b%fc22>J>2&&x0#122c2245e44S5L5LMN==C!#u':':;;'+':':5w'^(//4&*&F&FsG\G\G^`ep}GS'Uk!n5(//A?(//A?#**;q>:"-a. ) #>>s||U]j?KMk!n- ''A7 ''A7"";q>2%a.!kkF!&)44#**BGGLL9J9J9X9X9Z,2,=,=,?-A ,B C *
 C,,c2245s00T0:;#Dd++#Cu=="$''//$"7(//2gY0@A(,33{7)5L4MN"$''"2"24"8"--e44&-bkG")--"6q"9!#G9~t,,T__]5S5S  |+(//$W1F0GH(//7+ $, C%"5"5u7J7J!KLLe44S5I5I5KLMs#;sg-LMN} @ D001BCC%  ++;<*+;<)9OOrM   c               0    V ^8  d   QhRRRRRRRRR	RR
R/# )r   r  r  r  r  r   r  r  r>   r  r   zT.Tuple[OrderedSet[str], T.List[str], T.List[str], OrderedSet[str], T.List[T.Union[build.BuildTarget, 'build.GeneratedTypes', 'FileOrString', build.StructuredSources]]]rE   )r   s   "rN   r   r     sN     P PQP P }P  	P
 P~PrM   c                	N   V P                  WW4V4      w  rgrp. p
. pV F=  p\        V\        4      '       d   V
P                  V4       K,  V
P	                  V4       K?  	  V F=  p\        V\        4      '       d   VP                  V4       K,  VP	                  V4       K?  	  WjWV3# r   )r  r   rs   rL  r  )r  r  r  r   r  r  r  internal_ldflags_rawexternal_ldflags_rawr  r  r  r  s   &&&&&&       rN   _get_dependencies_flags#GnomeModule._get_dependencies_flags  s     TXSsSstx  BI  Zf  TgP&:(*(* +F&#&& ''/ ''/	 +
 +F&#&& ''/ ''/	 + )9OOrM   c               $    V ^8  d   QhRRRRRR/# )r   	girtargetz=T.Union[Executable, build.StaticLibrary, build.SharedLibrary]r  r  r   rE   )r   s   "rN   r   r     s$      ,i r  ]rM   c                	N   \        V\        \        P                  \        P                  34      '       g%   \        R V R\        V4      P                   24      hRp\        V\        P                  4      '       d*   V P                  W#4      '       g   \        RV,           4      hV# )z4Gir target must be an executable or library but is "z
" of type z>=1.58.1zEStatic libraries can only be introspected with GObject-Introspection )	r   r   r   r  r  r)   typerG   _giscanner_version_compare)r  r  r  STATIC_BUILD_REQUIRED_VERSIONs   &&& rN   _unwrap_gir_targetGnomeModule._unwrap_gir_target  s    )j%2E2E&+&9&9&; < < #WXaWbblmqr{m|  nF  nF  mG  "H  I  I(2%i%"5"577..uTT !h  lI  "I  J  JrM   c               $    V ^8  d   QhRRRRRR/# )r   r4  rs   valuer   r   rE   )r   s   "rN   r   r     s!     . .s .3 .4 .rM   c                	    V P                   f   \        P                  ! 4       V n         V P                   P                  W.4       R # r   )r   r   EnvironmentVariablesprepend)r  r4  r  s   &&&rN   _devenv_prependGnomeModule._devenv_prepend  s0    ;;"779DKGW-rM   c                    V ^8  d   QhRRRR/# )r   bzbuild.Buildr   r   rE   )r   s   "rN   r   r     s     ) ){ )t )rM   c                	p    V P                   e(   VP                   P                  V P                   4       R # R # r   )r   rL  )r  r  s   &&rN   postconf_hookGnomeModule.postconf_hook  s%    ;;"HHOODKK( #rM   c                    V ^8  d   QhRRRR/# )r   r  r  r   zT.Tuple[Dependency, T.Union[Executable, 'ExternalProgram', 'OverrideProgram'], T.Union[Executable, 'ExternalProgram', 'OverrideProgram']]rE   )r   s   "rN   r   r     s     = =- = 5w =rM   c                	    V P                   '       gE   VP                  R 4      V n         V P                  VR4      V n        V P                  VR4      V n        V P                   V P                  V P                  3# )r,  r+  r-  )r   
dependencyr5  r   r   r  s   &&rN   _get_gir_depGnomeModule._get_gir_dep  s[    ||| ++,GHDL!__UNCDN"ooe_EDO||T^^T__<<rM   c               $    V ^8  d   QhRRRRRR/# )r   r  r  cmprs   r   r>   rE   )r   s   "rN   r   r      s!       C D rM   c                	     V P                  V4      w  p p\        P                  ! VP                  4       V4      #   \         d     R # i ; i)F)r  r   r  r  r)   )r  r  r  r   r/  s   &&&  rN   r  &GnomeModule._giscanner_version_compare   sK    	"//6OIq!++I,A,A,CSII 		s   9< A
AN)maxsizec                    V ^8  d   QhRRRR/# )r   optionrs   r   r>   rE   )r   s   "rN   r   r   +  s     1 1c 1d 1rM   c                	   V P                   p\        V\        \        34      '       d   VR9   g   Q hR# \	        VP                  4       R.,           \        P                  R7      w  r4pVP                  ^ 8H  ;'       d    W9   # )r  Tz--help)r  >   r  --sources-top-dirs)	r   r   r   r/   r+   get_commandr  STDOUTr  )r  r  exepr  r/  s   &&    rN   r  GnomeModule._gir_has_option*  sl    nncJ899FFFFS__.(;JDUDUVa||q 00V[0rM   c               $    V ^8  d   QhRRRRRR/# )r   r  r  ro   rn   r   z4T.Tuple[T.List[str], T.List[str], T.List[GirTarget]]rE   )r   s   "rN   r   r   6  s#     * *] *6U *O*rM   c           	     	
   . p. p. pV F  p\        V\        4      '       d   VR V 2.,          pK(  \        V\        4      '       g   K@  VP                  \        P
                  P                  V P                  P                  4       VP                  4       4      4       VP                  R\        P
                  P                  VP                  4       VP                  4       4       24       VP                  V4       K  	  W#V3# )z
--include=z--include-uninstalled=)r   rs   r   rL  rD  rE  rF  r  ru  rs  get_basename)r  ro   retgir_inc_dirsr   incs   &&    rN   _scan_includeGnomeModule._scan_include5  s     $&%'C#s##*SE*++C++$$RWW\\%2C2C2Q2Q2SUXUcUcUe%fg

3BGGLLAQSVScScSe4f3ghis#  '))rM   c               $    V ^8  d   QhRRRRRR/# )r   r  r  langsT.Iterable[str]r   r@   rE   )r   s   "rN   r   r   G  s!     	 	= 	 	[ 	rM   c                	    . pV Fj  pV P                   P                  P                  \        P                  V4      pV F-  pVP                  R 4      '       g   K  VP                  V4       K/  	  Kl  	  V# )r  )r  ry  get_external_link_argsr(   HOSTr  rL  )r  r+  r%  lang	link_argslink_args   &&    rN   _scan_langsGnomeModule._scan_langsF  sd    D))22II-J\J\^bcI%&&t,,JJx( &  
rM   c               $    V ^8  d   QhRRRRRR/# )r   r  r  
girtargetsT.Sequence[build.BuildTarget]r   z T.List[T.Union[str, Executable]]rE   )r   s   "rN   r   r   S  s#       <Y ^~ rM   c                	   . pV EF{  p\        V\        4      '       d   VR V.,          pK'  \        P                  P	                  VP                  4       VP                  4       4      pV P                  P                  4       p\        V\        P                  4      '       dI   VRP                  V\        P                  P                  V4      4      .,          pVP                  4       pM$\        P                  P	                  V RV 24      pVRV.,          pVP                  4        FS  p\        P                  P	                  V P                  P                  4       V4      pVP                  RV,           4       KU  	  EK~  	  V# )z	--programz-L{}/{}/z	--libraryr  )r   r   rD  rE  rF  rs  get_filenamer  ru  r   r  r   r  r$  r  rL  )r  r6  r%  r  libpath
build_rootr  rS  s   &&      rN   _scan_gir_targetsGnomeModule._scan_gir_targetsR  s0   02#I)Z00Y// '',,y';';'=y?U?U?WX #..<<>
i)<)<== I,,Z9QRSSC'446G ggllj\7)+DEGW--
 #779AU%6%6%D%D%FJAJJtax( :1 $8 
rM   c                    V ^8  d   QhRRRR/# )r   r6  r7  r    T.List[T.Tuple[str, 'Compiler']]rE   )r   s   "rN   r   r   u  s     	 	4Q 	Vv 	rM   c                	    . pV  FB  pVP                   P                  4        F!  w  r4VR9   g   K  VP                  W434        K@  	  KD  	  V# )r   >   r   rS  rd  objcobjcpp)rz  itemsrL  )r6  r%  r  r0  compilers   &    rN   _get_girtargets_langs_compilers+GnomeModule._get_girtargets_langs_compilerst  sN    02#I"+"5"5";";"=>>JJ/0	 #> $ 
rM   c                    V ^8  d   QhRRRR/# )r   r6  r7  r   z3T.List[T.Union[build.BuildTargetTypes, Dependency]]rE   )r   s   "rN   r   r     s      *G #VrM   c                	t    . pV  F/  pWP                  4       ,          pWP                  4       ,          pK1  	  V# r   )get_all_link_depsr  r6  r%  r  s   &  rN   _get_gir_targets_deps!GnomeModule._get_gir_targets_deps  s>     DF#I..00C..00C $ 
rM   c                    V ^8  d   QhRRRR/# )r   r6  r7  r   zOrderedSet[build.IncludeDirs]rE   )r   s   "rN   r   r     s      .K Pm rM   c                	j    \        4       pV  F"  pVP                  VP                  4       4       K$  	  V# r   )r*   r   r  rK  s   &  rN   _get_gir_targets_inc_dirs%GnomeModule._get_gir_targets_inc_dirs  s-    $,#IJJy1134 $
rM   c               $    V ^8  d   QhRRRRRR/# )r   r  r  langs_compilersr@  r   z.T.Tuple[T.List[str], T.List[str], T.List[str]]rE   )r   s   "rN   r   r     s#     : :- :Jj :(V:rM   c                	z   . p. p. pV EF+  w  rVV P                   P                  V4      '       d   W P                   V,          ,          pV P                  P                  V4      '       d   W P                  V,          ,          p\        R 4      VP                  9   g   K  V P
                  P                  P                  P                  R 4      p\        V\        4      '       g   Q hW&P                  RV4      ,          pRV9   d   VR.,          pRV9   d   VR.,          pRV9   g   EK!  VR.,          pEK.  	  W#V3# )
b_sanitizeNaddressz-lasanthreadz-ltsan	undefinedz-lubsan)global_argsgetproject_argsr.   base_optionsr  ry  r  r  r   r   sanitizer_compile_args)r  rS  r  r  r  r0  rE  sanitizes   &&      rN   _get_langs_compilers_flags&GnomeModule._get_langs_compilers_flags  s    !(*(*-ND  $$T**++D11!!%%d++,,T22&(*?*?? ,,55>>LL\Z!(D111199$II($
2$x'$
2$(*$3$ .( )999rM   c               4    V ^8  d   QhRRRRRRRRRRR	R
RR/# )r   r  r  srcdirrs   nsru   r6  r7  
libsourceszWT.Sequence[T.Union[str, mesonlib.File, GeneratedList, CustomTarget, CustomTargetIndex]]r   rE   )r   s   "rN   r   r     sF     % %- % %# %&)%7T%(A%
 !$%rM   c                	   V P                   P                  V^ ,          4      p\        P                  P	                  V4      '       g   \        P
                  ! V4       \        P                  P                  Wb RV R24      p\        VRRR7      ;_uu_ 4       pV EF  p	\        V	\        \        34      '       d   V	P                  4        Fk  p
VP                  \        P                  P                  V P                  P                  4       V P                   P                  V	4      V
4      R,           4       Km  	  K  \        V	\         P"                  4      '       d4   VP                  V	P%                  V P&                  4      R,           4       K  \        V	\(        4      '       dP   V	P                  4        F8  pVP                  \        P                  P                  W4      R,           4       K:  	  EKY  VP                  \        P                  P                  W4      R,           4       EK  	  RRR4       V#   + '       g   i     T# ; i)    r/  _gir_filelistwutf-8encodingr  N)rI  get_target_private_dir_absrD  rE  isdirmkdirrF  openr   r   r   r  writer  ru  r  r   rq  rel_to_builddirrx  r   )r  rb  rc  ru   r6  rd  gir_filelist_dirgir_filelist_filenamegir_filelistscustom_outputgen_srcs   &&&&&&      rN   _make_gir_filelistGnomeModule._make_gir_filelist  s    !==CCJqMRww}}-..HH%& "-=QykQ^?_ `'w??<a,0A!BCC)*$**277<<8I8I8W8W8Y8=8T8TUV8W8E,GIM,N O *9  8==11 &&q'8'89K9K'Lt'ST=11#$==?$**277<<+H4+OP $3 !&&rww||F'>'EF   @ %$ @? %$s   FH99I
	c               8    V ^8  d   QhRRRRRRRRR	R
RRRRRR/# )r   r  r  girfilers   scan_commandzQT.Sequence[T.Union['FileOrString', Executable, ExternalProgram, OverrideProgram]]generated_files=T.Sequence[T.Union[str, mesonlib.File, build.GeneratedTypes]]r   zgT.Sequence[T.Union['FileOrString', build.BuildTarget, 'build.GeneratedTypes', build.StructuredSources]]	env_flagszT.Sequence[str]r;  T.Dict[str, T.Any]r   r   rE   )r   s   "rN   r   r     s]     1
 1
 1
 1
 l	1

 [1
 }1
 '1
 '1
 ,51
rM   c                	D   VR ,          pVf
   VR,          pVR,          p	V	f:   \         P                  P                  VP                  P	                  4       R4      p	MV	RJ d   Rp\
        P                  ! VP                  \        P                  RR7      p
VP                  P                  P                  P                  R,          P                  4       pT
P                  RV Uu. uF  p\        V4      NK  	  upR	4       T
P                  R
V Uu. uF  p\        V4      NK  	  upR	4       V
P                  VR,          4       V P!                  VR4      p\#        VVP$                  VP&                  VP                  VVV.VR,          VVV	.R.V
VR7      # u upi u upi )install_girrb   rp   zgir-1.0FT)uninstalledr   CCr   CFLAGSenvz	>= 1.85.0rQ   rn  )rQ   rh  rb   rc   ri  r  rspable)rD  rE  rF  r  rH  r   get_envr(   r/  ry  rz  r{  get_exelistsetr-   merger  r   rr  r}  )r  r  r{  r|  r}  r   r  r;  rb   rc   run_env
cc_exelistxr  s   &&&&&&&&      rN   _make_gir_targetGnomeModule._make_gir_target  sq    '?Y'G./'',,u'8'8'D'D'F	RKE!G %,,U->->@R@R`de&&//99>>sCOOQ
D<A9Q<<cBHY?Yy|Y?EfUm$ 11%ELLI#$67!$ 	
 	
 =?s   %F
F
c               0    V ^8  d   QhRRRRRRRRR	R
RR/# )r   r  r  typelib_outputrs   typelib_cmdzCT.Sequence[T.Union[str, Executable, ExternalProgram, CustomTarget]]r}  r~  r;  r  r   r	   rE   )r   s   "rN   r   r     s?     
 
M 
3 
*m
.k
 &8
 =J
rM   c                	V   VR ,          pVf
   VR,          pVR,          pVf:   \         P                  P                  V P                  P	                  4       R4      pMVRJ d   Rp\        VV P                  V P                  V P                  VVV.VV.R.VR,          VR,          R7      # )	install_typelibrb   rq   zgirepository-1.0FtypelibrQ   r  )rb   rc   ri  rQ   r  )rD  rE  rF  r  
get_libdirr	   rr  r}  )r  r  r  r}  r;  rb   rc   s   &&&&&  rN   _make_typelib_target GnomeModule._make_typelib_target  s    
 *+?Y'G23'',,u'8'8'C'C'EGYZKE!GLL$"#$67u
 	
rM   c               (    V ^8  d   QhRRRRRRRR/# )	r   r  r  r  z7T.Sequence[T.Union[Dependency, build.BuildTargetTypes]]r   r  r   r  rE   )r   s   "rN   r   r     s2     &- &- &-I&- }&- K	&-rM   c                	   . p\        V4      pV EF  p\        V\        4      '       d   VP                   F  p\        V\        4      '       g   K  Wb9  g   K#  VP                  V4       \        P                  P                  V P                  P                  4       VP                  4       4      pWs9  g   K  VP                  V4       K  	  M\        V\        P                  4      '       d   VP                   Fz  p\        V\        4      '       g   K  \        P                  P                  V P                  P                  4       VP                  4       4      pWs9  g   Ki  VP                  V4       K|  	  \        V\        4      '       g   EK  VP!                  R R RR7      p	\        V	\"        4      '       g   Q R4       hV	'       g   EK  W9  g   EK  VP                  V	4       EK  	  W43# )r  r  r  rk  )r   r   r   rX   r   rL  rD  rE  rF  r  ru  rs  r   r  	generatedr   r  rs   )
r  r  r   typelib_includesr  r  r  rr  g_sourcer  s
   &&&       rN   +_gather_typelib_includes_and_update_depends7GnomeModule._gather_typelib_includes_and_update_depends  su    )+7mC #122!kkF!&)449N#**62!#e.?.?.M.M.O.4.?.?.A"C!9,33F; * C!4!455 #H!(I66!#e.?.?.M.M.O.6.A.A.C"E!9,33F; !. #z**))Hx_a)b!&#..:
:.6f<$++F37 8  ,,rM   c               $    V ^8  d   QhRRRRRR/# )r   r  r  r+  r@   r   rE   )r   s   "rN   r   r   E  s"      M + R] rM   c                	    . pV FR  pV\         P                  ! V P                  P                  P	                  \
        P                  V4      4      ,          pKT  	  V# r   )r   r   r  ry  get_external_argsr(   r/  )r  r+  r%  r0  s   &&  rN   _get_external_args_for_langs(GnomeModule._get_external_args_for_langsD  sL    D8##E$5$5$>$>$P$PQ^QcQcei$jkkC 
rM   c                    V ^8  d   QhRRRR/# )r   r  r,  r   rE   )r   s   "rN   r   r   L  s      O  rM   c              #     "   V  F9  pVP                  R4      '       g   K  VP                  R4      '       d   K5  Vx  K;  	  R# 5i)z?g-ir-scanner only accepts -I/-D/-U; must ignore all other flagsz-D_FORTIFY_SOURCEN)z-Dz-U-Ir  )r  r  s   & rN   _get_scanner_cflagsGnomeModule._get_scanner_cflagsK  s7      A ||.//EX8Y8Y	 s   AA
Ac                    V ^8  d   QhRRRR/# )r   r  r,  r   ztuple[list[str], list[str]]rE   )r   s   "rN   r   r   U  s     
 
o 
:U 
rM   c                    V  Uu. uF  qP                  R4      '       g   K  VNK  	  upV  Uu. uF  qP                  R4      '       g   K  VNK  	  up3# u upi u upi )zFg-ir-scanner only accepts -L/-l; must ignore -F and other linker flagsr  )r  r  r  r  )r  r  s   & rN   _get_scanner_ldflags GnomeModule._get_scanner_ldflagsT  sO      Q1<<0O#PQQQA1<<#@QQA
 	
QAs   AAAAzgnome.generate_gir)varargsmin_varargsz0.40.0)r7  z1.2.0rh   z1.8.0ri   rj   0.55.0rk   rl   rm   ro   r  0.61.0rp   c                	    V R J d   R# R# Tzas boolean can only be falseNrE   r  s   &rN   <lambda>GnomeModule.<lambda>n      T	&D&[W[&[rM   )deprecated_values	validatorr  rq   c                	    V R J d   R# R# r  rE   r  s   &rN   r  r  r  r  rM   rr   rt   r>  ru   rX   rw   c               (    V ^8  d   QhRRRRRRRR/# )	r   r  r  r9  zNT.Tuple[T.List[T.Union[Executable, build.SharedLibrary, build.StaticLibrary]]]r;  z'GenerateGir'r   r   rE   )r   s   "rN   r   r   y  s4     u) u)- u)  8F u)*u)/@u)rM   c                	   VP                  R \        P                  4       V^ ,           Uu. uF  q@P                  WA4      NK  	  pp\	        V4      ^8  dF   \
        ;QJ d    R V 4       F  '       g   K   RM	  RM! R V 4       4      '       d   \        R4      hV P                  V4      w  rgpVR,          p	VR,          p
VR,          pV	 RV
 R	2p\        P                  P                  VP                  P                  4       VP                  4      p\        P                  P                  VP                  P                  4       VP                  4      p. pVP                  VP                   4       VP                  V4       V P#                  V4      pV P%                  VV4      w  pppV P'                  V4      pVVR
,          ,          pVV.,          pV P)                  VVV4      w  ppV P+                  VWRR7      w  ppppp. pV\-        V P/                  V4      4      ,          pV\-        V P/                  V4      4      ,          pT\-        T P/                  T P1                  TV Uu. uF  pV^ ,          NK  	  up4      4      4      ,          p. p. pVP                  P2                  P5                  \        P                  R 4      pV P7                  V4      V P7                  V4      3 F  w  pp VV,          pVV ,          pK  	  V P7                  V4      V P7                  V4      3 F  w  pp VV,          pVV ,          pK  	  V P9                  V4      p!VR,          p". p#V.p$V$R.,          p$V$R.,          p$V$RV	,           RV
,           .,          p$V$R.,          p$V$RR.,          p$T$VR,           U%u. uF  p%RV% 2NK
  	  up%,          p$V$VR,          ,          p$V$RV,           RV,           .,          p$V$VP;                  V!4      ,          p$V$RV P=                  WWW[4      ,           .,          p$VR,           F,  p&V P?                  VV&VRR7      w  p'pV$P                  V'4       K.  	  V PA                  WR,          4      w  p(p)p*V$P                  V(4       V#P                  V)4       VP                  V*4       T$VR,           U+u. uF  p+RV+ 2NK
  	  up+,          p$T$VR,           U+u. uF  p+RV+ 2NK
  	  up+,          p$T$VR,           U+u. uF  p+R V+ 2NK
  	  up+,          p$V$R!.,          p$V$V,          p$V$R".,          p$V$VP;                  V"4      ,          p$V$VP;                  \B        PD                  ! VV#V"4      R#R$7      ,          p$V$\-        V4      ,          p$V$V PG                  W4      ,          p$T$T PI                  TV Uu. uF  pV^ ,          NK  	  up4      ,          p$V$\-        V4      ,          p$V PK                  R%4      '       d   V$R%\        P                  P                  VP                  P                  4       VPL                  4      .,          p$V$R%\        P                  P                  VP                  P                  4       VPL                  4      .,          p$VR&,          e*   V PK                  R'4      '       d   V$R'VR&,          .,          p$R(V$9   d/   \N        PP                  ! R)R*VPR                  R+VPT                  4       VR,,          '       d   V$PW                  R(4       V U,u. uF(  p,\Y        V,\Z        \\        \^        34      '       g   K&  V,NK*  	  p-p,V Pa                  WV$V-VV\b        Pd                  ! R-V4      4      p.V	 RV
 R.2p/VV.RR.p0V0VP;                  V#R/R$7      ,          p0V F  p1V0R/V1,           .,          p0K  	  V Pg                  VV/V0V-\b        Pd                  ! R-V4      4      p2V Pi                  R0\        P                  P                  VP                  P                  4       VP                  4      4       V.V2.p3\k        V3V34      # u upi u upi u up%i u up+i u up+i u up+i u upi u up,i )1r   c              3  B   "   T F  p\        V\        4      x  K  	  R # 5ir   )r   r   )r   els   & rN   r   +GnomeModule.generate_gir.<locals>.<genexpr>  s     &WJbz"j'A'AJr   TFzVgenerate_gir only accepts a single argument when one of the arguments is an executablert   ru   rX   r.  z.girr^   )r  rm   --quietz--no-libtool--namespace=z--nsversion=z
--warn-all--outputro  rk   z--c-include=r`   r  z--filelist=rr   ro   rw   z--symbol-prefix=rl   z--identifier-prefix=ri   z--pkg-export=z--cflags-beginz--cflags-endz--add-include-path=)r   r  rh   z--doc-formatz--warn-errorz(gnome.generate_gir argument --warn-errorr  z%Use "fatal_warnings" keyword argumentrj   r  z.typelibz--includedir=GI_TYPELIB_PATH)6add_languager(   r/  r  r   anyr)   r  rD  rE  rF  r  r  rr  ru  r  rX   rF  r_  rL  r  r  r   r  r  ry  r.  r  rP  r  rx  r  r(  	itertoolschainr=  r3  r  root_subdirr#   
single_user}  current_noderL  r   r   r   r   r  Tcastr  r  r   )4r  r  r9  r;  argr6  r   r   r   rc  ru   rd  r{  rb  builddirr   rS  r  r  r  r  r  
dep_cflagsdep_internal_ldflagsdep_external_ldflagsr  scan_cflagslcscan_internal_ldflagsscan_external_ldflagsscan_env_ldflags	cli_flagsr  girtargets_inc_dirsinc_dirsr&  r|  hl_cflags_cmd_ginc_depsr   r  r}  scan_targetr  r  incdirtypelib_targetrN  s4   &&&&                                                rN   r   GnomeModule.generate_gir\  sB   @ 	3 2 23EI!WMWc--c9W
Mz?Q33&WJ&W333&WJ&W#W#W !yzz)-):):5)A&JK ;'	I&
D)D)e//>>@%,,O77<< 1 1 ? ? A5<<Pwyw'z">>zJ595T5TUZ\k5l2 "2))*5~&&	$($T$TUZ\`bi$j!'
 ((uD(Q 	U
(*>WtD44V<==tD44Z@AAtD44T5V5VW\o~^o~ik_abc_d_do~^  6A  B  C  	C " " ,,55LL]M_M_ade%)%>%>?O%PRVRkRk  mA  SB  %C Iy!Y.!	) %C &*%>%>?O%PRVRkRk  mA  SB  %C Iy!Y.!	) %C #<<ZH/0$&`i_j#((",ny.HII&Z00VH5EF5E<s+5EFF|,,x88../BCC)@)@PR_i)vvww$$A#225!WSW2XGW( % "//j7IJeUD!E"u9PQ9PA+A3/9PQQVDW=XY=X/s3=XYYf=N6OP6O=,6OPP)**#((..x88..y{LZb/c  mB.  C  	C233..uAA((0Q2A0QRR233 4551277<<@Q@Q@`@`@bdidudu3vwwL1277<<@Q@Q@_@_@achctct3uvvL,+0D0D^0T0T^VL-ABBL\)(()SU]).)9)9;bdidvdvx"##/&0tjJq=R^`qBr4s11jt++L/7DTFF'02
 4q84!;
JGu--l?-SS&FOf455K ' 225.+Wfhihnhn  pD  FL  iM  N.U=N=N=\=\=^`e`l`l0mn>* R((a N@ _@* G RYP 1R  us5   a,a4aa"%a'a,?a1*#a6a6zgnome.compile_schemasc               (    V ^8  d   QhRRRRRRRR/# )	r   r  r  r9  r:  r;  z'CompileSchemas'r   r   rE   )r   s   "rN   r   r     s+     7 7] 7:L 7Vf 7k| 7rM   c                	Z   \         P                  P                  VP                  VP                  4      pVP                  pV P                  VR 4      RWT.pVP                  R8X  d   RpM#RVP                  P                  RR4      ,           p\        VVP                  VP                  VP                  V. R.VR,          VR	,          R
R7
      pV P                  R\         P                  P                  VP                  P                  4       VP                  4      4       \        W.4      # )r&  z--targetdirr  zgsettings-compilezgsettings-compile-r9  r/  zgschemas.compiledrQ   rS   zCompiling gschemas {})rQ   rS   descriptionGSETTINGS_SCHEMA_DIR)rD  rE  rF  rx  rr  r5  r0  r   r}  r  r  ru  r   )	r  r  r9  r;  rb  outdirr  
targetnametarget_gs	   &&&&     rN   r   GnomeModule.compile_schemas  s     e00%,,?15H^1_anpv0<<2,J-0D0DS#0NNJLL !#$67//
 	3RWW\\%BSBSBaBaBcejeqeq5rs :66rM   z
gnome.yelp)r  rV   z0.43.0z2Use a LINGUAS file in the source directory instead)r   r   
deprecateddeprecated_messagerW   )r   r   rY   c               (    V ^8  d   QhRRRRRRRR/# )	r   r  r  r9  zT.Tuple[str, T.List[str]]r;  z'Yelp'r   r   rE   )r   s   "rN   r   r     s1     {0 {0- {0/H {0RX {0]n {0rM   c                	   V^ ,          pVR,          pV^,          '       d/   \         P                  ! RRVP                  RVP                  4       V'       g   V^,          pV'       g   \	        R4      hM%V^,          '       d   \
        P                  ! R4       V Uu. uF`  p\        P                  P                  VP                  P                  \        P                  P                  VP                  R4      V4      NKb  	  ppVR,          pV'       gH   \!        \        P                  P                  VP                  P                  VP                  4      4      pVR	,          p	VR
,          p
. p. pVP#                  R4      pVP#                  R4      pVP#                  R4      p\        P                  P                  VP                  P%                  4       R4      p\        P                  P                  VRV4      p\&        P(                  ! VVV\        P*                  ! 4       VP                  RR7      pVP-                  V4       . pV	 F  p\        P                  P                  VP                  P                  \        P                  P                  VP                  R4      V4      pVP-                  V4       \        P                  P                  V\        P                  P/                  V4      4      p\&        P(                  ! V.VV\        P*                  ! 4       VP                  RR7      pVP-                  V4       K  	  \        P                  P                  RVP                  RVR,           4      pV Uu. uF/  p\        P                  P                  RVP                  RV4      NK1  	  ppVRV.pVP1                  V4       \&        P2                  ! RV R2V. \        P                  P                  VP                  R4      VP                  VP                  4      pVP-                  V4       V EF:  p\        P                  P                  VP                  V4      p\        P                  P                  VVV4      p\5        V	4       EFj  w  pp\        P                  P/                  V4      p \        P                  P                  VV 4      p \        P                  P                  VP                  P                  VV4      p!V
'       d   V!'       g   \        P                  P                  \        P                  P7                  VVR7      V4      p"\&        P8                  ! V"\        P                  P;                  V4      VVP                  RR7      p#MKV!'       g
   VV,          p!\&        P(                  ! V!.VV\        P*                  ! 4       VP                  RR7      p#VP-                  V#4       EKm  	  VR,           p$VRR\        P                  P                  RVV$4      \        P                  P                  RVV$4      V.p%\&        P2                  ! RV RV R2V%V.VVP                  VP                  4      p&VP-                  V&4       VP-                  V&4       VR,           V,           R,           p'\=        RV RV R2VVP                  VP                  VRRR.V$.V'.R.R R!7	      p(VP-                  V(4       \=        RV RV 2VVP                  VP                  VR"\        P                  P                  VV'4      R#VRR$R.VVV(.R%V.R.R R&7      p)VP-                  V)4       EK=  	  \&        P>                  ! RV R2VVP                  VP                  VP                  4      p*VP-                  V*4       \A        RV4      # u upi u upi   \         d    Rp! ELi ; i)'rf  rX   z,gnome.yelp more than one positional argumentz0.60.0z+use the "sources" keyword argument instead.zYelp requires a list of sourcesz\"gnome.yelp" ignores positional sources arguments when the "sources" keyword argument is setCrV   rW   rY   itstoolmsgmergemsgfmthelpdocri  z@SOURCE_ROOT@z.potz-ozhelp-z-potN)startz.porA  r.  z
-update-poz.gmoz-gmorZ  ro  zGenerating yelp doc {})ri  r  z-mz--lang@OUTDIR@T)rh  rb   rc   ri  r  )!r#   r  r}  r  r)   r   r  r   rq  r  r  re   rD  rE  rF  rr  r0   rM  rH  r   DataFileModerL  r  r  	RunTargetr   relpathSymlinkDatar  r   AliasTargetr   )+r  r  r9  r;  
project_idrX   ru  sources_filesr+  rW   symlinkstargets	potargetsr  r  r  rc   c_install_dirc_datamedia_filesr  r  m_install_dirm_datapot_filepot_sourcespot_args	pottargetr  l_subdirl_install_dirr   m_dirm_filelink_targetl_datapo_filepo_argspotargetgmo_file	gmotargetmergetargetallpotargets+   &&&&                                       rN   r   GnomeModule.yelp
  s    !W
#77(()WYa).)9)9;hjoj|j|~1gG$%FGG !WWLLwx ELMDKq "778I8I8T8T8:U\\SV8W89;DK 	 M {# e.?.?.J.JELL!YZEw/*RT-/	$$Y/%%j1##H-ggll5#4#4#@#@#BFK[#zBM=-$--/1A1AuVv-/A..u/@/@/K/K/1ww||ELL#/NPQSAq!GGLL8JKMZZ]M ( 1 1 3U5E5ESXZFNN6"  77<<sJQWDWXT[\T[qrww||OU\\3JT[\X_aegoWp$OOeJ<t$<h$&GGLLs$CUEUEU$)$5$57	 	y!Aww||ELL!4HGGLLaDM!%(1* "]E B"8@8V8VW\WhWhWsWsu}  @A  9BF
 F"$'',,rww}Ta/bde"fK"..{BGG<L<LQ<O/<e>N>N\acF "!,Q"ZZ-(0(9(9(;U=M=M[`bFv&% )( %iG$_h@_h@([LG zl!A3j'I'.XuGWGW','8'8:H NN8$X&!C'!+f4H$
|1QCt,  !!D*5	
"G4
I NN9%&
|1QC(  !!$Xx @(AtU_ajk(k*O"G4K NN;' B ''%
|:(F	(-e6F6FHYHY[{# w//_MD ]" & "!F"s   A&_5_5__0/_0zgnome.gtkdocr   z0.48.0)r7  r   r   r   z0.52.0r   r   r   r   r   r   r   rb   rc   r|   r}   r   r   auto)r   r7  r  r~   r  r   r   r{   )r   r
  c               (    V ^8  d   QhRRRRRRRR/# )	r   r  r  r9  T.Tuple[str]r;  z'GtkDoc'r   r   rE   )r   s   "rN   r   r     s/     t5 t5M t5 t5x t5Te t5rM   c                	l  a V^ ,          pVR,          pVR,          pVe   Ve   \        R4      hTpVR,          pYG'       d
   RV,           MR,           R,           pSP                  P                  4       p	VR,          p
SP                  R	\        P
                  4       R
 V3R llpVR,          p. pV F  p\        V\        P                  4      '       dT   VP                  VP                  SP                  P                  4       SP                  P                  4       4      4       Kv  VP                  V4       K  	  RRRSP                  P                  4       ,           RSP                  P                  4       ,           RSP                  ,           RRP                  V4      ,           RV,           RV,           RV,           RVR,          ,           .
pRF FO  pRV,           pSP!                  V4      pVP#                  4       pVf   Q R4       hVP                  RV RV 24       KQ  	  V
'       d   VP                  RV
,           4       SP                  P%                  4       pV'       d6   VP                  RRP                  VP'                  4       4      ,           4       VP                  R RP                  VR!,          4       24       VP                  R"RP                  VR#,          4       24       VP                  R$RP                  VR%,          4       24       VP                  R&RP                  V! VR',          4      4       24       VP                  R(RP                  VR),          4       24       VP                  R*RP                  VR+,          4       24       VP                  R,RP                  V! VR-,          4      4       24       . p. pVR.,           EF  p\        V\(        \*        34      '       d   VP                  V4       VP-                  4        Fd  pVP                  \.        P0                  P                  SP                  P                  4       SP2                  P5                  V4      V4      4       Kf  	  K  \        V\6        P8                  4      '       dU   VP                  VP;                  SP                  P                  4       SP                  P                  4       4      4       EK  \        V\<        4      '       d~   VP                  V4       VP-                  4        FU  pVP                  \.        P0                  P                  SP                  P                  4       SP                  V4      4       KW  	  EK  VP                  \.        P0                  P                  SP                  P                  4       SP                  V4      4       EK  	  VR/RP                  V4      ,           .,          pVP                  R0RP                  V! VR1,          4      4       24       VP                  R2RP                  VR3,          4       24       VP                  R4RP                  VR5,          4       24       V P?                  VR6,          VR7,          VR8,          SV4      w  ppVP                  V4       VP                  V4       \)        VSP                  SP@                  SP                  W,           . V R92.R:VR;R<7
      p\        PB                  ! VV.SP                  SP@                  SP                  4      pVR=,          '       d   SP!                  R>4      pR?V,           R@V,           .pVRA,           V3p \.        P0                  P                  SP                  P                  4       SP                  4      p!SPE                  V VV!V.RB7       VV.p"VRC,          '       d3   V"P                  SP2                  PG                  W,           RDRE7      4       \I        VV"4      # )Grf  r|   r}   z<gnome.gtkdoc: main_xml and main_sgml are exclusive argumentsr~   r.  r  z-docrt   r   c                    V ^8  d   QhRRRR/# )r   fileszT.Iterable['FileOrString']r   zT.Iterator[str]rE   )r   s   "rN   r   (GnomeModule.gtkdoc.<locals>.__annotate__  s     	\ 	\!; 	\ 	\rM   c              3  x  <"   V  F  p\        V\        P                  4      '       dG   VP                  SP                  P                  4       SP                  P                  4       4      x  Ki  \        P                  P                  SP                  P                  4       SP                  V4      x  K  	  R # 5ir   )r   r   rq  absolute_pathr  r  ru  rD  rE  rF  rr  )r"  r  r  s   & rN   abs_filenames)GnomeModule.gtkdoc.<locals>.abs_filenames  s{     a////%*;*;*J*J*LeN_N_NmNmNopp'',,u'8'8'G'G'I5<<YZ[[	 s   B7B:r{   r`  r   z--sourcedir=z--builddir=z	--subdir=z--headerdirs=z@@z--mainfile=z--modulename=z--moduleversion=z--mode=r   zgtkdoc-z8This shouldn't be possible since program should be found--=r  z--run=r   z--htmlargs=r   z--scanargs=r   z--scanobjsargs=r   z--gobjects-types-file=r   z--fixxrefargs=r   z--mkdbargs=r   z--html-assets=r   r   z--content-files=z--expand-content-files=r   z--ignore-headers=r   z--installdir=rc   r   rm   r^   z	-decl.txtTzGenerating gtkdoc {})r   rh  r  r   zgtkdoc-checkzDOC_MODULE=zDOC_MAIN_SGML_FILE=z-check)r  workdirr   rb   r  )tag)scanscangobjmkdbmkhtmlfixxref)%r   r  get_build_commandr  r(   r/  r   r   IncludeDirsr  to_string_listr  ru  rL  rr  rF  rM  get_pathget_exe_wrapperr  r   r   r  rD  rE  rI  r  r   rq  r%  r   _get_build_argsr}  r   testrJ  r   )#r  r  r9  r;  
modulename	main_filer}   moduleversionr  commandrt   r&  src_dirsheader_dirsr{   t_argsr#  program_nameprogramrE  exe_wrapperr   r   ru  r  rw  
build_argsr  custom_targetalias_target	check_cmd	check_env
check_argscheck_workdirress#   &f&&                               rN   r   GnomeModule.gtkdoc  s   F !W
;'	*%$&'eff I/0-3#6RPSYY
##557;'	 	3 2 23	\ 	\ )$#%G'5#4#455""7#9#9%:K:K:Z:Z:\:?:K:K:Y:Y:[$] ^ ""7+   (U..==??E--;;==%,,&dii44I%j(.v&	( FD$t+L((6G##%D#_%__#MMB|nAdV45 F MM.945''779MM(SXXk.E.E.G%HHIDIIf[.A$B#CDEDIIf[.A$B#CDE		&2I(J'KLM.tyyvNaGb9c/d.efgtyy1G'H&IJKDIIf[.A$B#CDEtyyvm?T1U'V&WXY24((A!l,=>??q!A!((e6G6G6U6U6W6;mm6R6RST6U67*9 : ) Ax}}--$$Q__U5F5F5U5U5W5:5F5F5T5T5V&X YA}--q! }}G!((e6G6G6V6V6X6;ll6=*? @  /
 $$RWW\\%2C2C2R2R2T27,,23&5 6# )( 	%		-(@@AA/		-OeHf:g0h/ijk)$))F;K4L*M)NOPdii}0E&F%GHI"&"6"6vh7GPeIf7=n7MuV]#_
Kj!7#$LL|9%&#%.
 ((m_ellTYTdTdfkfwfwx'??**>:I&3.:<I$x/;JGGLL):):)H)H)JELLYMJJzy-R_Q`JaP]_kOl)JJu}}AA'BRX]A^_ 44rM   c               0    V ^8  d   QhRRRRRRRRR	R
RR/# )r   r   r@   r  rz   r  r   r  r  r   z>T.Sequence[T.Union[build.BuildTarget, 'build.GeneratedTypes']]r   r  rE   )r   s   "rN   r   r   ,  sB      !  !k  !=d  !c !, ! "` !eR !rM   c                	|   . pVP                  4       pV P                  W4VR R7      w  rrpVP                  V4       VP                  VP                  V4      4       . pVP                  V	4       VP                  V
4       VP                  VP                  P
                  P                  \        P                  R4      4       VP                  VP                  P
                  P                  \        P                  R4      4       VP                  P
                  P                  \        P                  ,          R,          pV P                  VRV3.4      pVP                  V^ ,          4       VP                  V^,          4       VP                  V^,          4       V'       dQ   VR\        VP                  4       4      ,          .,          pVR\        VP                  4       4      ,          .,          pV'       d   VR\        V4      ,          .,          pV'       d   VR\        V4      ,          .,          pWl3# )T)r  r   z--cc=%sz--ld=%sz--cflags=%sz--ldflags=%s)r|  r  r  r  r  ry  r  r(   r/  r.  rz  r_  r,   r  get_linker_exelist)r  r   r  r  r  r   r9  r  deps_cflagsr  r  _gi_includesr  r  rE  compiler_flagss   &&&&&&          rN   r6  GnomeModule._get_build_args,  s   
 ((gT(R 	S'7{ 	k"e,,X67!'('(e''00BB=CUCUWZ[\u((11HHI[I[]`ab$$--778J8JKCP88#x@QRnQ'(~a()~a()Y8+?+?+A!BBCCDY8+F+F+H!IIJJD]Yv%6677D^i&8899D  rM   zgnome.gtkdoc_html_dirc               (    V ^8  d   QhRRRRRRRR/# )	r   r  r  r9  r  r;  z'TYPE_kwargs'r   rs   rE   )r   s   "rN   r   r   P  s*     ; ;] ;, ;P] ;be ;rM   c                	P    \         P                  P                  R V^ ,          4      # )zshare/gtk-doc/html)rD  rE  rF  )r  r  r9  r;  s   &&&&rN   r   GnomeModule.gtkdoc_html_dirN  s     ww||0$q'::rM   zgnome.gdbus_codegen)optargsz0.46.0r`   z0.47.0r   r   r   c                	V    V '       d!   \        V ^ ,          \        4      '       d   V .# T # )rf  r   r  s   &rN   r  r  `  s     qZ!c-B-B I IrM   )r   r  	convertorr   r   z1.9.0r   r   r   c               (    V ^8  d   QhRRRRRRRR/# )	r   r  r  r9  zGT.Tuple[str, T.Optional[T.Union['FileOrString', build.GeneratedTypes]]]r;  z'GdbusCodegen'r   r   rE   )r   s   "rN   r   r   k  s1     |3 |3= |38 |3,|31B|3rM   c                	   V^ ,          pV^,          '       d   V^,          .M. pV P                  VR4      .pVP                  VR,          4       V P                  V4      p\        P                  ! VR4      '       g*   VR,          R8w  d   \
        P                  ! RV R24       M%VR,          pVR8X  d   RpVP                  R	V.4       VR
,          e   VP                  RVR
,          .4       VR,          e   VP                  RVR,          .4       VR,          '       d   VP                  R.4       VP                  VR,          4       VR,          p	VR,           F%  p
VP                  R4       VP                  V
4       K'  	  . pVR,          pVR,          ;'       g9    VP                  P                  P                  P                  \        R4      4      p\        V\        4      '       g   Q R4       hVR,           p\        P                  ! VR4      '       d   V. R8O,           pEMVR,          e   VR,          pVRV.,          pVR,          eL   \        P                  ! VR4      '       g   \
        P                  ! RV R24       VR,          pVR V.,          pVR!,          eL   \        P                  ! VR"4      '       g   \
        P                  ! RV R#24       VR!,          pVR$V.,          p\        P                  ! VR%4      '       d   VR&R'R(VR.,          pM#V P!                  4        VR(R)V,           R.,          pTp\#        VVP$                  VP&                  VP                  VVV.V	R*R+7	      pVP                  V4       VR,,           p\        P                  ! VR4      '       d   V. R9O,           p. pMTpV.p\#        VVP$                  VP&                  VP                  VVV.V	VVV.R-.R.R/7      pVP                  V4       VR,          e   VR,          pVR0,           p. pV FJ  pVP                  R1P)                  V\*        P,                  P/                  \        V4      4      4      4       KL  	  \        P                  ! VR4      '       d   VR&R'RVR.,           p. pMTpV.p\#        VVP$                  VP&                  VP                  VVVV	VR2R37
      pVP                  V4       VR,          e   VR,          pVR4,           p. pV FJ  pVP                  R1P)                  V\*        P,                  P/                  \        V4      4      4      4       KL  	  \#        VVP$                  VP&                  VP                  VR&R'R VR.,           VVV	R5R+7	      pVP                  V4       VR!,          e   VR!,          pVR6,           p. pV FJ  pVP                  R1P)                  V\*        P,                  P/                  \        V4      4      4      4       KL  	  \#        VVP$                  VP&                  VP                  VR&R'R$VR.,           VVV	R7R+7	      pVP                  V4       \1        W4      # ):rf  r(  r`   z	>= 2.49.1r   r   zGlib version (zE) is too old to support the 'autocleanup' kwarg, need 2.49.1 or newerr   z--c-generate-autocleanupr   z--interface-prefixrt   z--c-namespacer   z--c-generate-object-managerrX   rQ   r   z
--annotaterd   rc   rj  rk  rb  z	>= 2.56.2rZ  r   z--generate-docbookr   z	>= 2.71.1z=) is too old to support the 'rst' kwarg, need 2.71.1 or newerz--generate-rstr   z	>= 2.75.2zB) is too old to support the 'markdown' kwarg, need 2.75.2 or newerz--generate-mdz	>= 2.51.3z--output-directoryr  z--generate-c-codez	@OUTDIR@/zGenerating gdbus source {})rQ   r  rm  rn  zGenerating gdbus header {})rQ   rh  rb   rc   ri  r  z-docbookz{}-{}zGenerating gdbus docbook {})rQ   rh  r  z-rstz$Generating gdbus reStructuredText {}z	-markdownzGenerating gdbus markdown {})--bodyr  ro  rZ  )--headerr  ro  rZ  )r5  r  r  r   r  r   r  rL  r  ry  r  r  r.   r   rs   errorr   r   rr  r}  r   rD  rE  r  r   )r  r  r9  r;  namebase	xml_filesr  r  acrQ   r   r  rd   rc   r  c_cmdr   r   r   cfile_custom_target	hfile_cmdr   hfile_custom_targetr  r  docbook_cmddocbook_custom_targetrst_custom_targetmarkdown_custom_targets   &&&&                         rN   r   GnomeModule.gdbus_codegenS  s?   4 7X\]^X_X_DQRG9eg	151X0Y

6,'( 44U;''kBBm$	1~l^ <; ; < &BYJJ2B78$%1JJ,f5G.HIJ+*JJ)<=>"##JJ567	*+!"45 M**EJJ|$JJu +  01]+yyu/@/@/I/I/R/R/`/`ajkwax/y+s++7Z7+D ##L+>>GGEi , +,g66e}(//kJJJJ~ >'  ' ( Um(#..j!-//kJJJJ~ >*  * + "*-22 ''kBB,j:MxYbcc))++[8-CYOOE*LLH-4

 	*+D##L+>>MMIGI*+G*LLH-!"$ 	4
 	*+)(Y'G
*FGw~~grww7G7GA7OPQ  ''kBB!%9:G[]dfo$pp!./$0  !!!1%9%! NN01%=$-C&FGw~~c2773C3CCF3KLM  !-  !!+Z9I3PYZZ!1B
! NN,-*)j)H+FGw~~h8H8HQ8PQR  &2  !!+Z(T]^^!1:
&" NN12 22rM   zgnome.mkenumsr   r   r   r   r   r   r   r   r   r   c               (    V ^8  d   QhRRRRRRRR/# )	r   r  r  r9  r  r;  z	'MkEnums'r   r   rE   )r   s   "rN   r   r   @  s)     97 97] 97, 97	 97Vg 97rM   c           	     	   V^ ,          pVR,          p\        V\        P                  4      '       d;   VP                  VP                  P
                  VP                  P                  4      pVR,          p\        V\        P                  4      '       d;   VP                  VP                  P
                  VP                  P                  4      p. p. ROpV F;  p	W9,          '       g   K  VRV	P                  RR4      ,           W9,          .,          pK=  	  . p
RpVe   \        P                  P                  \        P                  P                  V4      ^ ,          4      pVRR.,           pV.pVP                  VR	,          4       V P                  WWVR
,          VR,          R7      pV
P                  V4       Ve   \        P                  P                  \        P                  P                  V4      ^ ,          4      pVRR.,           pV.pVP                  VR	,          4       VR,          P                  4       pVe   VP                  V4       V P                  VVVVVR7      pV
P!                  ^ V4       VfG   VfC   VR.,           pV P                  WR	,          VVVR
,          VR,          R7      p\#        VV.4      # \#        W4      # )rf  r   r   r(  r/  r.  Nz
--templaterZ  rX   rd   rc   rb   rc   r   )r   )
r   r   r   r   r   rl   rw   r   r   r   )r   r   rq  r%  r  re   	build_dirr0  rD  rE  r  splitextr  _make_mkenum_implrL  r|  insertr   )r  r  r9  r;  r  r   r   r  known_kwargsr  r  h_targeth_outputh_cmd	h_sourcesc_outputr`  	c_sourcesr   c_targetgeneric_cmdtargets   &&&&                  rN   r   GnomeModule.mkenums)  s   0 7L)
j(--00#11%2C2C2N2NPUPaPaPkPklJL)
j(--00#11%2C2C2N2NPUPaPaPkPklJ3  C{{s{{344fkBB  
 )+-1!ww''(8(8(DQ(GHH <33EPZ|IVI./--(6BR;S"=1 . 3H NN8$!ww''(8(8(DQ(GHH <33EPZ|IVI./Y',,.G#x(--y(E7 . DHNN1h'*"4+K++i((K/0"=1 , 3F %VfX66$W66rM   zgnome.mkenums_simplez0.42.0r   r   r   r   c               (    V ^8  d   QhRRRRRRRR/# )	r   r  r  r9  r  r;  z'MkEnumsSimple'r   r   rE   )r   s   "rN   r   r     s5     lE lEM lE lE lEct lErM   c                	   V^ ,           R2pV^ ,           R2pVR,          pVR,          pVR,          pVR,          p	. p
VR,          '       d   V
P                  RVR,          .4       VR	,          '       d   V
P                  R
VR	,          .4       V
P                  4       pRpV	R8w  d   VRV	,          ,          pVRV,          ,          pV P                  P                  VR,          4       FH  p\        P
                  P                  VP                  4       VP                  4      pVRV R2,          pKJ  	  V\        P                  ! R4      ,          pVP                  RV.4       VP                  R4       VP                  \        P                  ! R4      4       VP                  R4       VP                  \        P                  ! RV R24      4       VP                  RR.4       VP                  R4       VP                  \        P                  ! R4      4       VP                  R4       V P                  WR,          W[4      pV
P                  4       pV'       d!   VP                  R4      '       g
   VR,          pVP                  R4       VP                  \        P                  ! RV R24      4       VP                  R4       VP                  \        P                  ! R4      4       RpV'       d   RpVP                  R4       VP                  V\        P                  ! R V R!V R"V R#24      ,           4       VP                  R$4       VP                  \        P                  ! R%4      4       VP                  R4       V P                  WR,          VVVR&,          VR',          R(7      p\        VV.VV.4      # ))rf  rm  rb  r   r   r   r   rl   z--identifier-prefixrw   z--symbol-prefixr  z%s
z#include "%s"
rX   z
#include "z"
za
            #define C_ENUM(v) ((gint) v)
            #define C_FLAGS(v) ((guint) v)
            z--fheadz--fprodz>
            /* enumerations from "@basename@" */
            z--vheadz
            GType
            z@enum_name@_get_type (void)
            {
                static gsize gtype_id = 0;
                static const G@Type@Value values[] = {z--vprodzA        { C_@TYPE@ (@VALUENAME@), "@VALUENAME@", "@valuenick@" },z--vtailab                      { 0, NULL, NULL }
                };
                if (g_once_init_enter (&gtype_id)) {
                    GType new_type = g_@type@_register_static (g_intern_static_string ("@EnumName@"), values);
                    g_once_init_leave (&gtype_id, new_type);
                }
                return (GType) gtype_id;
            }rZ  r  zK            #pragma once

            #include <glib-object.h>
            z'
            G_BEGIN_DECLS
            z            z
            GType zP@enum_name@_get_type (void);
            #define @ENUMPREFIX@_TYPE_@ENUMSHORT@ (z@enum_name@_get_type())z--ftailz
            G_END_DECLSrd   rc   rk  )r  r|  r   source_strings_to_filesrD  rE  r  relative_namerr  textwrapdedentrL  rn  endswithr   )r  r  r9  r;  hdr_filenamebody_filenamer   decl_decoratorfunc_prefixr   r  r`  r   hdrhdr_pathc_filers  extra_newlineh_files   &&&&               rN   r   GnomeModule.mkenums_simple{  s   " q'"~7)2/,./]+%&&JJ-v6I/JKL/""JJ)6/+BCD
 "Vk))E"\11##;;F9<MNCwws'8'8':ELLIHz(3//E O 	 	
 	i'(YX__ 	
 	YX__M 8;< 	= 	i!defYX__	 		 	Y''i/@-W 
!7!7!=!=T!MYX__ O 	 	 	YX__ 	
  MY]X__ -  44?=@W[&\ \ 	] 	YX__ 	 	Y'')$lE+,}- ( /
 !&&!1FF3CDDrM   r   c               8    V ^8  d   QhRRRRRRRRR	R
RRRRRR/# )r   r  r  rX   r~  r  rs   r  r@   rb   r>   rc   z*T.Optional[T.Sequence[T.Union[str, bool]]]r   z.T.Optional[T.Sequence[build.BuildTargetTypes]]r   zbuild.CustomTargetrE   )r   s   "rN   r   r     s]     !
 !
 !
 S!
 	!

 !
 !
 D!
 D!
 $!
rM   c               	   V P                  VR 4      .pVP                  V4       T;'       g9    VP                  P                  P                  P                  \        R4      4      p	\        V	\        4      '       g   Q R4       h\        TVP                  VP                  VP                  TTV.RTV	.R.TR\        P                  ! 4       ;'       g    \        P                  ! 4       RR7      # )r*  rj  rk  Trn  zGenerating GObject enum file {})capturerb   rc   ri  rh  absolute_pathsr  r  )r5  r  r  ry  r  r  r.   r   rs   r   rr  r}  r   
is_windows	is_cygwin)
r  r  rX   r  r  rb   rc   r   real_cmd_install_dirs
   &&&&&$$$  rN   rn  GnomeModule._make_mkenum_impl  s     7;ooe^6\5]"ppe&7&7&@&@&I&I&W&WXabnXo&p,,,8j8,LLH% 	!'')AAX-?-?-A9!
 	
rM   zgnome.genmarshalr   r   r   r   r   )allow_emptyr   r   c               (    V ^8  d   QhRRRRRRRR/# )	r   r  r  r9  r  r;  z'GenMarshal'r   r   rE   )r   s   "rN   r   r   ,  s/     H) H) H)\ H)< H)\m H)rM   c                	   V^ ,          pVR,          p\         P                  ! V P                  V4      R4      pV P                  VR4      R.pVR,          '       d   VP	                  RVR,          .4       VR,          '       dP   V'       d   VP	                  VR,          4       M.\
        P                  ! R\
        P                  ! R	4      R
RR7       R% F7  pW8,          '       g   K  VP                  RVP                  RR4       24       K9  	  VR,          p	Rp
\         P                  ! V P                  V4      R4      '       d   VRR.,          pMR
p
VR,           pVRR.,           pV'       d   VR.,          p\        VR,           VP                  VP                  VP                  TTV.T	VR,          '       d   VR,          .M. R.V
VR,          RR7      pVRR.,           p. p\         P                  ! V P                  V4      R4      '       d   VR V.,          pVP                  V4       \        VR!,           VP                  VP                  VP                  VVV R"2.V
VR,          VR#R$7      pVV.p\        VV4      # )&rf  rX   z	>= 2.53.3r)  r  r   z--prefixr`   zvThe current version of GLib does not support extra arguments 
for glib-genmarshal. You need at least GLib 2.53.3. See z-https://github.com/mesonbuild/meson/pull/2049TFr  r(  r/  r.  rd   z	>= 2.51.0r  ro  rm  r[  rZ  z--pragma-oncerl  rc   rn  rS   z$Generating glib marshaller header {})rb   rc   ri  r  rS   r  rZ  z	>= 2.53.4z--include-headerrc  rb  z$Generating glib marshaller source {})r  rS   rh  r  )r   r   r   r   r   )r   r  r  r5  r  r   r  r  rL  r0  r   rr  r}  r  r   )r  r  r9  r;  r  rX   new_genmarshalr  krd   r  header_filers  rk   r`  
extra_depsbodyrN  s   &&&&              rN   r   GnomeModule.genmarshal  sk   " a#!11$2O2OPU2VXcd15HY1Z\e0f(JJ
F8$456,

6,/0 X!YY'VW"&e5 YAyy

R		#s 3456 Y
   01 ##D$A$A%$H+VVJ
++CGtmz9--o&&ETMLLM"39-3H3H./b 	/>
  x+++-
##D$A$A%$H+VV(+66Ef%TMLLxr]O/$>
 F^ R((rM   c               $    V ^8  d   QhRRRRRR/# )r   r  r  r   z(T.List[T.Union[InternalDependency, str]]r   zOT.Tuple[T.List[str], T.List[VapiTarget], T.List[str], T.List[str], T.List[str]]rE   )r   s   "rN   r   r   v  s(     &U &UM &UEm &U$s&UrM   c                   V'       g   . . . . . 3# . p. p. p. p. pV EF  p\        V\        4      '       Edc   VP                   U	u. uF  p	\        V	\        4      '       g   K  V	NK  	  p
p	V
 EF%  p\        P
                  P                  VP                  P                  4       VP                  4       4      p\        P
                  P                  VP                  P                  4       VP                  4       4      pVP                  4       ^ ,          RR pVP                  RV,           4       VP                  RV,           4       VP                  RV,           4       VP                  V4       VP                  V4       VP                  V4       EK(  	  EK}  \        V\        4      '       g   Q R4       hVP                  RV 24       VP                  V4       VP                  V4       EK  	  WcWEV3# u up	i )z
Packages are special because we need to:
- Get a list of packages for the .deps file
- Get a list of depends for any VapiTargets
- Get package name from VapiTargets
- Add include dirs for any VapiTargets
N
--vapidir=	--girdir=z--pkg=rk  )r   r   rX   r
   rD  rE  rF  r  r  rs  ru  r  rL  rs   )r  r  r   vapi_dependsvapi_packagesvapi_includes	vapi_argsremaining_argsr  tr  ry  rb  r  outfiles   &&&            rN   _extract_vapi_packages"GnomeModule._extract_vapi_packagesv  s    r2r2%%+-%'%'!#	C#122&)kkOkZ:5N11kO%FWW\\%*;*;*J*J*L*0*;*;*=?FWW\\%*;*;*I*I*K*0*;*;*=?F$00215cr:G$$\F%:;$$[6%9:$$X%78 ''/!((1!((0 & "#s++7Z7+  6#0$$S)%%c*' , nTT) Ps   G6"G6c          
     ,    V ^8  d   QhRRRRRRRRRR	/# )
r   r  r  libraryrs   r   r@   rc   r   z
build.DatarE   )r   s   "rN   r   r     s8     V VM VC V; Veh Vmw VrM   c           	     	   VP                   P                  p\        P                  P	                  WRR ,           4      p\        VRRR7      ;_uu_ 4       pV F  pVP                  VR,           4       K  	  RRR4       \        P                  ! \        P                  ! RWV4      .WD\        P                  ! 4       VP                  RR7      #   + '       g   i     L^; i)	z.depsrh  ri  rj  r  NTrn  r  )r  scratch_dirrD  rE  rF  ro  rp  r   r  r   rq  r  r}  )	r  r  r  r   rc   r  rv  ofilepackages	   &&&&&    rN   _generate_depsGnomeModule._generate_deps  s    ""..Vw%67%w//5#GdN+ $ 0 zz8==v=>ZbZkZkZmotoo  NU  V  	V 0/s   "CC	c                    V ^8  d   QhRRRR/# )r   ry  r   r   zT.List[build.LibTypes]rE   )r   s   "rN   r   r     s      , ;Q rM   c                	    . pVP                  4        Fe  p\        V\        P                  4      '       d   VP	                  V4       K6  \        V\
        4      '       g   KN  W P                  V4      ,          pKg  	  V# r   )get_target_dependenciesr   r   r  rL  r   _get_vapi_link_with)r  ry  rr   r  s   &&  rN   r  GnomeModule._get_vapi_link_with  sc    ,.	113C#u2233  %C++55c::		 4
 rM   zgnome.generate_vapir   r   r   r   c               (    V ^8  d   QhRRRRRRRR/# )	r   r  r  r9  r  r;  z'GenerateVapi'r   r   rE   )r   s   "rN   r   r     s)     :5 :5= :5 :5n :5ar :5rM   c                	   . pV^ ,          p\         P                  P                  VP                  P	                  4       VP
                  4      p\         P                  P                  VP                  P                  4       VP
                  4      pV P                  WR,          4      w  rrpVP                  R4      RRV 2RV 2.pTP                  VR,           Uu. uF  pRV 2NK
  	  up4       TP                  VR,           Uu. uF  pR	V 2NK
  	  up4       TP                  VR
,           Uu. uF  pRV 2NK
  	  up4       W,          pVR	V,           .,          pVR,          p. pV EF  p\        V\        4      '       d2   VP                  \         P                  P                  VV4      4       KK  \        V\        4      '       g   Kc  VV P                  V4      ,          p\         P                  P                  VP                  P	                  4       VP                  4       4      p\         P                  P                  VVP!                  4       ^ ,          4      pVP                  V4       EK
  	  VR,           pVP                  P"                  P$                  P'                  \)        R4      4      p\        V\        4      '       g   Q R4       hVR,          ;'       g"    \         P                  P                  VRR4      pVR,          '       d%   V P+                  WV
V4      pVP                  V4       \-        VVP
                  VP.                  VP                  VVV.V	VR,          V.R.R7      p\0        P2                  ! VP
                  R.V,           R4      .pV.V	,           p\5        RV. . V. V. . / . . . 4      pVP                  V4       \7        VV4      # u upi u upi u upi )rf  r   vapigenr  z
--library=z--directory=r   r  r   z--metadatadir=r   r  rX   z.vapidatadirrk  rc   valavapirb   rn  )r;  rX   r  rh  rb   rc   ri  r  FN)rD  rE  rF  r  ru  rr  r  r  rM  r  r   rs   rL  r   r  rs  r  ry  r  r  r.   r  r
   r}  r   r2  r   r   )r  r  r9  r;  created_valuesr  rl  re   pkg_cmdr  r  r  r   r  rS  inputsrr   r   rr  gir_filevapi_outputr  rc   deps_targetvapi_targetincsrX   rN  s   &&&&                        rN   r   GnomeModule.generate_vapi  sX   " CEq'GGLL!2!2!@!@!BELLQ	WW\\%"3"3"B"B"DellS
HLHcHcdir|k}H~E}X!!),i:gY9OS_`i_jQkl

f[.AB.Aj$.ABC

&2IJ2IQnQC(2IJK

VJ-?@-?isO-?@A :-..	",.	A!S!!

277<<
A67Ay))T55a88	e&7&7&E&E&G&'lln677<<0BC

8$  '##,,55CCIiDXY'3''33']+TTrww||GVV/T)--em[YK!!+. LL M&9%$ 	
$ !!%,,0EuMN-,.dBIr7BPRTVXZ\^`bcb! ^44e CJ@s   O$O)3O.)
r   r   r   r   r   r   r   r   r   r   )FF)r  z'Use install_gir to disable installation)r  z+Use install_typelib to disable installation>   xmlr  nonesgml>   r   r  objects)^rG   rH   rI   rJ   r   INFOr   r  r   run_oncerp  staticmethodr   r5  r$   r%   r>   r&   r   rs   r    r"   r   r'   rq  r   r   r   r   r   r   evolver   r   r   rw  r  r  r  r  r  r  r  r  	functools	lru_cacher  r(  r3  r=  rF  rL  rP  r_  rx  r  r  r  r  r  r  r   r   r  r  r   r   r2  r   r   r   r   r   r   r   r6  r!   r   r   r   r   r   r   r   r   rn  r   r  r  r  r   r   rL   __classcell__)r  s   @rN   r   r      s   gD 6
( 1 1 - - 7 7 ($>$&7c&BBX\])4?+T5Q($XN $h/*+ 0 *+X -sS(--Whjw4xy!/x@(S(O,."3D8==,Xi:j"kuw  BF  	G(D%x@$dEJ, 1$ <bRVWU) zU)n G+ G+R)<[PzP6.
)= &1 '1 * *  	 	  B 	 	     : :8 % %81
f 
 
: &- &-P     
 
 (:u?R?RTYTgTg2hvwx  x 0G$."3D*"Er[_`,hw?#%6tS%A2W[\"D%xH(-dC8"dS%'8s'CRY]^'):4#uGXGXAY)Zdfptu*/sI6FGQS]ab-$!1B#c4%:%*,a$b[	] 	#dH%5XF'#tX)>%*,e$f[	] 	+08K8KUM`M`7ablnx|}+sT2+sT2).tc8==-Yegx5yz  EG  QU  	V/#4T3#?UYZ58u)9 y:u)n )+<+C+C(+C+SUde7 f 70 L#s3*45"S		
 	',T37rR).tS94QST/46{0 4{0z NC((-dC8RT^bc'4h?/#4TCP]_km~;  $A  KM  W[  	\dZ1D1DeFYFY$Z["	& 	(*;D3BV*Wacmqr."3D#">TXY%'8X]]?S'T^`jno+0s;RQUV-!24#x}}9M!NXZdhi"$5dC$@"VZ[!dS%*;*;$<="	& 	)T40-!24!=rSWX+X/*sHo.+0s;RQUVCx&'FG	I 	"C8D+sBh?+0s;RQUV/#4T3#?UYZ).tc5;L;L5MNX\gkl? Bt5C  )Dt5l !D +S1; 2 ; )3#x}}l\mo|9}8~  x 0$$84, 1$ <HVXbfg$sHo6+X/"D%8,TD#;?+I		
 	"D%xH)c8_-%#x8*sHoW=3	&'AB	D 	H-+.|3/ @0|3| OS)	 	 	dS(--GX%2%4 5	
	 	,hmmX >? 	,hmmX >? 	*sHo. 	'C?+ 	'C?+  	'C?+!" 	'C?+#$ 	'C?+%& 	'C?+'( 	'C?+),97- *.97v &1*C0	 	dS(--$89		
 	/33 	#S"5 	-b1 	+sB/lE 1 2 lE\!
 "!
 GK!
 GK!
F &,X.)/0, 1$ <dTVW*dE2*dE2(S(O,-u5).tc8==5IW\]gkvz{(D%0&e<H) - H)T&UPV )3/dS)$4%H		
 	+0s;TSUV/#4T3#?WYZ*/c:DRTU*/s<N6OPZ^hjk:5 0 :5rM   r   c                    V ^8  d   QhRRRR/# )r   interpr   r   r   rE   )r   s   "rN   r   r     s      }  rM   c                   \        V 4      pVP                  P                  \        \        P                  4       VP                  P                  \
        \        P                  4       VP                  P                  \        \        P                  4       VP                  P                  \        \        P                  4       VP                  P                  \        \        P                  4       V# r   )	r   r   append_holder_mapr   CustomTargetHolderr   r   r	   r
   )r  mods   & rN   
initializer    s    
f
COO%%o{7U7UVOO%%&;[=[=[\OO%%i1O1OPOO%%m[5S5STOO%%j+2P2PQJrM   )k__conditional_annotations____doc__
__future__r   r|  r  r  rD  r  r  typingr  r  r   r   r   r   r   r   r	   r
   r   r   r   r   r   r   r   r   r   r^   r   r   dependencies.pkgconfigr   r   interpreter.type_checkingr   r   r   r   r   r   r   r   interpreterbaser    r!   r"   r#   r$   r%   r&   interpreterbase.decoratorsr'   r(   r)   r*   r+   r,   r-   optionsr.   programsr/   scripts.gettextr0   TYPE_CHECKINGtyping_extensionsr1   r2   r3   r4   r5   rz  r6   r7   r8   r9   r:   r;   r=   rP   rU   r[   rg   ry   r   r   r   r   r   r   Unionr   rK   r>   r   r   rs   r   r  r   r   r  r   r  )r  s   @rN   <module>r     s  
G "    	          ` ` 9 L [  [  [ P P H H 7    & *?????#$)7'*#i #+ +
y  9  #i #*\ \2By B !Y !";y ;' ' O. O ''*o"NOHiO &/d& ?  *3dC 	*&  +,!C?3oX/	+ ' 6  + }5/ }5~?rM   