o
    p.aã  ã                   @   s‚  d dl mZ d dlZd dlZd dlZd dlZd dlZd dlZd dl	Z	d dl
Z
d dlZd dlZd dlZd dlZdZdZdZi dd“dd“d	d
“dd
“dd“dd“dde “dd“dd“dd“dd“dd“dd“dd“dd“dde “d d!“Zg d"¢Zg d#¢Zg d"¢Zdaed$d%gƒZd&d'„ ZG d(d)„ d)eƒZd*d+„ Zd,d-„ Zd.d/„ Ze d0¡Z d1d2„ Z!e d3¡Z"d4d5„ Z#d6d7„ Z$d8d9„ Z%d:d;„ Z&dS )<é    )Úprint_functionNZINTERMEDIATE_DIRZSHARED_INTERMEDIATE_DIRZLIBRARY_SEARCH_PATHSZEXECUTABLE_PREFIXÚ ZEXECUTABLE_SUFFIXZSTATIC_LIB_PREFIXÚlibZSHARED_LIB_PREFIXZSTATIC_LIB_SUFFIXz.aZSHARED_LIB_SUFFIXz.dylibz$(%s)ZOSZmacZPRODUCT_DIRz$(BUILT_PRODUCTS_DIR)ZLIB_DIRZRULE_INPUT_ROOTz$(INPUT_FILE_BASE)ZRULE_INPUT_EXTz$(INPUT_FILE_SUFFIX)ZRULE_INPUT_NAMEz$(INPUT_FILE_NAME)ZRULE_INPUT_PATHz$(INPUT_FILE_PATH)ZRULE_INPUT_DIRNAMEz$(INPUT_FILE_DIRNAME)ZCONFIGURATION_NAMEz$(CONFIGURATION))Úmac_bundle_resourcesÚmac_framework_headersÚmac_framework_private_headers)
Úios_app_extensionÚios_watch_appÚios_watchkit_extensionÚ
mac_bundler   r   r   Úmac_xctest_bundleÚmac_xcuitest_bundleÚ#xcode_create_dependents_test_runnerz$(SDKROOT)/usr/libz$(SDKROOT)/usr/local/libc                 C   s\   t j dg i¡}t| ƒdkrdg} | D ]}t j d|i¡}| d|¡ q| d| d ¡ |S )NÚbuildConfigurationsr   ZDefaultÚnameZdefaultConfigurationName)ÚgypÚxcodeproj_fileZXCConfigurationListÚlenZXCBuildConfigurationÚAppendPropertyÚSetProperty)Úconfiguration_namesÚxcclÚconfiguration_nameÚxcbc© r   ú5/usr/lib/python3/dist-packages/gyp/generator/xcode.pyÚCreateXCConfigurationListf   s   ÿr   c                   @   s,   e Zd Zdd„ Zdd„ Zdd„ Zdd„ Zd	S )
ÚXcodeProjectc              
   C   sÄ   || _ || _tjj|d| _tj tj 	tj 
| j ¡¡tj 	|¡p"d¡}| j d|¡ tj d| ji¡| _|| _d| _zt | j¡ d| _W d S  tya } z|jtjkrV‚ W Y d }~d S d }~ww )N)ÚpathÚ.ÚprojectDirPathZ
rootObjectFT)Úgyp_pathr   r   r   Z
PBXProjectÚprojectÚcommonZRelativePathÚosÚdirnameÚabspathr   ZXCProjectFileÚproject_fileÚbuild_file_dictÚcreated_dirÚmakedirsÚOSErrorÚerrnoZEEXIST)Úselfr!   r   r(   r    Úer   r   r   Ú__init__s   s*   þÿÿ€ÿzXcodeProject.__init__c           #   
   C   sR  g }| j  d¡D ]}| d¡}| d¡}|D ]}| d¡}||vr&| |¡ qqzt|ƒ}| j  d|¡ W n   tj d| j ¡ ‚ | 	t
