+
    Niy                         ^ RI t ^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIH	t	 Rt
R tR tR tR t]R8X  d   ]P                   ! ]! 4       4       R# R# )	    N)utilsz8
Generate Graphviz dot files for one or all frameworks.
c           	     d   \         P                  P                  W!R,           4      p\        P                  ! RR7      p \
        P                  ! RV RV 2.\        RR4      VR7      pV^ 8w  do   \         P                  P                  V4      '       d   \         P                  ! V4       \        P                  ! R	V R
24        \        P                  ! V4       R# \        VR4      ;_uu_ 4       pVP                  R\        P                   ! 4        R24       \"        P$                  ! 4       pV'       d.   VP                  R\&        P(                  ^ ,           RV R24       RRR4       \        P                  ! V4       R#   + '       g   i     L(; i  \        P                  ! T4       i ; i)z`Calls cmake to generate the dot file for a framework.

Returns true on success, false on failurez.dotzdepdiagram-prepare-build-)prefixcmakez--graphviz=z	/dev/nullw)stdoutcwdzGenerating dot file for z failed.Faz
# Generated on 
z# By  NT)ospathjointempfilemkdtemp
subprocesscallopenexistsremoveloggingerrorshutilrmtreewritetimectimer   get_kapidox_versionsysargv)fw_dirfw_name
output_dirdot_path	build_dirretfversions   &&&     \/tmp/fempkg/build/kf6/DESTDIR/usr/lib/python3.14/site-packages/kapidox/depdiagram_prepare.pygenerate_dotr*      s:    ww||J&(89H  (CDI!oow+hZ0HI%)+s%;"+- !8ww~~h''		(#MM4WIXFG 	i  (C  AGG'

~R89//1G%}AgYb9:	 ! 	i  !  	i s1   AF 0F F 1A3F$F F	F F/c                    \         P                  ! V 4      pVf   R# \        P                  P	                  V R4      p\        P                  P                  V4      '       g    \        P                  ! RV  RV R24       R# \        P                  P                  V4      '       g   \        P                  ! V4       \        WV4      '       g   R# \        P                  ! V\        P                  P	                  WR,           4      4       R# )NFzmetainfo.yaml'z' is not a framework: 'z' does not exist.z.yamlT)r   parse_fancynamer   r   r   r   r   r   makedirsr*   r   copyfile)r!   r#   r"   	yaml_paths   &&  r)   prepare_oner1   2   s    ##F+GV_5I77>>)$$&!8CTUV77>>*%%
J44
OOIrww||J'8IJK    c                   \         P                  ! V 4      p. p\        V4       F  w  rE\         P                  P	                  W4      p\         P                  P                  V4      '       g   KK  \        ^dV^,           ,          \        V4      ,          4      p\        V RV 24       \        Wa4      '       d   K  VP                  V4       K  	  V# )z~Generate dot files for all frameworks.

Looks for frameworks in `fw_base_dir`. Output the dot files in sub dirs of
`dot_dir`.
z% )r   listdir	enumerater   r   isdirintlenprintr1   append)fw_base_dirdot_dirlstfailsidxr"   r!   progresss   &&      r)   prepare_allrA   E   s     **[
!CE!#k3ww}}V$$scAgS12
"WI&'6++LL! ' Lr2   c                     \         P                  ! \        R 7      p V P                  RR7      pVP	                  RRRRR7       VP	                  RR	R
RR7       V P	                  RRR7       V P                  4       p\        P                  P                  VP                  4      pVP                  '       d?   \        P                  P                  VP                  4      p\        WC4      '       d   ^ # ^# \        P                  P                  VP                  4      p\        WS4      pV'       d6   \        P                  ! \!        V4       RRP#                  V4       24       ^# ^ # ))descriptionT)requiredz-sz--singlez2Generate dot files for the framework stored in DIRDIR)helpmetavarz-az--allz>Generate dot files for all frameworks whose dir is in BASE_DIRBASE_DIRr<   z1Destination dir where dot files will be generated)rF   z framework(s) failed: z, )argparseArgumentParserDESCRIPTIONadd_mutually_exclusive_groupadd_argument
parse_argsr   r   abspathr<   singler1   allrA   r   r   r8   r   )parsergroupargsr<   r!   r;   r>   s          r)   mainrU   Y   s!   $$=F///>E	tZP$  & 
tW\)  + 	P  R Dggoodll+G{{{-v''ggoodhh/K1MMSZL(>tyy?O>PQRr2   __main__)rI   r   r   r   r   r   r   r   kapidoxr   rK   r*   r1   rA   rU   __name__exit r2   r)   <module>r[      s[     	    
   
4&(B zHHTV r2   