d¡ | 	td¡ | j di ¡ ¡ D ]
\}	}
| 	|	|
¡ qXd	| jv rv| j  | jd	 ¡}| |¡ | j d
i ¡}|r·|D ]5}| |i ¡}|r¶| |¡}| di ¡ ¡ D ]
\}	}
| 	|	|
¡ q˜d	|v r¶| j  || d	 ¡}| |¡ qg }g }g }g }d}g }| jd D ]Ý}|d }|d }tj | j||¡}|| }|| j jd v séJ ‚| |¡ | |¡ |jr| |j¡ | |j¡ t| dd¡ƒs| |¡ | ¡ dkrd}| d¡r¥t|ƒ}tjjd| | d¡|dœ| j d}| |¡ |d }d}| d¡rT|dtj | d¡¡  }| d¡rm|d dd„ | d¡ ¡ D ƒ¡ d }d}|rtd}|d | dtj tj | d ¡¡¡  }tj |d!d"œ¡}|  d#|¡ | |¡ | |¡ ||_!qÈt"| j jd ƒt"|ƒt"|ƒ ks¹J ‚|| j jd< | j  #d¡ | j  $¡  t"|ƒd$krù|sùt|ƒ}tjj|d%d&œ| j d} |D ]}|  |¡ qæ| j jd  %d!| ¡ t"|ƒd$kr't|ƒ}tjj|d'd&œ| j d}!|D ]}"|! |"¡ q| j jd  %d$|!¡ d S d S )(NÚtargetsÚbuildConfigurationListr   r   zProblem with gyp file %s
z,$(PROJECT_DERIVED_FILE_DIR)/$(CONFIGURATION)z*$(SYMROOT)/DerivedSources/$(CONFIGURATION)Úxcode_settingsÚxcode_config_fileÚconfigurationsFÚtarget_nameÚtoolsetZsuppress_wildcardÚallTZrun_aszRun ÚproductName)r   r8   r1   ©Úparentr   Zworking_directoryzcd "%s"
ZenvironmentÚ
c                 S   s$   g | ]\}}d |t j |¡f ‘qS )zexport %s="%s")r   r   ÚConvertVariablesToShellSyntax)Ú.0ÚkeyÚvalr   r   r   Ú
<listcomp>  s
    þÿz*XcodeProject.Finalize1.<locals>.<listcomp>z°python -c "import fcntl, subprocess, sys
file = open('$TMPDIR/GYP_serialize_test_runs', 'a')
fcntl.flock(file.fileno(), fcntl.LOCK_EX)
sys.exit(subprocess.call(sys.argv[1:]))" úexec z
%s
exit 1
Úactionr   )ÚshellScriptÚshowEnvVarsInLogÚbuildPhasesé   ZAll©r1   r   zRun All Tests)&r"   ÚGetPropertyÚappendr   r   ÚsysÚstderrÚwriter!   ÚSetBuildSettingÚ_intermediate_varÚ_shared_intermediate_varr(   ÚgetÚitemsÚAddOrGetFileInRootGroupÚSetBaseConfigurationÚConfigurationNamedr   r#   ÚQualifiedTargetÚ_propertiesÚsupport_targetÚintÚlowerr   ÚPBXAggregateTargetÚAddDependencyr<   ÚjoinÚEncodePOSIXShellListÚPBXShellScriptBuildPhaser   Útest_runnerr   ZRootGroupsTakeOverOnlyChildrenZ
SortGroupsÚinsert)#r-   Úxcode_targetsÚserialize_all_testsr4   Úxctr   Zxcbcsr   r   ÚxckÚxcvÚ
config_refZbuild_file_configurationsZconfig_nameZbuild_file_configuration_namedZxccZordinary_targetsZrun_test_targetsZsupport_targetsr0   Zhas_custom_allZtargets_for_allÚtargetr5   r6   Úqualified_targetÚxcode_targetZ
run_targetZcommandÚscriptZcommand_prefixÚssbpZ
all_targetZrun_all_tests_targetÚrun_test_targetr   r   r   Ú	Finalize1Š   s   



€ýÿÿ
ÿ

ÿ
ÿ
ÿ
ÿ
€
ÿ


ýû
ÿÿþÿýÿ	ÿÿþ

€
ÿ
þûþûózXcodeProject.Finalize1c                 C   s@  | j d D ]z}t| dd¡ƒr|d }|d }tj | j||¡}|| }t|tjj	ƒrg }| 
d¡}	|	D ]}
|
 
d¡}| 
d¡}t|d	ƒrK| |j¡ q4t|ƒdkrtjj	d
| |dœ| jd}|D ]}| |¡ qb| jjd  |¡}| jjd  |d |¡ q| jj ¡ D ]}| j |¡ q†| j ¡  | j ¡  | j ¡  d S )Nr0   r   r   r5   r6   ÚdependenciesZtargetProxyZremoteGlobalIDStringr_   zRun %s Tests)r   r8   r9   rF   )r(   rX   rP   r   r#   rU   r!   Ú
isinstancer   rZ   rH   ÚhasattrrI   r_   r   r"   r[   rV   Úindexr`   Z_other_pbxprojectsÚkeysZAddOrGetProjectReferenceZSortRemoteProductReferencesr'   Z
ComputeIDsZEnsureNoIDCollisions)r-   ra   Úxcode_target_to_target_dictZbf_tgtZtgt_namer6   rh   ri   Zall_run_testsZpbxtdsZpbxtdZpbxcipZdependency_xctZrun_all_targetrl   ÚidxZother_pbxprojectr   r   r   Ú	Finalize2l  sD   
ÿ



€þü€

zXcodeProject.Finalize2c              
   C   s  t jdd| jd\}}zct |d¡}| j |¡ | ¡  tj | jd¡}d}z	t	 
||d¡}W n tyH } z|jtjkr>‚ W Y d }~nd }~ww |rSt |¡ W d S t d¡}t |¡ t |d| @ ¡ t ||¡ W d S  ty…   t |¡ | jr„t | jd	¡ ‚ w )
Nz.tmpzproject.pbxproj.gyp.)ÚsuffixÚprefixÚdirÚwzproject.pbxprojFé?   i¶  T)ÚtempfileZmkstempr   r$   Úfdopenr'   ZPrintÚcloser\   ÚfilecmpZcmpr+   r,   ÚENOENTÚunlinkÚumaskÚchmodÚrenameÚ	Exceptionr)   ÚshutilÚrmtree)r-   Z	output_fdZnew_pbxproj_pathZoutput_fileZpbxproj_pathZsamer.   r   r   r   r   ÚWrite«  s<   ÿÿÿ€ÿ


úzXcodeProject.WriteN)Ú__name__Ú
__module__Ú__qualname__r/   rm   ru   r‡   r   r   r   r   r   r   s     c?r   c           	      C   sŽ   g d¢}g d¢}t  | ¡}t  |¡\}}|r|dd …  ¡ }||v r/|dkr/| ¡  | ¡ d S ||v r@|dkr@| ¡  | ¡ d S | | ¡ d S )N)ÚcZccZcppZcxxÚmZmmÚsZswift)ÚaZdylibZ	frameworkÚorF   Únone)Ú	posixpathÚbasenameÚsplitextrY   ZSourcesPhaseÚAddFileÚFrameworksPhaserR   )	ÚsourceÚtypeÚpbxprc   Zsource_extensionsZlibrary_extensionsr’   ÚrootÚextr   r   r   ÚAddSourceToTargetí  s   
r›   c                 C   s   |  ¡  | ¡ d S )N)ZResourcesPhaser”   )Úresourcer˜   rc   r   r   r   ÚAddResourceToTarget  s   r   c                 C   s    dd|  }|  ¡  | |¡ d S )Nz{ATTRIBUTES = (%s, ); })ZPrivateZPublic)ZHeadersPhaser”   )Úheaderr˜   rc   Z	is_publicÚsettingsr   r   r   ÚAddHeaderToTarget  s   r    z(\$\((.*?)\))c                 C   sZ   t  | ¡}|dkr| S | ¡  |D ]}|\}}||vrq|| }t t |¡|| ¡} q| S )a£  Expands Xcode-style $(VARIABLES) in string per the expansions dict.

  In some rare cases, it is appropriate to expand Xcode variables when a
  project file is generated.  For any substring $(VAR) in string, if VAR is a
  key in the expansions dict, $(VAR) will be replaced with expansions[VAR].
  Any $(VAR) substring in string for which VAR is not a key in the expansions
  dict will remain in the returned string.
  N)Ú_xcode_variable_reÚfindallÚreverseÚreÚsubÚescape)ÚstringZ
expansionsÚmatchesÚmatchZ
to_replaceÚvariableZreplacementr   r   r   ÚExpandXcodeVariables  s   

r«   z([\\\"\' ])c                 C   s   t  td| ¡S )a  We must escape the defines that we give to XCode so that it knows not to
     split on spaces and to respect backslash and quote literals. However, we
     must not quote the define, or Xcode will incorrectly intepret variables
     especially $(inherited).z\\\1)r¤   r¥   Ú_xcode_define_re)r   r   r   r   ÚEscapeXcodeDefine0  s   r­   c                 C   s–   |d }|   ¡ D ]#\}}tj |¡\}}|dkrq||j d }|jr+tj |j|¡}q|D ]}	dd|g}
|
d|	g7 }
td|	|
f ƒ t 	|
¡ q.d S )NÚoptionsú.gypú
.xcodeprojÚ
xcodebuildz-projectz-configurationzBuilding [%s]: %s)
rQ   r$   r   r“   rv   Úgenerator_outputr\   ÚprintÚ
subprocessZ
check_call)Údatar4   Úparamsr®   Ú
build_filer(   Úbuild_file_rootÚbuild_file_extÚxcodeproj_pathZconfigZ	argumentsr   r   r   ÚPerformBuild8  s   €
ür»   c                 C   s®   | d j }|  d¡dkr9tj | d jpd¡}|  di ¡ dd¡}tj tj ||¡¡}tj tj ||d¡¡}ntj tj |d	¡¡}tj tj ||d
¡¡}||dœad S )Nr®   ÚflavorÚninjar   Úgenerator_flagsÚ
output_dirÚoutzgypfiles-xcode-ninjar±   Zgypfiles)ÚtoplevelÚqualified_out_dir)	Ztoplevel_dirrP   r$   r   Úrelpathr²   Únormpathr\   Úgenerator_filelist_paths)r¶   rÁ   Zgenerator_dirr¿   rÂ   r   r   r   ÚCalculateGeneratorInputInfoJ  s   
ÿÿ
þrÆ   c           z      C   s:  |  d¡dk}|rtj | |||¡\} }}|d }|  di ¡}|  dd¡}|  dd¡}|  dd ¡}	|	rGt|	ƒ}	t|	ƒd	k rGd
|	 }	t|	ƒd	k s=|  dd¡ }
i }| ¡ D ]p\}}tj 	|¡\}}|dkreqT||j
 d }|jrwtj |j|¡}t|||ƒ}|||< |j}i }|rŒd|d< |	rš|	|d< |	|d< |	|d< | d|¡ |  d¡sÄ| d¡}tj ddi¡}| |¡ |d D ]}| |d¡ q»qTi }i }| D ]}tj |¡\}}}|| }|d dkrçtd| ƒ‚|d g}t|d  ¡ ƒD ]}||vr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j|h¡ qíq¡|
sdŠD ]}k|kd‹ }l|  |lg ¡D ]}\| /|\¡ q
qþg dŒ¢}Z|
r#dd}„ |ZD ƒ}Z|  dOg ¡D ]}5|ZD ]}[|5  |[g ¡D ]}\|\ =dŽ¡sB| /|\¡ q5q-q)|  dg ¡D ])}mtj %|mdW ¡}9dY|9 dZ }:tj 'dgd‘|md’  d^ |:d0d“œ¡};|- !da|;¡ qNd”|v r–|d” D ]}n|- "||n ¡ |0r”|0 "||n ¡ qd•|v rÈ|d• D ](}o|- >¡  <|o¡ t, 7|o¡}p|pt?vrÆ|- @tA¡rÀ|p|- BtA¡vrÆ|- CtA|p¡ qŸ|D ]}|d | }q|- D|¡}r|q  d–g ¡D ]	}s|r Cd—|s¡ qÝ|q  d˜g ¡D ]	}s|r Cd™|s¡ qí|q  dšg ¡D ]}p|pt?vr|r @tA¡r|p|r BtA¡vr|r CtA|p¡ qýd›|qv r1|qd› D ]}ttE|tƒ}u|r Cdœ|u¡ q#d|qv rH|qd  ¡ D ]\}v}w|r F|v|w¡ q<dž|qv rY| /|qdž ¡}x|r G|x¡ qÊqËg }y| ¡ D ]\}}| Hd¡rq|y |¡ qb|yD ]}||  I||¡ qu|yD ]}||  J||¡ qƒ|yD ]	}||  K¡  q‘d S )ŸNr¼   r½   r®   r¾   Zxcode_parallel_buildsTZxcode_serialize_all_test_runsZ#xcode_upgrade_check_project_versioné   Ú0Zxcode_list_excluded_filesr¯   r°   ZYESZ!BuildIndependentTargetsInParallelZLastUpgradeCheckZLastTestingUpgradeCheckZLastSwiftUpdateCheckZ
attributesZ
standaloneZ	mainGroupr   ZBuildZincluded_filesFr6   rg   z:Multiple toolsets not supported in xcode build (target %s)Zdefault_configurationr4   zcom.apple.product-type.toolzcom.googlecode.gyp.xcode.bundlez&com.apple.product-type.library.dynamicz%com.apple.product-type.library.staticz'com.apple.product-type.kernel-extensionz"com.apple.product-type.applicationzcom.apple.product-type.bundlez'com.apple.product-type.bundle.unit-testz(com.apple.product-type.bundle.ui-testingz com.apple.product-type.frameworkz$com.apple.product-type.app-extensionz)com.apple.product-type.watchkit-extensionz+com.apple.product-type.application.watchapp)Ú
executableÚloadable_moduleZshared_libraryÚstatic_libraryZmac_kernel_extensionzexecutable+bundlezloadable_module+bundlezloadable_module+xctestzloadable_module+xcuitestzshared_library+bundlezexecutable+extension+bundlez!executable+watch+extension+bundlezexecutable+watch+bundlezmac_kernel_extension+bundlerG   r—   r   r   r   r   r   r
   r	   r   z	+xcuitestrÊ   zFmac_xcuitest_bundle targets must have type loadable_module (target %s)z+xctestzDmac_xctest_bundle targets must have type loadable_module (target %s)z6ios_app_extension flag requires mac_bundle (target %s)z+extension+bundlez;ios_watchkit_extension flag requires mac_bundle (target %s)z+watch+extension+bundlez2ios_watch_app flag requires mac_bundle (target %s)z+watch+bundlez+bundleZproductTypez/-- unknown product type while writing target %sz6mac_bundle targets cannot have type none (target "%s")z?mac_xcuitest_bundle targets cannot have type none (target "%s")z=mac_xctest_bundle targets cannot have type none (target "%s")Zproduct_namer8   Zproduct_dirZproduct_prefixZproduct_extension)r:   Zforce_outdirZforce_prefixZforce_extensionr0   ÚactionsZrulesÚsupport_target_suffixz Supportr9   Úmessagezecho note: r   rB   r;   rA   z
exit 1
ÚinputszAction "Úaction_nameú"Úoutputs)Ú
inputPathsr   ZoutputPathsrC   rD   rE   rF   Zprocess_outputs_as_sourcesZ'process_outputs_as_mac_bundle_resourcesr   Ú	extensionZrule_sources)ZINPUT_FILE_BASEZINPUT_FILE_SUFFIXZINPUT_FILE_NAMEZINPUT_FILE_PATHZINPUT_FILE_DIRNAMEz%s.makez[^a-zA-Z0-9_]Ú_z%s_%sZ	rule_namery   zall: \
z \z	    %s%s
z    z%s%s \
z    : \
z	@mkdir -p "%s"
z" "z	@echo note: %s
z	%s
z¤JOB_COUNT="$(/usr/sbin/sysctl -n hw.ncpu)"
if [ "${JOB_COUNT}" -gt 4 ]; then
  JOB_COUNT=4
fi
exec xcrun make -f "${PROJECT_FILE_PATH}/%s" -j "${JOB_COUNT}"
exit 1
zRule "Úinputs_excludedc                 S   ó   g | ]	}|  d ¡s|‘qS ©Ú	_excluded©Úendswith©r=   Úxr   r   r   r@   l  ó    z"GenerateOutput.<locals>.<listcomp>Úsourcesr   rË   r   ZcopiesZdestination)ú/ú$z$(SRCROOT)/Zxcode_code_sign)Nz#{ATTRIBUTES = (CodeSignOnCopy, ); }zCopy to Úfiles)rß   r   r   r   rÙ   )rÏ   rÖ   rÒ   Zoutputs_excludedc                 S   r×   rØ   rÚ   rÜ   r   r   r   r@   ¸  rÞ   z$(BUILT_PRODUCTS_DIR)/Z
postbuildsz($(BUILT_PRODUCTS_DIR)/$(EXECUTABLE_PATH)zPostbuild "Zpostbuild_name)rÓ   r   rC   rD   rn   Z	librariesZmac_framework_dirsZFRAMEWORK_SEARCH_PATHSZinclude_dirsZHEADER_SEARCH_PATHSZlibrary_dirsZdefinesZGCC_PREPROCESSOR_DEFINITIONSr2   r3   )LrP   r   Zxcode_ninjaZCreateWrapperÚstrr   rQ   r$   r   r“   rv   r²   r\   r   r"   r   rH   r   ZPBXGroupZAppendChildZAddOrGetFileByPathr#   ZParseQualifiedTargetr„   Úsortedrr   rI   r   rX   ZPBXNativeTargetÚKeyErrorZExceptionAppendrZ   r   r[   rW   ZEncodePOSIXShellArgumentr]   r<   r^   rV   r`   r›   r   r‘   Úsplitr«   rR   Úextendr¤   r¥   ÚopenrL   Ú	enumerateÚzipr%   r}   r    ZPBXCopyFilesBuildPhaseZSetDestinationr”   Ú
startswithr•   Úxcode_standard_library_dirsZHasBuildSettingÚ_library_search_paths_varZGetBuildSettingZAppendBuildSettingrT   r­   rM   rS   rÛ   rm   ru   r‡   )zZtarget_listZtarget_dictsrµ   r¶   Zninja_wrapperr®   r¾   Zparallel_buildsrb   Zupgrade_check_project_versionZskip_excluded_filesZxcode_projectsr·   r(   r¸   r¹   rº   Zxcpr˜   Zproject_attributesZ
main_groupZbuild_groupZincluded_filera   rs   rh   r5   r6   Úspecr   r   r   Z_typesZtarget_propertiesr—   Z	is_xctestZis_xcuitestZ	is_bundleZis_app_extensionZis_watchkit_extensionZis_watch_appZtype_bundle_keyZxctarget_typer.   Ztarget_product_namerc   Zspec_actionsZ
spec_rulesZsupport_xctZsupport_xcclrÍ   Zsupport_target_propertiesZprebuild_indexrB   rÎ   Zaction_stringZ
message_shZaction_string_shrj   rk   ÚoutputZtgt_mac_bundle_resourcesZrules_by_extZruleZconcrete_outputs_by_rule_sourceZconcrete_outputs_allÚmessagesrÌ   Zrule_sourceZrule_source_dirnameZrule_source_basenameZrule_source_rootZrule_source_extZrule_input_dictZ%concrete_outputs_for_this_rule_sourceZconcrete_outputZwas_mac_bundle_resourceZmakefile_nameZmakefile_pathZmakefileZconcrete_output_indexZconcrete_output_by_rule_sourceZeolZconcrete_outputsZconcrete_output_dirsZbolZconcrete_output_dirZprerequisitesZprerequisite_indexZprerequisiteÚgroupsÚgroupÚitemr–   Zsource_rootZsource_extensionrœ   Zresource_rootZresource_extensionrž   Z
pbxcp_dictZ
copy_groupÚdestZ	code_signrŸ   ZpbxcpÚfiler>   Zexcluded_keyZ	postbuildZ
dependencyZlibraryZlibrary_dirZconfigurationr   Zinclude_dirZdefineZ
set_definerd   re   rf   Zbuild_filesr   r   r   ÚGenerateOutput^  s”  ÿ
ÿ
ÿÿÿÿÿ


€

ÿÿÿ

€ðþ
ÿÿÿÿ
ÿ

ÿ

ÿ

ÿ€ýÿÿÿÿÿÿ

ýÿþÿÿÿ

ÿû€$
ÿÿû

ÿ
ÿ



ÿÿ


ÿ
ÿÿ

ÿ

ÿ
€
ÿúÿûÿÿ
ÿý
ÿÿ
€üÿü
€


ÿþ€

ÿþ€


ÿ
€é
€
ÿÿrö   )'Z
__future__r   r~   Z
gyp.commonr   Zgyp.xcodeproj_fileZgyp.xcode_ninjar,   r$   rJ   r‘   r¤   r…   r´   r{   rN   rO   rí   Zgenerator_default_variablesZ"generator_additional_path_sectionsZ+generator_additional_non_configuration_keysZ!generator_extra_sources_for_rulesrÅ   Ú	frozensetrì   r   Úobjectr   r›   r   r    Úcompiler¡   r«   r¬   r­   r»   rÆ   rö   r   r   r   r   Ú<module>   s’   ÿþýüûúôóòñðïîíìëê	þ  }

